Use include_tasks instead of include

include is marked as deprecated since ansible 2.4[0]

[0] https://docs.ansible.com/ansible/2.4/include_module.html#deprecated

Co-Authored-By: confi-surya <singh.surya64mnnit@gmail.com>
Change-Id: Ic9d71e1865d1c728890625aeddf424a5734c0a8a
This commit is contained in:
Jeffrey Zhang 2018-07-23 12:58:02 +08:00
parent 3e5d3f94e9
commit b51eeed89e
324 changed files with 549 additions and 549 deletions

View File

@ -32,5 +32,5 @@
when: when:
- not use_preconfigured_databases | bool - not use_preconfigured_databases | bool
- include: bootstrap_service.yml - include_tasks: bootstrap_service.yml
when: database.changed or use_preconfigured_databases | bool when: database.changed or use_preconfigured_databases | bool

View File

@ -1,17 +1,17 @@
--- ---
- include: register.yml - include_tasks: register.yml
when: inventory_hostname in groups['aodh-api'] when: inventory_hostname in groups['aodh-api']
- include: config.yml - include_tasks: config.yml
when: inventory_hostname in groups['aodh-api'] or when: inventory_hostname in groups['aodh-api'] or
inventory_hostname in groups['aodh-evaluator'] or inventory_hostname in groups['aodh-evaluator'] or
inventory_hostname in groups['aodh-listener'] or inventory_hostname in groups['aodh-listener'] or
inventory_hostname in groups['aodh-notifier'] inventory_hostname in groups['aodh-notifier']
- include: clone.yml - include_tasks: clone.yml
when: aodh_dev_mode | bool when: aodh_dev_mode | bool
- include: bootstrap.yml - include_tasks: bootstrap.yml
when: inventory_hostname in groups['aodh-api'] when: inventory_hostname in groups['aodh-api']
- name: Flush handlers - name: Flush handlers

View File

@ -1,2 +1,2 @@
--- ---
- include: "{{ kolla_action }}.yml" - include_tasks: "{{ kolla_action }}.yml"

View File

@ -1,2 +1,2 @@
--- ---
- include: deploy.yml - include_tasks: deploy.yml

View File

@ -1,7 +1,7 @@
--- ---
- include: config.yml - include_tasks: config.yml
- include: bootstrap_service.yml - include_tasks: bootstrap_service.yml
- name: Flush handlers - name: Flush handlers
meta: flush_handlers meta: flush_handlers

View File

@ -32,5 +32,5 @@
when: when:
- not use_preconfigured_databases | bool - not use_preconfigured_databases | bool
- include: bootstrap_service.yml - include_tasks: bootstrap_service.yml
when: database.changed or use_preconfigured_databases | bool when: database.changed or use_preconfigured_databases | bool

View File

@ -1,16 +1,16 @@
--- ---
- include: register.yml - include_tasks: register.yml
when: inventory_hostname in groups['barbican-api'] when: inventory_hostname in groups['barbican-api']
- include: config.yml - include_tasks: config.yml
when: inventory_hostname in groups['barbican-api'] or when: inventory_hostname in groups['barbican-api'] or
inventory_hostname in groups['barbican-worker'] or inventory_hostname in groups['barbican-worker'] or
inventory_hostname in groups['barbican-keystone-listener'] inventory_hostname in groups['barbican-keystone-listener']
- include: clone.yml - include_tasks: clone.yml
when: barbican_dev_mode | bool when: barbican_dev_mode | bool
- include: bootstrap.yml - include_tasks: bootstrap.yml
when: inventory_hostname in groups['barbican-api'] when: inventory_hostname in groups['barbican-api']
- name: Flush handlers - name: Flush handlers

View File

@ -1,2 +1,2 @@
--- ---
- include: "{{ kolla_action }}.yml" - include_tasks: "{{ kolla_action }}.yml"

View File

@ -1,2 +1,2 @@
--- ---
- include: deploy.yml - include_tasks: deploy.yml

View File

@ -1,7 +1,7 @@
--- ---
- include: config.yml - include_tasks: config.yml
- include: bootstrap_service.yml - include_tasks: bootstrap_service.yml
- name: Flush handlers - name: Flush handlers
meta: flush_handlers meta: flush_handlers

View File

@ -1,6 +1,6 @@
--- ---
- include: pre-install.yml - include_tasks: pre-install.yml
- include: install.yml - include_tasks: install.yml
- include: post-install.yml - include_tasks: post-install.yml

View File

@ -1,2 +1,2 @@
--- ---
- include: "{{ kolla_action }}.yml" - include_tasks: "{{ kolla_action }}.yml"

View File

@ -1,6 +1,6 @@
--- ---
- include: config.yml - include_tasks: config.yml
- include: start.yml - include_tasks: start.yml
- include: bootstrap.yml - include_tasks: bootstrap.yml

View File

@ -1,2 +1,2 @@
--- ---
- include: "{{ kolla_action }}.yml" - include_tasks: "{{ kolla_action }}.yml"

View File

@ -10,7 +10,7 @@
with_items: with_items:
- { name: bifrost-deploy, group: bifrost-deploy } - { name: bifrost-deploy, group: bifrost-deploy }
- include: config.yml - include_tasks: config.yml
- name: Check the configs - name: Check the configs
command: docker exec {{ item.name }} /usr/local/bin/kolla_set_configs --check command: docker exec {{ item.name }} /usr/local/bin/kolla_set_configs --check
@ -49,7 +49,7 @@
- "{{ container_envs.results }}" - "{{ container_envs.results }}"
- "{{ check_results.results }}" - "{{ check_results.results }}"
- include: start.yml - include_tasks: start.yml
when: remove_containers.changed when: remove_containers.changed
- name: Restart containers - name: Restart containers

View File

@ -1,4 +1,4 @@
--- ---
- include: config.yml - include_tasks: config.yml
- include: start.yml - include_tasks: start.yml

View File

@ -50,5 +50,5 @@
run_once: True run_once: True
delegate_to: "{{ groups['blazar-api'][0] }}" delegate_to: "{{ groups['blazar-api'][0] }}"
- include: bootstrap_service.yml - include_tasks: bootstrap_service.yml
when: database.changed when: database.changed

View File

@ -1,15 +1,15 @@
--- ---
- include: register.yml - include_tasks: register.yml
when: inventory_hostname in groups['blazar-api'] when: inventory_hostname in groups['blazar-api']
- include: config.yml - include_tasks: config.yml
when: inventory_hostname in groups['blazar-api'] or when: inventory_hostname in groups['blazar-api'] or
inventory_hostname in groups['blazar-manager'] inventory_hostname in groups['blazar-manager']
- include: clone.yml - include_tasks: clone.yml
when: blazar_dev_mode | bool when: blazar_dev_mode | bool
- include: bootstrap.yml - include_tasks: bootstrap.yml
when: inventory_hostname in groups['blazar-api'] when: inventory_hostname in groups['blazar-api']
- name: Flush handlers - name: Flush handlers

View File

@ -1,2 +1,2 @@
--- ---
- include: "{{ kolla_action }}.yml" - include_tasks: "{{ kolla_action }}.yml"

View File

@ -1,2 +1,2 @@
--- ---
- include: deploy.yml - include_tasks: deploy.yml

View File

@ -1,7 +1,7 @@
--- ---
- include: config.yml - include_tasks: config.yml
- include: bootstrap_service.yml - include_tasks: bootstrap_service.yml
- name: Flush handlers - name: Flush handlers
meta: flush_handlers meta: flush_handlers

View File

@ -1,3 +1,3 @@
--- ---
# TODO(Jeffrey4l): fix idempotent # TODO(Jeffrey4l): fix idempotent
- include: bootstrap_service.yml - include_tasks: bootstrap_service.yml

View File

@ -1,15 +1,15 @@
--- ---
- include: register.yml - include_tasks: register.yml
when: inventory_hostname in groups['ceilometer'] when: inventory_hostname in groups['ceilometer']
- include: config.yml - include_tasks: config.yml
when: inventory_hostname in groups['ceilometer'] or when: inventory_hostname in groups['ceilometer'] or
inventory_hostname in groups['compute'] inventory_hostname in groups['compute']
- include: clone.yml - include_tasks: clone.yml
when: ceilometer_dev_mode | bool when: ceilometer_dev_mode | bool
- include: bootstrap.yml - include_tasks: bootstrap.yml
when: inventory_hostname in groups['ceilometer'] when: inventory_hostname in groups['ceilometer']
- name: Flush handlers - name: Flush handlers

View File

@ -1,2 +1,2 @@
--- ---
- include: "{{ kolla_action }}.yml" - include_tasks: "{{ kolla_action }}.yml"

View File

@ -1,2 +1,2 @@
--- ---
- include: deploy.yml - include_tasks: deploy.yml

View File

@ -1,7 +1,7 @@
--- ---
- include: config.yml - include_tasks: config.yml
- include: bootstrap_service.yml - include_tasks: bootstrap_service.yml
- name: Flush handlers - name: Flush handlers
meta: flush_handlers meta: flush_handlers

View File

@ -35,5 +35,5 @@
check_mode: no check_mode: no
run_once: True run_once: True
- include: generate_cluster.yml - include_tasks: generate_cluster.yml
when: delegate_host == 'None' and inventory_hostname == groups['ceph-mon'][0] when: delegate_host == 'None' and inventory_hostname == groups['ceph-mon'][0]

View File

@ -1,23 +1,23 @@
--- ---
- include: config.yml - include_tasks: config.yml
- include: bootstrap_mons.yml - include_tasks: bootstrap_mons.yml
when: inventory_hostname in groups['ceph-mon'] when: inventory_hostname in groups['ceph-mon']
- include: distribute_keyrings.yml - include_tasks: distribute_keyrings.yml
- include: start_mons.yml - include_tasks: start_mons.yml
when: inventory_hostname in groups['ceph-mon'] when: inventory_hostname in groups['ceph-mon']
- include: start_mgrs.yml - include_tasks: start_mgrs.yml
when: inventory_hostname in groups['ceph-mgr'] when: inventory_hostname in groups['ceph-mgr']
- include: start_ceph_dashboard.yml - include_tasks: start_ceph_dashboard.yml
when: when:
- enable_ceph_dashboard | bool - enable_ceph_dashboard | bool
- inventory_hostname in groups['ceph-mon'] - inventory_hostname in groups['ceph-mon']
- include: start_nfss.yml - include_tasks: start_nfss.yml
when: when:
- enable_ceph_nfs | bool - enable_ceph_nfs | bool
- inventory_hostname in groups['ceph-nfs'] - inventory_hostname in groups['ceph-nfs']
@ -29,23 +29,23 @@
run_once: True run_once: True
delegate_to: "{{ groups['ceph-mon'][0] }}" delegate_to: "{{ groups['ceph-mon'][0] }}"
- include: bootstrap_osds.yml - include_tasks: bootstrap_osds.yml
when: inventory_hostname in groups['ceph-osd'] when: inventory_hostname in groups['ceph-osd']
- include: start_osds.yml - include_tasks: start_osds.yml
when: inventory_hostname in groups['ceph-osd'] when: inventory_hostname in groups['ceph-osd']
- include: start_rgws.yml - include_tasks: start_rgws.yml
when: when:
- enable_ceph_rgw | bool - enable_ceph_rgw | bool
- inventory_hostname in groups['ceph-rgw'] - inventory_hostname in groups['ceph-rgw']
- include: start_rgw_keystone.yml - include_tasks: start_rgw_keystone.yml
when: when:
- enable_ceph_rgw_keystone | bool - enable_ceph_rgw_keystone | bool
- inventory_hostname in groups['ceph-rgw'] - inventory_hostname in groups['ceph-rgw']
- include: start_mdss.yml - include_tasks: start_mdss.yml
when: when:
- enable_ceph_mds | bool - enable_ceph_mds | bool
- inventory_hostname in groups['ceph-mds'] - inventory_hostname in groups['ceph-mds']

View File

@ -22,7 +22,7 @@
- "ceph_mon_config:/etc/ceph" - "ceph_mon_config:/etc/ceph"
- "kolla_logs:/var/log/kolla/" - "kolla_logs:/var/log/kolla/"
- include: start_mons.yml - include_tasks: start_mons.yml
- name: Setting host for cluster files - name: Setting host for cluster files
set_fact: set_fact:

View File

@ -1,2 +1,2 @@
--- ---
- include: "{{ kolla_action }}.yml" - include_tasks: "{{ kolla_action }}.yml"

View File

@ -55,7 +55,7 @@
with_items: with_items:
- { name: ceph_rgw, group: ceph-rgw } - { name: ceph_rgw, group: ceph-rgw }
- include: config.yml - include_tasks: config.yml
- name: Check the configs in ceph_mon container - name: Check the configs in ceph_mon container
command: docker exec {{ item.name }} /usr/local/bin/kolla_set_configs --check command: docker exec {{ item.name }} /usr/local/bin/kolla_set_configs --check
@ -165,17 +165,17 @@
- "{{ ceph_rgw_container_envs.results }}" - "{{ ceph_rgw_container_envs.results }}"
- "{{ ceph_rgw_check_results.results }}" - "{{ ceph_rgw_check_results.results }}"
- include: start_mons.yml - include_tasks: start_mons.yml
when: when:
- inventory_hostname in groups['ceph-mon'] - inventory_hostname in groups['ceph-mon']
- remove_ceph_mon_container.changed - remove_ceph_mon_container.changed
- include: start_osds.yml - include_tasks: start_osds.yml
when: when:
- inventory_hostname in groups['ceph-osd'] - inventory_hostname in groups['ceph-osd']
- remove_ceph_osd_containers.changed - remove_ceph_osd_containers.changed
- include: start_rgws.yml - include_tasks: start_rgws.yml
when: when:
- inventory_hostname in groups['ceph-rgw'] - inventory_hostname in groups['ceph-rgw']
- remove_ceph_rgw_container.changed - remove_ceph_rgw_container.changed

View File

@ -1,5 +1,5 @@
--- ---
- include: ../../ceph_pools.yml - include_tasks: ../../ceph_pools.yml
vars: vars:
pool_name: "{{ item.pool_name }}" pool_name: "{{ item.pool_name }}"
pool_type: "{{ item.pool_type }}" pool_type: "{{ item.pool_type }}"

View File

@ -1,5 +1,5 @@
--- ---
- include: config.yml - include_tasks: config.yml
# NOTE(jeffrey4l): client.admin caps should be update when upgrade from Jewel # NOTE(jeffrey4l): client.admin caps should be update when upgrade from Jewel
# to Luminous # to Luminous
@ -10,26 +10,26 @@
run_once: True run_once: True
delegate_to: "{{ groups['ceph-mon'][0] }}" delegate_to: "{{ groups['ceph-mon'][0] }}"
- include: start_mons.yml - include_tasks: start_mons.yml
when: inventory_hostname in groups['ceph-mon'] when: inventory_hostname in groups['ceph-mon']
- include: start_mgrs.yml - include_tasks: start_mgrs.yml
when: inventory_hostname in groups['ceph-mgr'] when: inventory_hostname in groups['ceph-mgr']
- include: start_osds.yml - include_tasks: start_osds.yml
when: inventory_hostname in groups['ceph-osd'] when: inventory_hostname in groups['ceph-osd']
- include: start_rgws.yml - include_tasks: start_rgws.yml
when: when:
- enable_ceph_rgw | bool - enable_ceph_rgw | bool
- inventory_hostname in groups['ceph-rgw'] - inventory_hostname in groups['ceph-rgw']
- include: start_mdss.yml - include_tasks: start_mdss.yml
when: when:
- enable_ceph_mds | bool - enable_ceph_mds | bool
- inventory_hostname in groups['ceph-mds'] - inventory_hostname in groups['ceph-mds']
- include: start_nfss.yml - include_tasks: start_nfss.yml
when: when:
- enable_ceph_nfs | bool - enable_ceph_nfs | bool
- inventory_hostname in groups['ceph-nfs'] - inventory_hostname in groups['ceph-nfs']

View File

@ -1,2 +1,2 @@
--- ---
- include: generate.yml - include_tasks: generate.yml

View File

@ -1,5 +1,5 @@
--- ---
- include: config.yml - include_tasks: config.yml
- name: Flush handlers - name: Flush handlers
meta: flush_handlers meta: flush_handlers

View File

@ -1,2 +1,2 @@
--- ---
- include: "{{ kolla_action }}.yml" - include_tasks: "{{ kolla_action }}.yml"

View File

@ -1,2 +1,2 @@
--- ---
- include: deploy.yml - include_tasks: deploy.yml

View File

@ -1,2 +1,2 @@
--- ---
- include: deploy.yml - include_tasks: deploy.yml

View File

@ -32,5 +32,5 @@
when: when:
- not use_preconfigured_databases | bool - not use_preconfigured_databases | bool
- include: bootstrap_service.yml - include_tasks: bootstrap_service.yml
when: database.changed or use_preconfigured_databases | bool when: database.changed or use_preconfigured_databases | bool

View File

@ -36,7 +36,7 @@
- item.key in services_need_config - item.key in services_need_config
with_dict: "{{ cinder_services }}" with_dict: "{{ cinder_services }}"
- include: ../../ceph_pools.yml - include_tasks: ../../ceph_pools.yml
vars: vars:
pool_name: "{{ cinder_pool_name }}" pool_name: "{{ cinder_pool_name }}"
pool_type: "{{ cinder_pool_type }}" pool_type: "{{ cinder_pool_type }}"
@ -45,7 +45,7 @@
pool_pgp_num: "{{ cinder_pool_pgp_num }}" pool_pgp_num: "{{ cinder_pool_pgp_num }}"
pool_application: "rbd" pool_application: "rbd"
- include: ../../ceph_pools.yml - include_tasks: ../../ceph_pools.yml
vars: vars:
pool_name: "{{ cinder_backup_pool_name }}" pool_name: "{{ cinder_backup_pool_name }}"
pool_type: "{{ cinder_backup_pool_type }}" pool_type: "{{ cinder_backup_pool_type }}"

View File

@ -1,5 +1,5 @@
--- ---
- include: ceph.yml - include_tasks: ceph.yml
when: when:
- (enable_ceph | bool) and (cinder_backend_ceph | bool) - (enable_ceph | bool) and (cinder_backend_ceph | bool)
- inventory_hostname in groups['ceph-mon'] or - inventory_hostname in groups['ceph-mon'] or
@ -8,31 +8,31 @@
inventory_hostname in groups['cinder-scheduler'] or inventory_hostname in groups['cinder-scheduler'] or
inventory_hostname in groups['cinder-backup'] inventory_hostname in groups['cinder-backup']
- include: external_ceph.yml - include_tasks: external_ceph.yml
when: when:
- (enable_ceph | bool == False) and (cinder_backend_ceph | bool) - (enable_ceph | bool == False) and (cinder_backend_ceph | bool)
- inventory_hostname in groups['cinder-volume'] or - inventory_hostname in groups['cinder-volume'] or
inventory_hostname in groups['cinder-backup'] inventory_hostname in groups['cinder-backup']
- include: register.yml - include_tasks: register.yml
when: inventory_hostname in groups['cinder-api'] when: inventory_hostname in groups['cinder-api']
- include: config.yml - include_tasks: config.yml
when: inventory_hostname in groups['cinder-api'] or when: inventory_hostname in groups['cinder-api'] or
inventory_hostname in groups['cinder-volume'] or inventory_hostname in groups['cinder-volume'] or
inventory_hostname in groups['cinder-scheduler'] or inventory_hostname in groups['cinder-scheduler'] or
inventory_hostname in groups['cinder-backup'] inventory_hostname in groups['cinder-backup']
- include: clone.yml - include_tasks: clone.yml
when: cinder_dev_mode | bool when: cinder_dev_mode | bool
- include: bootstrap.yml - include_tasks: bootstrap.yml
when: inventory_hostname in groups['cinder-api'] when: inventory_hostname in groups['cinder-api']
- name: Flush handlers - name: Flush handlers
meta: flush_handlers meta: flush_handlers
- include: check.yml - include_tasks: check.yml
when: inventory_hostname in groups['cinder-api'] or when: inventory_hostname in groups['cinder-api'] or
inventory_hostname in groups['cinder-volume'] or inventory_hostname in groups['cinder-volume'] or
inventory_hostname in groups['cinder-scheduler'] or inventory_hostname in groups['cinder-scheduler'] or

View File

@ -1,2 +1,2 @@
--- ---
- include: "{{ kolla_action }}.yml" - include_tasks: "{{ kolla_action }}.yml"

View File

@ -1,2 +1,2 @@
--- ---
- include: deploy.yml - include_tasks: deploy.yml

View File

@ -1,17 +1,17 @@
--- ---
# NOTE (duonghq): I break pull and config into 2 phases to prevent new version # NOTE (duonghq): I break pull and config into 2 phases to prevent new version
# of service start if node or process in node crash accidentally. # of service start if node or process in node crash accidentally.
- include: pull.yml - include_tasks: pull.yml
when: inventory_hostname == groups["cinder-api"][0] when: inventory_hostname == groups["cinder-api"][0]
- include: config.yml - include_tasks: config.yml
when: inventory_hostname == groups["cinder-api"][0] when: inventory_hostname == groups["cinder-api"][0]
- include: bootstrap_service.yml - include_tasks: bootstrap_service.yml
- include: pull.yml - include_tasks: pull.yml
- include: config.yml - include_tasks: config.yml
- name: Flush handlers - name: Flush handlers
meta: flush_handlers meta: flush_handlers

View File

@ -32,5 +32,5 @@
when: when:
- not use_preconfigured_databases | bool - not use_preconfigured_databases | bool
- include: bootstrap_service.yml - include_tasks: bootstrap_service.yml
when: database.changed or use_preconfigured_databases | bool when: database.changed or use_preconfigured_databases | bool

View File

@ -1,15 +1,15 @@
--- ---
- include: register.yml - include_tasks: register.yml
when: inventory_hostname in groups['cloudkitty-api'] when: inventory_hostname in groups['cloudkitty-api']
- include: config.yml - include_tasks: config.yml
when: inventory_hostname in groups['cloudkitty-api'] or when: inventory_hostname in groups['cloudkitty-api'] or
inventory_hostname in groups['cloudkitty-processor'] inventory_hostname in groups['cloudkitty-processor']
- include: clone.yml - include_tasks: clone.yml
when: cloudkitty_dev_mode | bool when: cloudkitty_dev_mode | bool
- include: bootstrap.yml - include_tasks: bootstrap.yml
when: inventory_hostname in groups['cloudkitty-api'] when: inventory_hostname in groups['cloudkitty-api']
- name: Flush handlers - name: Flush handlers

View File

@ -1,2 +1,2 @@
--- ---
- include: "{{ kolla_action }}.yml" - include_tasks: "{{ kolla_action }}.yml"

View File

@ -1,2 +1,2 @@
--- ---
- include: deploy.yml - include_tasks: deploy.yml

View File

@ -1,7 +1,7 @@
--- ---
- include: config.yml - include_tasks: config.yml
- include: bootstrap_service.yml - include_tasks: bootstrap_service.yml
- name: Flush handlers - name: Flush handlers
meta: flush_handlers meta: flush_handlers

View File

@ -1,5 +1,5 @@
--- ---
- include: config.yml - include_tasks: config.yml
- name: Flush handlers - name: Flush handlers
meta: flush_handlers meta: flush_handlers

View File

@ -1,2 +1,2 @@
--- ---
- include: "{{ kolla_action }}.yml" - include_tasks: "{{ kolla_action }}.yml"

View File

@ -1,2 +1,2 @@
--- ---
- include: deploy.yml - include_tasks: deploy.yml

View File

@ -1,5 +1,5 @@
--- ---
- include: config.yml - include_tasks: config.yml
- name: Flush handlers - name: Flush handlers
meta: flush_handlers meta: flush_handlers

View File

@ -1,7 +1,7 @@
--- ---
- include: config.yml - include_tasks: config.yml
- include: bootstrap.yml - include_tasks: bootstrap.yml
- name: Flush handlers - name: Flush handlers
meta: flush_handlers meta: flush_handlers

View File

@ -1,5 +1,5 @@
--- ---
- include: "{{ kolla_action }}.yml" - include_tasks: "{{ kolla_action }}.yml"
tags: common tags: common
when: not common_run when: not common_run

View File

@ -1,2 +1,2 @@
--- ---
- include: deploy.yml - include_tasks: deploy.yml

View File

@ -1,5 +1,5 @@
--- ---
- include: config.yml - include_tasks: config.yml
- name: Flush handlers - name: Flush handlers
meta: flush_handlers meta: flush_handlers

View File

@ -32,5 +32,5 @@
when: when:
- not use_preconfigured_databases | bool - not use_preconfigured_databases | bool
- include: bootstrap_service.yml - include_tasks: bootstrap_service.yml
when: database.changed or use_preconfigured_databases | bool when: database.changed or use_preconfigured_databases | bool

View File

@ -1,16 +1,16 @@
--- ---
- include: register.yml - include_tasks: register.yml
when: inventory_hostname in groups['congress-api'] when: inventory_hostname in groups['congress-api']
- include: config.yml - include_tasks: config.yml
when: inventory_hostname in groups['congress-api'] or when: inventory_hostname in groups['congress-api'] or
inventory_hostname in groups['congress-policy-engine'] or inventory_hostname in groups['congress-policy-engine'] or
inventory_hostname in groups['congress-datasource'] inventory_hostname in groups['congress-datasource']
- include: clone.yml - include_tasks: clone.yml
when: congress_dev_mode | bool when: congress_dev_mode | bool
- include: bootstrap.yml - include_tasks: bootstrap.yml
when: inventory_hostname in groups['congress-api'] when: inventory_hostname in groups['congress-api']
- name: Flush handlers - name: Flush handlers

View File

@ -1,2 +1,2 @@
--- ---
- include: "{{ kolla_action }}.yml" - include_tasks: "{{ kolla_action }}.yml"

View File

@ -1,2 +1,2 @@
--- ---
- include: deploy.yml - include_tasks: deploy.yml

View File

@ -1,7 +1,7 @@
--- ---
- include: config.yml - include_tasks: config.yml
- include: bootstrap_service.yml - include_tasks: bootstrap_service.yml
- name: Flush handlers - name: Flush handlers
meta: flush_handlers meta: flush_handlers

View File

@ -42,5 +42,5 @@
when: when:
- not use_preconfigured_databases | bool - not use_preconfigured_databases | bool
- include: bootstrap_service.yml - include_tasks: bootstrap_service.yml
when: database.changed or use_preconfigured_databases | bool when: database.changed or use_preconfigured_databases | bool

View File

@ -148,7 +148,7 @@
- Restart designate-backend-bind9 container - Restart designate-backend-bind9 container
- Restart designate-worker container - Restart designate-worker container
- include: backend_external.yml - include_tasks: backend_external.yml
when: designate_backend_external == 'bind9' when: designate_backend_external == 'bind9'
- name: Check if policies shall be overwritten - name: Check if policies shall be overwritten

View File

@ -1,8 +1,8 @@
--- ---
- include: register.yml - include_tasks: register.yml
when: inventory_hostname in groups['designate-api'] when: inventory_hostname in groups['designate-api']
- include: config.yml - include_tasks: config.yml
when: inventory_hostname in groups['designate-api'] or when: inventory_hostname in groups['designate-api'] or
inventory_hostname in groups['designate-central'] or inventory_hostname in groups['designate-central'] or
inventory_hostname in groups['designate-producer'] or inventory_hostname in groups['designate-producer'] or
@ -11,14 +11,14 @@
inventory_hostname in groups['designate-sink'] or inventory_hostname in groups['designate-sink'] or
inventory_hostname in groups['designate-backend-bind9'] inventory_hostname in groups['designate-backend-bind9']
- include: clone.yml - include_tasks: clone.yml
when: designate_dev_mode | bool when: designate_dev_mode | bool
- include: bootstrap.yml - include_tasks: bootstrap.yml
when: inventory_hostname in groups['designate-central'] when: inventory_hostname in groups['designate-central']
- name: Flush handlers - name: Flush handlers
meta: flush_handlers meta: flush_handlers
- include: update_pools.yml - include_tasks: update_pools.yml
when: inventory_hostname in groups['designate-worker'][0] when: inventory_hostname in groups['designate-worker'][0]

View File

@ -1,2 +1,2 @@
--- ---
- include: "{{ kolla_action }}.yml" - include_tasks: "{{ kolla_action }}.yml"

View File

@ -1,2 +1,2 @@
--- ---
- include: deploy.yml - include_tasks: deploy.yml

View File

@ -1,9 +1,9 @@
--- ---
- include: config.yml - include_tasks: config.yml
- include: bootstrap_service.yml - include_tasks: bootstrap_service.yml
- name: Flush handlers - name: Flush handlers
meta: flush_handlers meta: flush_handlers
- include: update_pools.yml - include_tasks: update_pools.yml

View File

@ -1,8 +1,8 @@
--- ---
- include: validate_docker_execute.yml - include_tasks: validate_docker_execute.yml
- include: cleanup_containers.yml - include_tasks: cleanup_containers.yml
- include: cleanup_images.yml - include_tasks: cleanup_images.yml
- include: cleanup_host.yml - include_tasks: cleanup_host.yml

View File

@ -1,5 +1,5 @@
--- ---
- include: config.yml - include_tasks: config.yml
- name: Flush handlers - name: Flush handlers
meta: flush_handlers meta: flush_handlers

View File

@ -1,2 +1,2 @@
--- ---
- include: "{{ kolla_action }}.yml" - include_tasks: "{{ kolla_action }}.yml"

View File

@ -1,2 +1,2 @@
--- ---
- include: deploy.yml - include_tasks: deploy.yml

View File

@ -1,5 +1,5 @@
--- ---
- include: config.yml - include_tasks: config.yml
- name: Flush handlers - name: Flush handlers
meta: flush_handlers meta: flush_handlers

View File

@ -1,5 +1,5 @@
--- ---
- include: config.yml - include_tasks: config.yml
- name: Flush handlers - name: Flush handlers
meta: flush_handlers meta: flush_handlers

View File

@ -1,2 +1,2 @@
--- ---
- include: "{{ kolla_action }}.yml" - include_tasks: "{{ kolla_action }}.yml"

View File

@ -1,2 +1,2 @@
--- ---
- include: deploy.yml - include_tasks: deploy.yml

View File

@ -1,5 +1,5 @@
--- ---
- include: config.yml - include_tasks: config.yml
- name: Flush handlers - name: Flush handlers
meta: flush_handlers meta: flush_handlers

View File

@ -1,12 +1,12 @@
--- ---
- include: register.yml - include_tasks: register.yml
when: inventory_hostname in groups['freezer-api'] when: inventory_hostname in groups['freezer-api']
- include: config.yml - include_tasks: config.yml
when: inventory_hostname in groups['freezer-api'] or when: inventory_hostname in groups['freezer-api'] or
inventory_hostname in groups['freezer-scheduler'] inventory_hostname in groups['freezer-scheduler']
- include: bootstrap_service.yml - include_tasks: bootstrap_service.yml
when: inventory_hostname in groups['freezer-api'] when: inventory_hostname in groups['freezer-api']
- name: Flush handlers - name: Flush handlers

View File

@ -1,2 +1,2 @@
--- ---
- include: "{{ kolla_action }}.yml" - include_tasks: "{{ kolla_action }}.yml"

View File

@ -1,2 +1,2 @@
--- ---
- include: deploy.yml - include_tasks: deploy.yml

View File

@ -1,7 +1,7 @@
--- ---
- include: config.yml - include_tasks: config.yml
- include: bootstrap_service.yml - include_tasks: bootstrap_service.yml
- name: Flush handlers - name: Flush handlers
meta: flush_handlers meta: flush_handlers

View File

@ -32,5 +32,5 @@
when: when:
- not use_preconfigured_databases | bool - not use_preconfigured_databases | bool
- include: bootstrap_service.yml - include_tasks: bootstrap_service.yml
when: database.changed or use_preconfigured_databases | bool when: database.changed or use_preconfigured_databases | bool

View File

@ -16,7 +16,7 @@
mode: "0660" mode: "0660"
when: inventory_hostname in groups['glance-api'] when: inventory_hostname in groups['glance-api']
- include: ../../ceph_pools.yml - include_tasks: ../../ceph_pools.yml
vars: vars:
pool_name: "{{ glance_pool_name }}" pool_name: "{{ glance_pool_name }}"
pool_type: "{{ glance_pool_type }}" pool_type: "{{ glance_pool_type }}"

View File

@ -1,10 +1,10 @@
--- ---
- include: ceph.yml - include_tasks: ceph.yml
when: when:
- enable_ceph | bool - enable_ceph | bool
- glance_backend_ceph | bool - glance_backend_ceph | bool
- include: external_ceph.yml - include_tasks: external_ceph.yml
when: when:
- enable_ceph | bool == False - enable_ceph | bool == False
- glance_backend_ceph | bool - glance_backend_ceph | bool

View File

@ -1,21 +1,21 @@
--- ---
- include: register.yml - include_tasks: register.yml
when: inventory_hostname in groups['glance-api'] when: inventory_hostname in groups['glance-api']
- include: config.yml - include_tasks: config.yml
- include: clone.yml - include_tasks: clone.yml
when: when:
- glance_dev_mode | bool - glance_dev_mode | bool
- inventory_hostname in groups['glance-api'] or - inventory_hostname in groups['glance-api'] or
inventory_hostname in groups['glance-registry'] inventory_hostname in groups['glance-registry']
- include: bootstrap.yml - include_tasks: bootstrap.yml
when: inventory_hostname in groups['glance-api'] when: inventory_hostname in groups['glance-api']
- name: Flush handlers - name: Flush handlers
meta: flush_handlers meta: flush_handlers
- include: check.yml - include_tasks: check.yml
when: inventory_hostname in groups['glance-api'] or when: inventory_hostname in groups['glance-api'] or
inventory_hostname in groups['glance-registry'] inventory_hostname in groups['glance-registry']

View File

@ -1,7 +1,7 @@
--- ---
- include: config.yml - include_tasks: config.yml
- include: bootstrap_service.yml - include_tasks: bootstrap_service.yml
- name: Flush handlers - name: Flush handlers
meta: flush_handlers meta: flush_handlers

View File

@ -1,2 +1,2 @@
--- ---
- include: "{{ kolla_action }}.yml" - include_tasks: "{{ kolla_action }}.yml"

View File

@ -1,2 +1,2 @@
--- ---
- include: deploy.yml - include_tasks: deploy.yml

View File

@ -3,13 +3,13 @@
glance_upgrading: True glance_upgrading: True
# Upgrade first node (NEW NODE in the Glance documentation) # Upgrade first node (NEW NODE in the Glance documentation)
- include: pull.yml - include_tasks: pull.yml
when: inventory_hostname == groups["glance-api"][0] when: inventory_hostname == groups["glance-api"][0]
- include: config.yml - include_tasks: config.yml
when: inventory_hostname == groups["glance-api"][0] when: inventory_hostname == groups["glance-api"][0]
- include: stop_service.yml - include_tasks: stop_service.yml
when: inventory_hostname == groups["glance-api"][0] when: inventory_hostname == groups["glance-api"][0]
- name: Enable log_bin_trust_function_creators function - name: Enable log_bin_trust_function_creators function
@ -74,10 +74,10 @@
- Restart glance-api container - Restart glance-api container
# Upgrade remaining node # Upgrade remaining node
- include: pull.yml - include_tasks: pull.yml
when: inventory_hostname != groups["glance-api"][0] when: inventory_hostname != groups["glance-api"][0]
- include: config.yml - include_tasks: config.yml
when: inventory_hostname != groups["glance-api"][0] when: inventory_hostname != groups["glance-api"][0]
- name: Flush handlers - name: Flush handlers

View File

@ -1,6 +1,6 @@
--- ---
- include: rolling_upgrade.yml - include_tasks: rolling_upgrade.yml
when: glance_enable_rolling_upgrade | bool when: glance_enable_rolling_upgrade | bool
- include: legacy_upgrade.yml - include_tasks: legacy_upgrade.yml
when: not glance_enable_rolling_upgrade | bool when: not glance_enable_rolling_upgrade | bool

View File

@ -32,5 +32,5 @@
when: when:
- not use_preconfigured_databases | bool - not use_preconfigured_databases | bool
- include: bootstrap_service.yml - include_tasks: bootstrap_service.yml
when: database.changed or use_preconfigured_databases | bool when: database.changed or use_preconfigured_databases | bool

View File

@ -22,7 +22,7 @@
- "gnocchi-metricd" - "gnocchi-metricd"
- "gnocchi-statsd" - "gnocchi-statsd"
- include: ../../ceph_pools.yml - include_tasks: ../../ceph_pools.yml
vars: vars:
pool_name: "{{ gnocchi_pool_name }}" pool_name: "{{ gnocchi_pool_name }}"
pool_type: "{{ gnocchi_pool_type }}" pool_type: "{{ gnocchi_pool_type }}"

View File

@ -1,23 +1,23 @@
--- ---
- include: ceph.yml - include_tasks: ceph.yml
when: when:
- enable_ceph | bool - enable_ceph | bool
- gnocchi_backend_storage == 'ceph' - gnocchi_backend_storage == 'ceph'
- include: external_ceph.yml - include_tasks: external_ceph.yml
when: when:
- enable_ceph | bool == False - enable_ceph | bool == False
- gnocchi_backend_storage == 'ceph' - gnocchi_backend_storage == 'ceph'
- include: register.yml - include_tasks: register.yml
when: inventory_hostname in groups['gnocchi-api'] when: inventory_hostname in groups['gnocchi-api']
- include: config.yml - include_tasks: config.yml
when: inventory_hostname in groups['gnocchi-statsd'] or when: inventory_hostname in groups['gnocchi-statsd'] or
inventory_hostname in groups['gnocchi-api'] or inventory_hostname in groups['gnocchi-api'] or
inventory_hostname in groups['gnocchi-metricd'] inventory_hostname in groups['gnocchi-metricd']
- include: bootstrap.yml - include_tasks: bootstrap.yml
when: inventory_hostname in groups['gnocchi-api'] when: inventory_hostname in groups['gnocchi-api']
- name: Flush handlers - name: Flush handlers

View File

@ -1,2 +1,2 @@
--- ---
- include: "{{ kolla_action }}.yml" - include_tasks: "{{ kolla_action }}.yml"

View File

@ -1,2 +1,2 @@
--- ---
- include: deploy.yml - include_tasks: deploy.yml

View File

@ -1,7 +1,7 @@
--- ---
- include: config.yml - include_tasks: config.yml
- include: bootstrap_service.yml - include_tasks: bootstrap_service.yml
- name: Flush handlers - name: Flush handlers
meta: flush_handlers meta: flush_handlers

View File

@ -1,9 +1,9 @@
--- ---
- include: config.yml - include_tasks: config.yml
- include: bootstrap.yml - include_tasks: bootstrap.yml
- name: Flush handlers - name: Flush handlers
meta: flush_handlers meta: flush_handlers
- include: post_config.yml - include_tasks: post_config.yml

View File

@ -1,2 +1,2 @@
--- ---
- include: "{{ kolla_action }}.yml" - include_tasks: "{{ kolla_action }}.yml"

View File

@ -1,2 +1,2 @@
--- ---
- include: deploy.yml - include_tasks: deploy.yml

View File

@ -1,5 +1,5 @@
--- ---
- include: config.yml - include_tasks: config.yml
- name: Flush handlers - name: Flush handlers
meta: flush_handlers meta: flush_handlers

Some files were not shown because too many files have changed in this diff Show More