From 8af7efa1e03c1d37cf34197249e487348d382d82 Mon Sep 17 00:00:00 2001 From: clyhtsuriva Date: Sun, 16 Feb 2025 20:06:17 +0100 Subject: ansible: apt_update becomes update_system to handle apt & dnf updates Using this opportunity to become role based --- ansible/playbooks/apt_update.yml | 12 ------------ ansible/playbooks/update_system.yml | 7 +++++++ 2 files changed, 7 insertions(+), 12 deletions(-) delete mode 100644 ansible/playbooks/apt_update.yml create mode 100644 ansible/playbooks/update_system.yml (limited to 'ansible/playbooks') diff --git a/ansible/playbooks/apt_update.yml b/ansible/playbooks/apt_update.yml deleted file mode 100644 index 2724a30..0000000 --- a/ansible/playbooks/apt_update.yml +++ /dev/null @@ -1,12 +0,0 @@ ---- -- name: Update the server - hosts: vps - become: true - tasks: - - - name: Update and upgrade apt packages - ansible.builtin.apt: - update_cache: true - upgrade: true - autoremove: true -... diff --git a/ansible/playbooks/update_system.yml b/ansible/playbooks/update_system.yml new file mode 100644 index 0000000..ba3fb84 --- /dev/null +++ b/ansible/playbooks/update_system.yml @@ -0,0 +1,7 @@ +--- +- name: Update the server + hosts: all + become: true + roles: + - update_system +... -- cgit v1.2.3