2016-03-31 10:33:55 -04:00
|
|
|
---
|
|
|
|
- name: Ensuring config directories exist
|
|
|
|
file:
|
|
|
|
path: "{{ node_config_directory }}/{{ item }}"
|
|
|
|
state: "directory"
|
|
|
|
recurse: yes
|
2017-08-09 11:34:33 +08:00
|
|
|
when: ( ( inventory_hostname in groups['compute'] or inventory_hostname in groups['cinder-volume'] ) and enable_cinder_backend_lvm | bool )
|
|
|
|
or ( inventory_hostname in groups['ironic-conductor'] and enable_ironic | bool )
|
2016-03-31 10:33:55 -04:00
|
|
|
with_items:
|
|
|
|
- "iscsid"
|
|
|
|
|
|
|
|
- name: Copying over config.json files for services
|
|
|
|
template:
|
|
|
|
src: "{{ item }}.json.j2"
|
|
|
|
dest: "{{ node_config_directory }}/{{ item }}/config.json"
|
2017-08-09 11:34:33 +08:00
|
|
|
when: ( ( inventory_hostname in groups['compute'] or inventory_hostname in groups['cinder-volume'] ) and enable_cinder_backend_lvm | bool )
|
|
|
|
or ( inventory_hostname in groups['ironic-conductor'] and enable_ironic | bool )
|
2016-03-31 10:33:55 -04:00
|
|
|
with_items:
|
|
|
|
- "iscsid"
|
|
|
|
|
|
|
|
- name: Ensuring config directories exist
|
|
|
|
file:
|
|
|
|
path: "{{ node_config_directory }}/{{ item }}"
|
|
|
|
state: "directory"
|
|
|
|
recurse: yes
|
2016-10-04 08:04:57 -07:00
|
|
|
when:
|
|
|
|
- enable_cinder_backend_lvm | bool
|
2016-12-08 17:59:48 +08:00
|
|
|
- inventory_hostname in groups['tgtd']
|
2016-03-31 10:33:55 -04:00
|
|
|
with_items:
|
|
|
|
- "tgtd"
|
|
|
|
|
|
|
|
- name: Copying over config.json files for services
|
|
|
|
template:
|
|
|
|
src: "{{ item }}.json.j2"
|
|
|
|
dest: "{{ node_config_directory }}/{{ item }}/config.json"
|
2016-10-04 08:04:57 -07:00
|
|
|
when:
|
|
|
|
- enable_cinder_backend_lvm | bool
|
2016-12-08 17:59:48 +08:00
|
|
|
- inventory_hostname in groups['tgtd']
|
2016-03-31 10:33:55 -04:00
|
|
|
with_items:
|
|
|
|
- "tgtd"
|