Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reboot task fails #2

Closed
SirRawlins opened this issue Feb 18, 2016 · 3 comments · Fixed by #6
Closed

Reboot task fails #2

SirRawlins opened this issue Feb 18, 2016 · 3 comments · Fixed by #6

Comments

@SirRawlins
Copy link

Pushed the config changes and updated the apt packages just fine, but failed to reboot at the end.

fatal: [192.168.1.80]: FAILED! => {"changed": true, "cmd": ["/sbin/reboot", "-t", "now"], "delta": "0:00:00.045698", "end": "2016-02-18 11:20:00.375066", "failed": true, "rc": 1, "start": "2016-02-18 11:20:00.329368", "stderr": "/sbin/reboot: invalid option -- 't'", "stdout": "", "stdout_lines": [], "warnings": []}

You don't need the -t option for reboot, I believe that /sbin/reboot would suffice in the Playbook?

@motdotla
Copy link
Owner

@SirRawlins Was this isolated or did you see it repeatedly?

@SirRawlins
Copy link
Author

I can't honestly remember @motdotla - sorry.

@chrowe
Copy link
Contributor

chrowe commented Feb 11, 2017

I am having a similar issue with Ansible 2.2.0.0 on MacOS 10.12.3

It seems to be an issue with command not liking &&
If I do command: reboot it works.
and
If I do shell: sleep 2 && reboot it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants