{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1259","repository_url":"https://api.github.com/repos/ansible/ansible-modules-core","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1259/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1259/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1259/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/1259","id":73437879,"number":1259,"title":"Mount module \"state: unmounted\" should not require src and fstype arguments","user":{"login":"xanview","id":578881,"avatar_url":"https://avatars.githubusercontent.com/u/578881?v=3","gravatar_id":"","url":"https://api.github.com/users/xanview","html_url":"https://github.com/xanview","followers_url":"https://api.github.com/users/xanview/followers","following_url":"https://api.github.com/users/xanview/following{/other_user}","gists_url":"https://api.github.com/users/xanview/gists{/gist_id}","starred_url":"https://api.github.com/users/xanview/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xanview/subscriptions","organizations_url":"https://api.github.com/users/xanview/orgs","repos_url":"https://api.github.com/users/xanview/repos","events_url":"https://api.github.com/users/xanview/events{/privacy}","received_events_url":"https://api.github.com/users/xanview/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/bug_report","name":"bug_report","color":"fbca04"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/P3","name":"P3","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-05T21:31:53Z","updated_at":"2016-05-12T17:08:48Z","closed_at":null,"body":"When wanting to ensure a particular path has nothing mounted on it, I would like to be able to do:\r\n\r\n```\r\n- name: \"Ensure chroot paths are not mounted\"\r\n  mount:\r\n    name: \"{{ item }}\"\r\n    state: unmounted\r\n  with_items:\r\n    - var/cache/apt\r\n    - dev\r\n    - proc\r\n    - sys\r\n```\r\n\r\nBut Ansible throws this error:\r\n\r\n```\r\nfailed: [testhost] => (item=proc) => {\"failed\": true, \"item\": \"proc\"}\r\nmsg: missing required arguments: src,fstype\r\n```\r\n\r\nI believe when making sure a path is not mounted, the arguments src and fstype should be optional."},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/218822467","html_url":"https://github.com/ansible/ansible-modules-core/issues/1259#issuecomment-218822467","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1259","id":218822467,"user":{"login":"jamescarr","id":45389,"avatar_url":"https://avatars.githubusercontent.com/u/45389?v=3","gravatar_id":"","url":"https://api.github.com/users/jamescarr","html_url":"https://github.com/jamescarr","followers_url":"https://api.github.com/users/jamescarr/followers","following_url":"https://api.github.com/users/jamescarr/following{/other_user}","gists_url":"https://api.github.com/users/jamescarr/gists{/gist_id}","starred_url":"https://api.github.com/users/jamescarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamescarr/subscriptions","organizations_url":"https://api.github.com/users/jamescarr/orgs","repos_url":"https://api.github.com/users/jamescarr/repos","events_url":"https://api.github.com/users/jamescarr/events{/privacy}","received_events_url":"https://api.github.com/users/jamescarr/received_events","type":"User","site_admin":false},"created_at":"2016-05-12T17:08:48Z","updated_at":"2016-05-12T17:08:48Z","body":"I agree with the above commenters. These two attributes really shouldn't be required in these scenarios."}}