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