Merge "Add the missing condition for config.yml"

This commit is contained in:
Jenkins 2017-02-14 16:23:01 +00:00 committed by Gerrit Code Review
commit 39ee9697ad
12 changed files with 35 additions and 12 deletions

View File

@ -4,7 +4,9 @@
path: "{{ node_config_directory }}/{{ item.key }}"
state: "directory"
recurse: yes
when: inventory_hostname in groups[item.value.group]
when:
- inventory_hostname in groups[item.value.group]
- item.value.enabled | bool
with_dict: "{{ elasticsearch_services }}"
- name: Copying over config.json files for services

View File

@ -4,7 +4,9 @@
path: "{{ node_config_directory }}/{{ item.key }}"
state: "directory"
recurse: yes
when: inventory_hostname in groups[item.value.group]
when:
- inventory_hostname in groups[item.value.group]
- item.value.enabled | bool
with_dict: "{{ glance_services }}"
- name: Copying over config.json files for services

View File

@ -4,7 +4,9 @@
path: "{{ node_config_directory }}/{{ item.key }}"
state: "directory"
recurse: yes
when: inventory_hostname in groups[item.value.group]
when:
- inventory_hostname in groups[item.value.group]
- item.value.enabled | bool
with_dict: "{{ gnocchi_services }}"
- name: Copying over config.json files for services

View File

@ -4,7 +4,9 @@
path: "{{ node_config_directory }}/{{ item.key }}"
state: "directory"
recurse: yes
when: inventory_hostname in groups[item.value.group]
when:
- inventory_hostname in groups[item.value.group]
- item.value.enabled | bool
with_dict: "{{ heat_services }}"
- name: Copying over config.json files for services

View File

@ -4,7 +4,9 @@
path: "{{ node_config_directory }}/{{ item.key }}"
state: "directory"
recurse: yes
when: inventory_hostname in groups[item.value.group]
when:
- inventory_hostname in groups[item.value.group]
- item.value.enabled | bool
with_dict: "{{ horizon_services }}"
- name: Copying over config.json files for services

View File

@ -14,7 +14,7 @@
recurse: yes
when:
- inventory_hostname in groups[item.value.group]
- item.value.enabled
- item.value.enabled | bool
with_dict: "{{ keystone_services }}"
- name: Copying over config.json files for services
@ -25,7 +25,7 @@
with_dict: "{{ keystone_services }}"
when:
- inventory_hostname in groups[item.value.group]
- item.value.enabled
- item.value.enabled | bool
notify:
- Restart keystone container
- Restart keystone-ssh container

View File

@ -4,7 +4,9 @@
path: "{{ node_config_directory }}/{{ item.key }}"
state: "directory"
recurse: yes
when: inventory_hostname in groups[item.value.group]
when:
- inventory_hostname in groups[item.value.group]
- item.value.enabled | bool
with_dict: "{{ magnum_services }}"
- name: Copying over config.json files for services

View File

@ -4,7 +4,9 @@
path: "{{ node_config_directory }}/{{ item.key }}"
state: "directory"
recurse: yes
when: inventory_hostname in groups[item.value.group]
when:
- inventory_hostname in groups[item.value.group]
- item.value.enabled | bool
with_dict: "{{ rally_services }}"
- name: Copying over config.json files for services

View File

@ -4,7 +4,9 @@
path: "{{ node_config_directory }}/{{ item.key }}"
state: "directory"
recurse: yes
when: inventory_hostname in groups[item.value.group]
when:
- inventory_hostname in groups[item.value.group]
- item.value.enabled | bool
with_dict: "{{ sahara_services }}"
- name: Copying over config.json files for services

View File

@ -4,6 +4,9 @@
path: "{{ node_config_directory }}/{{ item.key }}"
state: "directory"
recurse: yes
when:
- inventory_hostname in groups[item.value.group]
- item.value.enabled | bool
with_dict: "{{ searchlight_services }}"
- name: Copying over config.json files for services

View File

@ -4,7 +4,9 @@
path: "{{ node_config_directory }}/{{ item.key }}"
state: "directory"
recurse: yes
when: inventory_hostname in groups[item.value.group]
when:
- inventory_hostname in groups[item.value.group]
- item.value.enabled | bool
with_dict: "{{ senlin_services }}"
- name: Copying over config.json files for services

View File

@ -4,7 +4,9 @@
path: "{{ node_config_directory }}/{{ item.key }}"
state: "directory"
recurse: yes
when: inventory_hostname in groups[item.value.group]
when:
- inventory_hostname in groups[item.value.group]
- item.value.enabled | bool
with_dict: "{{ watcher_services }}"
- name: Copying over config.json files for services