From 09d40ba1b70c690048a6db52f22dfa3388a440d8 Mon Sep 17 00:00:00 2001 From: jaydee Date: Thu, 10 Aug 2023 11:26:43 +0200 Subject: [PATCH] upt playbook --- playbooks/apt_upgrade.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 playbooks/apt_upgrade.yml diff --git a/playbooks/apt_upgrade.yml b/playbooks/apt_upgrade.yml new file mode 100644 index 0000000..dd5b603 --- /dev/null +++ b/playbooks/apt_upgrade.yml @@ -0,0 +1,10 @@ +- hosts: morefine + name: Apt udate + become: true + tasks: + - name: Apt update + ansible.builtin.shell: 'apt update' + changed_when: false + - name: Apt upgrade + ansible.builtin.shell: 'apt -o Dpkg::Options::="--force-confnew" upgrade -y' + changed_when: false \ No newline at end of file