diff --git a/roles/role_configure_ovh_instance/tasks/main.yml b/roles/role_configure_ovh_instance/tasks/main.yml index 880575e..0fd2a65 100644 --- a/roles/role_configure_ovh_instance/tasks/main.yml +++ b/roles/role_configure_ovh_instance/tasks/main.yml @@ -22,14 +22,14 @@ become: true tags: upgrade -- name: reboot +- name: Reboot ansible.builtin.reboot: when: - upgrade_register is defined - upgrade_register is changed become: true -- name: enable EPEL +- name: Add EPEL repository ansible.builtin.package: name: - epel-release.noarch @@ -37,11 +37,11 @@ become: true - name: Ensure the EPEL repository is disabled - community.general.dnf_config_manager: - name: epel - state: disabled + ansible.builtin.command: "yum-config-manager --disable epel" + changed_when: false + become: true -- name: install useful packages +- name: Install useful packages ansible.builtin.package: name: - vim