Skip to content

Commit

Permalink
Fix shutdown command (#16)
Browse files Browse the repository at this point in the history
Fix #15
  • Loading branch information
lukas-bednar authored Jun 7, 2017
1 parent 6265e73 commit ea852d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@
file_type: "file"
recurse: yes
register: log_files
tags:
- delete_logs

- name: remove log files and dir from /var/log
file:
Expand All @@ -117,9 +119,7 @@
shell: "> /etc/machine-id"

- name: Poweroff host
shell: "shutdown -t sec 5"
async: 1
poll: 0
shell: "shutdown" # scheduling shutdown in 1m
ignore_errors: yes
tags:
- poweroff

0 comments on commit ea852d9

Please sign in to comment.