From: Ralf Jung Date: Tue, 3 Apr 2018 09:33:50 +0000 (+0200) Subject: write upgrade playbook and try it on some more hosts X-Git-Url: https://git.ralfj.de/ansible.git/commitdiff_plain/5df124769817a210fc836f518f7326a11ac61adc?hp=e5c422099a285c38f8762ad3aeec3f25b029dcdc write upgrade playbook and try it on some more hosts --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ab47601 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.retry + diff --git a/ansible.cfg b/ansible.cfg index 6a35488..d735112 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -2,4 +2,5 @@ inventory = hosts [privilege_escalation] +become = True become_ask_pass = True diff --git a/upgrade.yml b/upgrade.yml new file mode 100644 index 0000000..5da0759 --- /dev/null +++ b/upgrade.yml @@ -0,0 +1,8 @@ +- hosts: all + tasks: + - name: system upgrade + apt: + autoremove: yes + autoclean: yes + update_cache: yes + upgrade: dist