diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-10-19 15:48:11 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-10-19 15:48:11 +0000 |
| commit | b0f1e00b0fa3dca3cde3964818016fb74212eefb (patch) | |
| tree | f28ba4cba538009cba89e1fd68e20ef8fe62c9f4 /ansible | |
| parent | afdf71e9348b4494887ac6e85d0a0ffbe7903231 (diff) | |
| parent | 157dc0f177ea3f4ff1901de37f9d17d183d6cb12 (diff) | |
| download | kolla-b0f1e00b0fa3dca3cde3964818016fb74212eefb.tar.gz kolla-b0f1e00b0fa3dca3cde3964818016fb74212eefb.zip | |
Merge "Make iscsi config.yml consistent with start.yml"
Diffstat (limited to 'ansible')
| -rw-r--r-- | ansible/roles/iscsi/tasks/config.yml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ansible/roles/iscsi/tasks/config.yml b/ansible/roles/iscsi/tasks/config.yml index 4393db15f..0ebe3dd74 100644 --- a/ansible/roles/iscsi/tasks/config.yml +++ b/ansible/roles/iscsi/tasks/config.yml @@ -23,7 +23,9 @@ path: "{{ node_config_directory }}/{{ item }}" state: "directory" recurse: yes - when: inventory_hostname in groups['tgtd'] + when: + - inventory_hostname in groups['tgtd'] + - enable_cinder_backend_lvm | bool with_items: - "tgtd" @@ -31,6 +33,8 @@ template: src: "{{ item }}.json.j2" dest: "{{ node_config_directory }}/{{ item }}/config.json" - when: inventory_hostname in groups['tgtd'] + when: + - inventory_hostname in groups['tgtd'] + - enable_cinder_backend_lvm | bool with_items: - "tgtd" |
