ceo upgrade playbook
This commit is contained in:
parent
230c720795
commit
f19a5fb2a8
3
.config/ansible-lint.yml
Normal file
3
.config/ansible-lint.yml
Normal file
@ -0,0 +1,3 @@
|
||||
skip_list:
|
||||
- yaml[indentation]
|
||||
- package-latest
|
1
README
1
README
@ -10,6 +10,7 @@ Ansible playbooks of the University of Waterloo Computer Science Club.
|
||||
If a playbook is not in this list, it is not guaranteed to work.
|
||||
- [x] test-playbook.yml
|
||||
- [x] gather-ssh-fingerprints.yml
|
||||
- [x] upgrade-ceo.yml
|
||||
|
||||
** Deps **
|
||||
1. Install pipx
|
||||
|
@ -68,6 +68,7 @@ syscom_containers:
|
||||
chat.csclub.uwaterloo.ca:
|
||||
coffee.csclub.uwaterloo.ca:
|
||||
mail.csclub.uwaterloo.ca:
|
||||
mailman.csclub.uwaterloo.ca:
|
||||
munin.csclub.uwaterloo.ca:
|
||||
rt.csclub.uwaterloo.ca:
|
||||
dns1.csclub.uwaterloo.ca:
|
||||
@ -78,6 +79,14 @@ syscom_containers:
|
||||
prometheus.csclub.uwaterloo.ca:
|
||||
progcom.csclub.uwaterloo.ca:
|
||||
|
||||
|
||||
ceod_machines:
|
||||
hosts:
|
||||
phosphoric-acid.csclub.uwaterloo.ca:
|
||||
biloba.csclub.uwaterloo.ca:
|
||||
caffeine.csclub.uwaterloo.ca:
|
||||
mailman.csclub.uwaterloo.ca:
|
||||
|
||||
audio_sink:
|
||||
hosts:
|
||||
nullsleep.csclub.uwaterloo.ca:
|
||||
|
27
upgrade-ceo.yml
Normal file
27
upgrade-ceo.yml
Normal file
@ -0,0 +1,27 @@
|
||||
- name: Update ceod
|
||||
hosts: ceod_machines
|
||||
become: true
|
||||
|
||||
tasks:
|
||||
- name: update ceod package
|
||||
ansible.builtin.apt:
|
||||
name: ceod
|
||||
state: latest
|
||||
update_cache: true
|
||||
only_upgrade: true
|
||||
- name: restart ceod service
|
||||
ansible.builtin.systemd:
|
||||
name: ceod
|
||||
state: restarted
|
||||
|
||||
- name: Update ceo
|
||||
hosts: all
|
||||
become: true
|
||||
|
||||
tasks:
|
||||
- name: update ceo package
|
||||
ansible.builtin.apt:
|
||||
name: ceo
|
||||
state: latest
|
||||
update_cache: true
|
||||
only_upgrade: true
|
Loading…
x
Reference in New Issue
Block a user