{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/47031","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/47031/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/47031/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/47031/events","html_url":"https://github.com/ansible/ansible/issues/47031","id":369949128,"node_id":"MDU6SXNzdWUzNjk5NDkxMjg=","number":47031,"title":"Ansible 2.7: Invalid options for reboot: reboot_timeout ","user":{"login":"programingnotes","id":38335185,"node_id":"MDQ6VXNlcjM4MzM1MTg1","avatar_url":"https://avatars2.githubusercontent.com/u/38335185?v=4","gravatar_id":"","url":"https://api.github.com/users/programingnotes","html_url":"https://github.com/programingnotes","followers_url":"https://api.github.com/users/programingnotes/followers","following_url":"https://api.github.com/users/programingnotes/following{/other_user}","gists_url":"https://api.github.com/users/programingnotes/gists{/gist_id}","starred_url":"https://api.github.com/users/programingnotes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/programingnotes/subscriptions","organizations_url":"https://api.github.com/users/programingnotes/orgs","repos_url":"https://api.github.com/users/programingnotes/repos","events_url":"https://api.github.com/users/programingnotes/events{/privacy}","received_events_url":"https://api.github.com/users/programingnotes/received_events","type":"User","site_admin":false},"labels":[{"id":947190508,"node_id":"MDU6TGFiZWw5NDcxOTA1MDg=","url":"https://api.github.com/repos/ansible/ansible/labels/affects_2.7","name":"affects_2.7","color":"ededed","default":false},{"id":785271699,"node_id":"MDU6TGFiZWw3ODUyNzE2OTk=","url":"https://api.github.com/repos/ansible/ansible/labels/bug","name":"bug","color":"fbca04","default":true},{"id":814251818,"node_id":"MDU6TGFiZWw4MTQyNTE4MTg=","url":"https://api.github.com/repos/ansible/ansible/labels/has_pr","name":"has_pr","color":"1d76db","default":false},{"id":383076471,"node_id":"MDU6TGFiZWwzODMwNzY0NzE=","url":"https://api.github.com/repos/ansible/ansible/labels/python3","name":"python3","color":"fbca04","default":false},{"id":636352796,"node_id":"MDU6TGFiZWw2MzYzNTI3OTY=","url":"https://api.github.com/repos/ansible/ansible/labels/support:core","name":"support:core","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-14T22:08:56Z","updated_at":"2018-10-15T03:53:19Z","closed_at":null,"author_association":"NONE","body":"##### SUMMARY\r\nAccording to the [docs for reboot module in Ansible 2.7](https://docs.ansible.com/ansible/latest/modules/reboot_module.html), `reboot_timeout` is a valid option for the reboot module. Yet, this task: \r\n```\r\n- name: Reboot a slow machine that might have lots of updates to apply\r\n  reboot:\r\n    reboot_timeout: 3600\r\n```\r\nreturns: \r\n```\r\nFAILED! => {\"changed\": false, \"msg\": \"Invalid options for reboot: reboot_timeout\"}\r\n```\r\n\r\n##### ISSUE TYPE\r\n- Bug Report\r\n\r\n##### COMPONENT NAME\r\n<!--- Write the short name of the module, plugin, task or feature below -->\r\n\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from \"ansible --version\" between quotes -->\r\n```paste below\r\nansible 2.7.0\r\n  config file = /Users/pnotes/example/ansible/ansible.cfg\r\n  configured module search path = ['/Users/pnotes/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']\r\n  ansible python module location = /Users/pnotes/.pyenv/versions/3.6.4/lib/python3.6/site-packages/ansible\r\n  executable location = /Users/pnotes/.pyenv/versions/3.6.4/bin/ansible\r\n  python version = 3.6.4 (default, Feb 26 2018, 21:07:35) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)]\r\n```\r\n\r\n##### CONFIGURATION\r\n<!--- Paste verbatim output from \"ansible-config dump --only-changed\" between quotes -->\r\n```paste below\r\nDEFAULT_HOST_LIST(/Users/pnotes/example/ansible/ansible.cfg) = ['/Users/pnotes/example/ansible/inventories/test/hosts.ini']\r\nDEFAULT_VAULT_PASSWORD_FILE(/Users/pnotes/example/ansible/ansible.cfg) = /Users/pnotes/.vault_pass.txt\r\n```\r\n\r\n##### OS / ENVIRONMENT\r\n<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->\r\ntarget OS versions => Ubuntu 16.04tls\r\n##### STEPS TO REPRODUCE\r\n<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->\r\nGiven this directory structure: \r\n```\r\n├── ansible.cfg\r\n├── inventories\r\n│   └── test\r\n│       └── hosts.ini\r\n├── provision.yml\r\n└── roles\r\n    └── sample\r\n        ├── handlers\r\n        │   └── main.yml\r\n        └── tasks\r\n            └── main.yml\r\n``` \r\n\r\nwith And roles/sample/tasks/main.yml defined like so: \r\n``` \r\n- name: Update Linux Distribution Software (apt update && apt upgrade && apt autoremove)\r\n  apt:\r\n    upgrade: yes  # upgrade: 'dist'\r\n    update_cache: yes\r\n    autoremove: yes #this isn't working, need to change it\r\n    dpkg_options: 'force-confold,force-confdef'  \r\n    allow_unauthenticated: no\r\n\r\n- name: Set Timezone to USA/NewYork\r\n  timezone: \r\n    name: America/New_York\r\n```\r\n\r\nroles/sample/handlers/main.yml defined like so:\r\n```\r\n- name: Reboot machine \r\n  reboot: \r\n    reboot_timeout: 3600\r\n    test_command: whoami\r\n  notify:\r\n    - Restart sshd\r\n``` \r\n\r\n<!--- Paste example playbooks or commands between quotes below -->\r\n```yaml\r\n\r\n```\r\n\r\n<!--- HINT: You can paste gist.github.com links for larger files -->\r\n\r\n##### EXPECTED RESULTS\r\n<!--- Describe what you expected to happen when running the steps above -->\r\nI expect the handler, `Reboot machine`, defined above to return either `elapsed` or `rebooted` \r\n\r\n##### ACTUAL RESULTS\r\n<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->\r\nbut instead the error message\r\n<!--- Paste verbatim command output between quotes -->\r\n```paste below\r\nFAILED! => {\"changed\": false, \"msg\": \"Invalid options for reboot: reboot_timeout\"}\r\n```\r\n is returned"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/429700818","html_url":"https://github.com/ansible/ansible/issues/47031#issuecomment-429700818","issue_url":"https://api.github.com/repos/ansible/ansible/issues/47031","id":429700818,"node_id":"MDEyOklzc3VlQ29tbWVudDQyOTcwMDgxOA==","user":{"login":"Akasurde","id":633765,"node_id":"MDQ6VXNlcjYzMzc2NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/633765?v=4","gravatar_id":"","url":"https://api.github.com/users/Akasurde","html_url":"https://github.com/Akasurde","followers_url":"https://api.github.com/users/Akasurde/followers","following_url":"https://api.github.com/users/Akasurde/following{/other_user}","gists_url":"https://api.github.com/users/Akasurde/gists{/gist_id}","starred_url":"https://api.github.com/users/Akasurde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Akasurde/subscriptions","organizations_url":"https://api.github.com/users/Akasurde/orgs","repos_url":"https://api.github.com/users/Akasurde/repos","events_url":"https://api.github.com/users/Akasurde/events{/privacy}","received_events_url":"https://api.github.com/users/Akasurde/received_events","type":"User","site_admin":false},"created_at":"2018-10-15T03:53:19Z","updated_at":"2018-10-15T03:53:19Z","author_association":"MEMBER","body":"cc @samdoran @nitzmahone "}}
{"actor":{"display_login":"Akasurde"}}