From f3a609e8db0d52aec78f1c1e0c305290ef3e4598 Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Wed, 10 Jan 2018 13:22:53 +0100 Subject: [PATCH] Use multipathd hostgroup in the multipathd role There is already a multipathd hostgroup in the inventory. This hostgroup should be used in this role. Change-Id: If0cc0f8e4b81f71c40357bdba66bc2c62d72dfd8 --- ansible/roles/multipathd/tasks/config.yml | 4 ++-- ansible/roles/multipathd/tasks/start.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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']