From ea852d913fb267fa095e861ae5defa7aa33203b7 Mon Sep 17 00:00:00 2001 From: Lukas Bednar Date: Wed, 7 Jun 2017 10:04:10 +0200 Subject: [PATCH] Fix shutdown command (#16) Fix #15 --- tasks/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index ba592b7..2daa129 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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: @@ -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