From a89e16c44ee6d038e4f4cf435902e66558cc5cf4 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 1 Sep 2023 00:26:13 +0200 Subject: sort module args, add missing state args, etc. --- roles/apt/tasks/main.yml | 4 ++-- roles/apt/tasks/unattended_upgrades.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'roles/apt/tasks') diff --git a/roles/apt/tasks/main.yml b/roles/apt/tasks/main.yml index 36b8b07..530519d 100644 --- a/roles/apt/tasks/main.yml +++ b/roles/apt/tasks/main.yml @@ -1,9 +1,9 @@ - name: Upgrade packages become: true ansible.builtin.apt: - install_recommends: false update_cache: true upgrade: dist + install_recommends: false notify: apt_reboot - name: Reboot if necessary @@ -19,9 +19,9 @@ - name: Install packages become: true ansible.builtin.apt: - install_recommends: false name: '{{ apt_packages }}' state: present + install_recommends: false - name: Configure unattended-upgrades ansible.builtin.include_tasks: unattended_upgrades.yml diff --git a/roles/apt/tasks/unattended_upgrades.yml b/roles/apt/tasks/unattended_upgrades.yml index 7549ec2..e9fdd05 100644 --- a/roles/apt/tasks/unattended_upgrades.yml +++ b/roles/apt/tasks/unattended_upgrades.yml @@ -1,9 +1,9 @@ - name: Install unattended-upgrades become: true ansible.builtin.apt: - install_recommends: false name: unattended-upgrades state: present + install_recommends: false - name: 50unattended-upgrades become: true -- cgit v1.2.3