From 5df124769817a210fc836f518f7326a11ac61adc Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Tue, 3 Apr 2018 11:33:50 +0200 Subject: [PATCH] write upgrade playbook and try it on some more hosts --- .gitignore | 2 ++ ansible.cfg | 1 + upgrade.yml | 8 ++++++++ 3 files changed, 11 insertions(+) create mode 100644 .gitignore create mode 100644 upgrade.yml 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 -- 2.30.2