fix lint
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Adrien Reslinger 2022-07-16 23:34:27 +02:00
parent daf6a3948e
commit 8402c78e99
Signed by: adrien
GPG key ID: DA7B27055C66D6DE

View file

@ -16,7 +16,7 @@
- name: Install EPEL repo definition packages for {{ ansible_os_family }} on x86_64 and aarch64 plateform - name: Install EPEL repo definition packages for {{ ansible_os_family }} on x86_64 and aarch64 plateform
package: package:
name: "{{ item }}" name: "{{ item }}"
update_cache: yes update_cache: true
state: present state: present
with_items: with_items:
- epel-release - epel-release
@ -29,7 +29,7 @@
- name: Install EPEL repo definition packages for OracleLinux on x86_64 and aarch64 plateform - name: Install EPEL repo definition packages for OracleLinux on x86_64 and aarch64 plateform
package: package:
name: "{{ item }}" name: "{{ item }}"
update_cache: yes update_cache: true
state: present state: present
with_items: with_items:
- oracle-epel-release-el8 - oracle-epel-release-el8
@ -54,7 +54,7 @@
- name: Install base packages for {{ ansible_os_family }} - name: Install base packages for {{ ansible_os_family }}
package: package:
name: "{{ base_packages }}" name: "{{ base_packages }}"
update_cache: yes update_cache: true
state: present state: present
- name: echo 'LANG="{{ locale }}"' > /etc/locale.conf - name: echo 'LANG="{{ locale }}"' > /etc/locale.conf
@ -106,7 +106,7 @@
systemd: systemd:
name: dnf-automatic.timer name: dnf-automatic.timer
state: started state: started
enabled: yes enabled: true
when: when:
- base_autoupdate | bool - base_autoupdate | bool
- ansible_os_family == "RedHat" - ansible_os_family == "RedHat"
@ -120,7 +120,7 @@
- kpatch-dnf - kpatch-dnf
- kpatch-patch - kpatch-patch
- "kpatch-patch = {{ ansible_kernel }}" - "kpatch-patch = {{ ansible_kernel }}"
update_cache: yes update_cache: true
state: present state: present
when: when:
- base_autoupdate | bool - base_autoupdate | bool
@ -143,7 +143,7 @@
systemd: systemd:
name: kpatch.service name: kpatch.service
state: started state: started
enabled: yes enabled: true
when: when:
- base_autoupdate | bool - base_autoupdate | bool
- ansible_distribution == "RedHat" - ansible_distribution == "RedHat"
@ -152,7 +152,7 @@
# - name: upgrade all packages # - name: upgrade all packages
# package: # package:
# name: "*" # name: "*"
# update_cache: yes # update_cache: true
# state: latest # state: latest
- name: Install install_pxe.sh script - name: Install install_pxe.sh script
@ -167,7 +167,7 @@
service: service:
name: rngd name: rngd
state: started state: started
enabled: yes enabled: true
- name: Ensure rngd service is started - name: Ensure rngd service is started
service: service:
name: rngd name: rngd
@ -184,10 +184,12 @@
stat: stat:
path: "/etc/hosts.deny" path: "/etc/hosts.deny"
register: hostsdeny register: hostsdeny
check_mode: false
- name: Verify if hosts.allow TCP_Wrappers file exists - name: Verify if hosts.allow TCP_Wrappers file exists
stat: stat:
path: "/etc/hosts.allow" path: "/etc/hosts.allow"
register: hostsallow register: hostsallow
check_mode: false
- name: Install hosts.deny TCP_Wrappers file - name: Install hosts.deny TCP_Wrappers file
copy: copy: