Skip to content
Snippets Groups Projects
Verified Commit 7605e7ee authored by Evangelos Foutras's avatar Evangelos Foutras :smiley_cat:
Browse files

Use serial = 1 for servers without rescue shell

parent 871f9a20
No related branches found
No related tags found
1 merge request!475Add simple playbook task for upgrading servers
---
- name: ensure latest keyring
pacman:
name: archlinux-keyring
state: latest
update_cache: yes
- name: upgrade all packages
pacman:
update_cache: yes
upgrade: yes
register: pacman_upgrade
- name: reboot
reboot:
when: pacman_upgrade is changed
---
- name: upgrade and reboot all servers
hosts: all,!rsync_net,!hetzner_storageboxes
- name: upgrade and reboot all hetzner servers
hosts: all,!kape_servers,!packet_net,!rsync_net,!hetzner_storageboxes
serial: 20%
gather_facts: false
tasks:
- name: ensure latest keyring
pacman:
name: archlinux-keyring
state: latest
update_cache: yes
- name: upgrade each host in this batch
include_tasks: include/upgrade-server.yml
- name: upgrade all packages
pacman:
update_cache: yes
upgrade: yes
register: pacman_upgrade
- name: upgrade and reboot all kape and packet.net servers
hosts: kape_servers,packet_net
serial: 1
gather_facts: false
- name: reboot
reboot:
when: pacman_upgrade is changed
tasks:
- name: upgrade each host in this batch
include_tasks: include/upgrade-server.yml
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment