diff --git a/roles/edpm_multipathd/tasks/install.yml b/roles/edpm_multipathd/tasks/install.yml index e209c8bc8..6ccca3698 100644 --- a/roles/edpm_multipathd/tasks/install.yml +++ b/roles/edpm_multipathd/tasks/install.yml @@ -41,7 +41,7 @@ - ansible_facts.services["multipathd"]["status"] == "enabled" failed_when: false loop: - - edpm-compute@multipathd.service + - multipathd.service - multipathd.socket loop_control: index_var: multipath_service_index diff --git a/roles/edpm_multipathd/tasks/run.yml b/roles/edpm_multipathd/tasks/run.yml index 39e0fd5dd..2216400a1 100644 --- a/roles/edpm_multipathd/tasks/run.yml +++ b/roles/edpm_multipathd/tasks/run.yml @@ -29,6 +29,7 @@ enabled: true state: started register: manage_multipathd_stat + become: true - name: Check if the multipathd container restart is required ansible.builtin.stat: