{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/2499","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/2499/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/2499/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/2499/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/2499","id":117821198,"number":2499,"title":"apache2_module hangs with \"WARNING: The following essential module will be disabled.\"","user":{"login":"BlaM","id":176011,"avatar_url":"https://avatars.githubusercontent.com/u/176011?v=3","gravatar_id":"","url":"https://api.github.com/users/BlaM","html_url":"https://github.com/BlaM","followers_url":"https://api.github.com/users/BlaM/followers","following_url":"https://api.github.com/users/BlaM/following{/other_user}","gists_url":"https://api.github.com/users/BlaM/gists{/gist_id}","starred_url":"https://api.github.com/users/BlaM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlaM/subscriptions","organizations_url":"https://api.github.com/users/BlaM/orgs","repos_url":"https://api.github.com/users/BlaM/repos","events_url":"https://api.github.com/users/BlaM/events{/privacy}","received_events_url":"https://api.github.com/users/BlaM/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-19T14:10:08Z","updated_at":"2015-11-25T17:13:24Z","closed_at":null,"body":"I have this code in my playbook:\r\n\r\n    - apache2_module: name={{item}} state=absent\r\n      with_items:\r\n        - autoindex\r\n        - negotiation\r\n\r\nHowever someone decided that autoindex and negotiation both are \"essential\", so when I try to disable them I get this warning:\r\n\r\n    # a2dismod autoindex\r\n    WARNING: The following essential module will be disabled.\r\n    This might result in unexpected behavior and should NOT be done\r\n    unless you know exactly what you are doing!\r\n     autoindex\r\n\r\n    To continue type in the phrase 'Yes, do as I say!' or retry by passing '-f':\r\n\r\nand expects me to actually type \"Yes, do as I say!\" (WTF?!?) if I don't provide \"-f\". The ansible module does not provide that -f parameter, so it locks up.\r\n\r\nAs weird as that is, I think there _at least_ should be a \"force=true\" option in apache2_module - or -f should be default.\r\n\r\n\r\n(Not sure if that's true for all \"a2dismod\" instances because there is a suspiciously low amount of Google results (none). It is at least there for apache2 currently installed from dotdeb.org)"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/159676764","html_url":"https://github.com/ansible/ansible-modules-core/issues/2499#issuecomment-159676764","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/2499","id":159676764,"user":{"login":"robynbergeron","id":3236604,"avatar_url":"https://avatars.githubusercontent.com/u/3236604?v=3","gravatar_id":"","url":"https://api.github.com/users/robynbergeron","html_url":"https://github.com/robynbergeron","followers_url":"https://api.github.com/users/robynbergeron/followers","following_url":"https://api.github.com/users/robynbergeron/following{/other_user}","gists_url":"https://api.github.com/users/robynbergeron/gists{/gist_id}","starred_url":"https://api.github.com/users/robynbergeron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robynbergeron/subscriptions","organizations_url":"https://api.github.com/users/robynbergeron/orgs","repos_url":"https://api.github.com/users/robynbergeron/repos","events_url":"https://api.github.com/users/robynbergeron/events{/privacy}","received_events_url":"https://api.github.com/users/robynbergeron/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T17:13:24Z","updated_at":"2015-11-25T17:13:24Z","body":"@BlaM Thanks for submitting this bug report.\r\n\r\n@berendt thanks in advance for taking a look at this bug report and for your ongoing work in maintaining this module.\r\n"}}