From 8402c78e99849a1e29be42ad319003ecab2a9526 Mon Sep 17 00:00:00 2001 From: Adrien Reslinger Date: Sat, 16 Jul 2022 23:34:27 +0200 Subject: [PATCH] fix lint --- tasks/main.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 1d44ec8..b45a268 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -16,7 +16,7 @@ - name: Install EPEL repo definition packages for {{ ansible_os_family }} on x86_64 and aarch64 plateform package: name: "{{ item }}" - update_cache: yes + update_cache: true state: present with_items: - epel-release @@ -29,7 +29,7 @@ - name: Install EPEL repo definition packages for OracleLinux on x86_64 and aarch64 plateform package: name: "{{ item }}" - update_cache: yes + update_cache: true state: present with_items: - oracle-epel-release-el8 @@ -54,7 +54,7 @@ - name: Install base packages for {{ ansible_os_family }} package: name: "{{ base_packages }}" - update_cache: yes + update_cache: true state: present - name: echo 'LANG="{{ locale }}"' > /etc/locale.conf @@ -106,7 +106,7 @@ systemd: name: dnf-automatic.timer state: started - enabled: yes + enabled: true when: - base_autoupdate | bool - ansible_os_family == "RedHat" @@ -120,7 +120,7 @@ - kpatch-dnf - kpatch-patch - "kpatch-patch = {{ ansible_kernel }}" - update_cache: yes + update_cache: true state: present when: - base_autoupdate | bool @@ -143,7 +143,7 @@ systemd: name: kpatch.service state: started - enabled: yes + enabled: true when: - base_autoupdate | bool - ansible_distribution == "RedHat" @@ -152,7 +152,7 @@ # - name: upgrade all packages # package: # name: "*" -# update_cache: yes +# update_cache: true # state: latest - name: Install install_pxe.sh script @@ -167,7 +167,7 @@ service: name: rngd state: started - enabled: yes + enabled: true - name: Ensure rngd service is started service: name: rngd @@ -184,10 +184,12 @@ stat: path: "/etc/hosts.deny" register: hostsdeny + check_mode: false - name: Verify if hosts.allow TCP_Wrappers file exists stat: path: "/etc/hosts.allow" register: hostsallow + check_mode: false - name: Install hosts.deny TCP_Wrappers file copy: