diff --git a/ansible/roles/multipathd/tasks/config.yml b/ansible/roles/multipathd/tasks/config.yml index 13bfa6c07d..57567133c5 100644 --- a/ansible/roles/multipathd/tasks/config.yml +++ b/ansible/roles/multipathd/tasks/config.yml @@ -7,7 +7,7 @@ group: "{{ config_owner_group }}" mode: "0770" become: true - when: inventory_hostname in groups['compute'] + when: inventory_hostname in groups['multipathd'] with_items: - "multipathd" @@ -17,7 +17,7 @@ dest: "{{ node_config_directory }}/{{ item }}/config.json" mode: "0660" become: true - when: inventory_hostname in groups['compute'] + when: inventory_hostname in groups['multipathd'] with_items: - "multipathd" diff --git a/ansible/roles/multipathd/tasks/start.yml b/ansible/roles/multipathd/tasks/start.yml index 2bf69eab2d..c62dd10783 100644 --- a/ansible/roles/multipathd/tasks/start.yml +++ b/ansible/roles/multipathd/tasks/start.yml @@ -18,4 +18,4 @@ - "/sys/kernel/config:/configfs" - "cinder:/var/lib/cinder" - "iscsi_info:/etc/iscsi" - when: inventory_hostname in groups['compute'] + when: inventory_hostname in groups['multipathd']