diff options
Diffstat (limited to 'playbooks')
-rw-r--r-- | playbooks/update.yml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/playbooks/update.yml b/playbooks/update.yml index ca2587e..f9399cb 100644 --- a/playbooks/update.yml +++ b/playbooks/update.yml @@ -3,9 +3,13 @@ --- -- name: Updates all instances with latest packages from their distribution repositories +- hosts: servers strategy: free - hosts: servers roles: - update +- hosts: servers + tasks: + - name: reboot all servers + reboot: + when: update_reboot is defined and update_reboot |