Fix lint issue with latest version of yamllint.
This commit is contained in:
parent
f296994c76
commit
67c11836d4
|
@ -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'
|
||||||
|
|
Loading…
Reference in New Issue