From 11fbaf0b558400264c95026c70ed938a97f1673d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Mon, 3 May 2021 20:27:13 +0200 Subject: roles/update: Init default usages and actions --- playbooks/update.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'playbooks/update.yml') 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 -- cgit v1.2.3