aboutsummaryrefslogtreecommitdiffstats
path: root/playbooks
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2021-05-03 20:27:13 +0200
committerRomain Gonçalves <me@rgoncalves.se>2021-05-03 20:27:13 +0200
commit11fbaf0b558400264c95026c70ed938a97f1673d (patch)
treec92182e206c871ad09dd8e6a0ac34617122f5267 /playbooks
parent5d07c5c3ea19bf03232ab6c90c3176f1ab0388f2 (diff)
downloadinfrastructure-11fbaf0b558400264c95026c70ed938a97f1673d.tar.gz
roles/update: Init default usages and actions
Diffstat (limited to 'playbooks')
-rw-r--r--playbooks/update.yml8
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
remember that computers suck.