Fix lint issue with latest version of yamllint.

This commit is contained in:
Jeff Geerling 2023-06-14 21:22:55 -05:00
parent f296994c76
commit 67c11836d4
1 changed files with 10 additions and 10 deletions

View File

@ -28,17 +28,17 @@
# See: https://github.com/ansible/ansible/issues/64852 # See: https://github.com/ansible/ansible/issues/64852
- block: - block:
- name: Ensure dnf-plugins are installed on CentOS 8+. - name: Ensure dnf-plugins are installed on CentOS 8+.
yum: yum:
name: dnf-plugins-core name: dnf-plugins-core
state: present state: present
- name: Enable DNF module for CentOS 8+. - name: Enable DNF module for CentOS 8+.
shell: | shell: |
dnf config-manager --set-enabled powertools dnf config-manager --set-enabled powertools
dnf module enable -y php:remi-{{ php_version }} dnf module enable -y php:remi-{{ php_version }}
register: dnf_module_enable register: dnf_module_enable
changed_when: "'Nothing to do' not in dnf_module_enable.stdout" changed_when: "'Nothing to do' not in dnf_module_enable.stdout"
when: when:
- ansible_os_family == 'RedHat' - ansible_os_family == 'RedHat'