Give plays in the playbooks a name
Change-Id: I44c2668a8ebb6dd3201a6eb4e47284871380e6d7
This commit is contained in:
parent
7b598e8ada
commit
4c39f2e9fc
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- hosts: localhost
|
- name: Apply role bifrost
|
||||||
|
hosts: localhost
|
||||||
roles:
|
roles:
|
||||||
- { role: bifrost,
|
- { role: bifrost,
|
||||||
tags: bifrost}
|
tags: bifrost}
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
- hosts: all
|
- name: Apply role certificates
|
||||||
|
hosts: all
|
||||||
roles:
|
roles:
|
||||||
- certificates
|
- certificates
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
- hosts: all
|
- name: Apply role destroy
|
||||||
|
hosts: all
|
||||||
roles:
|
roles:
|
||||||
- destroy
|
- destroy
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- hosts: baremetal
|
- name: Apply role baremetal
|
||||||
|
hosts: baremetal
|
||||||
gather_facts: no
|
gather_facts: no
|
||||||
roles:
|
roles:
|
||||||
- { role: baremetal,
|
- { role: baremetal,
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- hosts: mariadb
|
- name: Recover mariadb
|
||||||
|
hosts: mariadb
|
||||||
roles:
|
roles:
|
||||||
- { role: mariadb,
|
- { role: mariadb,
|
||||||
tags: mariadb,
|
tags: mariadb,
|
||||||
|
135
ansible/site.yml
135
ansible/site.yml
@ -31,13 +31,15 @@
|
|||||||
when:
|
when:
|
||||||
- (play_hosts | length) != (groups['all'] | length)
|
- (play_hosts | length) != (groups['all'] | length)
|
||||||
|
|
||||||
- hosts:
|
- name: Apply role prechecks
|
||||||
|
hosts:
|
||||||
- all
|
- all
|
||||||
roles:
|
roles:
|
||||||
- role: prechecks
|
- role: prechecks
|
||||||
when: action == "precheck"
|
when: action == "precheck"
|
||||||
|
|
||||||
- hosts:
|
- name: Apply role ceph
|
||||||
|
hosts:
|
||||||
- ceph-mon
|
- ceph-mon
|
||||||
- ceph-osd
|
- ceph-osd
|
||||||
- ceph-rgw
|
- ceph-rgw
|
||||||
@ -47,28 +49,32 @@
|
|||||||
tags: ceph,
|
tags: ceph,
|
||||||
when: enable_ceph | bool }
|
when: enable_ceph | bool }
|
||||||
|
|
||||||
- hosts: collectd
|
- name: Apply role collectd
|
||||||
|
hosts: collectd
|
||||||
serial: '{{ serial|default("0") }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: collectd,
|
- { role: collectd,
|
||||||
tags: collectd,
|
tags: collectd,
|
||||||
when: enable_collectd | bool }
|
when: enable_collectd | bool }
|
||||||
|
|
||||||
- hosts: elasticsearch
|
- name: Apply role elasticsearch
|
||||||
|
hosts: elasticsearch
|
||||||
serial: '{{ serial|default("0") }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: elasticsearch,
|
- { role: elasticsearch,
|
||||||
tags: elasticsearch,
|
tags: elasticsearch,
|
||||||
when: enable_elasticsearch | bool }
|
when: enable_elasticsearch | bool }
|
||||||
|
|
||||||
- hosts: influxdb
|
- name: Apply role influxdb
|
||||||
|
hosts: influxdb
|
||||||
serial: '{{ serial|default("0") }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: influxdb,
|
- { role: influxdb,
|
||||||
tags: influxdb,
|
tags: influxdb,
|
||||||
when: enable_influxdb | bool }
|
when: enable_influxdb | bool }
|
||||||
|
|
||||||
- hosts:
|
- name: Apply role telegraf
|
||||||
|
hosts:
|
||||||
- telegraf
|
- telegraf
|
||||||
serial: '{{ serial|default("0") }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
@ -76,35 +82,40 @@
|
|||||||
tags: telegraf,
|
tags: telegraf,
|
||||||
when: enable_telegraf | bool }
|
when: enable_telegraf | bool }
|
||||||
|
|
||||||
- hosts:
|
- name: Apply role haproxy
|
||||||
|
hosts:
|
||||||
- haproxy
|
- haproxy
|
||||||
roles:
|
roles:
|
||||||
- { role: haproxy,
|
- { role: haproxy,
|
||||||
tags: haproxy,
|
tags: haproxy,
|
||||||
when: enable_haproxy | bool }
|
when: enable_haproxy | bool }
|
||||||
|
|
||||||
- hosts: kibana
|
- name: Apply role kibana
|
||||||
|
hosts: kibana
|
||||||
serial: '{{ serial|default("0") }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: kibana,
|
- { role: kibana,
|
||||||
tags: kibana,
|
tags: kibana,
|
||||||
when: enable_kibana | bool }
|
when: enable_kibana | bool }
|
||||||
|
|
||||||
- hosts: memcached
|
- name: Apply role memcached
|
||||||
|
hosts: memcached
|
||||||
serial: '{{ serial|default("0") }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: memcached,
|
- { role: memcached,
|
||||||
tags: [memcache, memcached],
|
tags: [memcache, memcached],
|
||||||
when: enable_memcached | bool }
|
when: enable_memcached | bool }
|
||||||
|
|
||||||
- hosts: mariadb
|
- name: Apply role mariadb
|
||||||
|
hosts: mariadb
|
||||||
serial: '{{ serial|default("0") }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: mariadb,
|
- { role: mariadb,
|
||||||
tags: mariadb,
|
tags: mariadb,
|
||||||
when: enable_mariadb | bool }
|
when: enable_mariadb | bool }
|
||||||
|
|
||||||
- hosts:
|
- name: Apply role iscsi
|
||||||
|
hosts:
|
||||||
- iscsid
|
- iscsid
|
||||||
- tgtd
|
- tgtd
|
||||||
serial: '{{ serial|default("0") }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
@ -113,7 +124,8 @@
|
|||||||
tags: iscsi,
|
tags: iscsi,
|
||||||
when: enable_iscsid | bool }
|
when: enable_iscsid | bool }
|
||||||
|
|
||||||
- hosts:
|
- name: Apply role multipathd
|
||||||
|
hosts:
|
||||||
- multipathd
|
- multipathd
|
||||||
serial: '{{ serial|default("0") }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
@ -121,20 +133,23 @@
|
|||||||
tags: multipathd,
|
tags: multipathd,
|
||||||
when: enable_multipathd | bool }
|
when: enable_multipathd | bool }
|
||||||
|
|
||||||
- hosts: rabbitmq
|
- name: Apply role rabbitmq
|
||||||
|
hosts: rabbitmq
|
||||||
roles:
|
roles:
|
||||||
- { role: rabbitmq,
|
- { role: rabbitmq,
|
||||||
tags: rabbitmq,
|
tags: rabbitmq,
|
||||||
when: enable_rabbitmq | bool }
|
when: enable_rabbitmq | bool }
|
||||||
|
|
||||||
- hosts: etcd
|
- name: Apply role etcd
|
||||||
|
hosts: etcd
|
||||||
serial: '{{ serial|default("0") }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: etcd,
|
- { role: etcd,
|
||||||
tags: etcd,
|
tags: etcd,
|
||||||
when: enable_etcd | bool }
|
when: enable_etcd | bool }
|
||||||
|
|
||||||
- hosts:
|
- name: Apply role keystone
|
||||||
|
hosts:
|
||||||
- keystone
|
- keystone
|
||||||
serial: '{{ serial|default("0") }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
@ -142,7 +157,8 @@
|
|||||||
tags: keystone,
|
tags: keystone,
|
||||||
when: enable_keystone | bool }
|
when: enable_keystone | bool }
|
||||||
|
|
||||||
- hosts:
|
- name: Apply role swift
|
||||||
|
hosts:
|
||||||
- swift-account-server
|
- swift-account-server
|
||||||
- swift-container-server
|
- swift-container-server
|
||||||
- swift-object-server
|
- swift-object-server
|
||||||
@ -153,7 +169,8 @@
|
|||||||
tags: swift,
|
tags: swift,
|
||||||
when: enable_swift | bool }
|
when: enable_swift | bool }
|
||||||
|
|
||||||
- hosts:
|
- name: Apply role glance
|
||||||
|
hosts:
|
||||||
- ceph-mon
|
- ceph-mon
|
||||||
- glance-api
|
- glance-api
|
||||||
- glance-registry
|
- glance-registry
|
||||||
@ -163,7 +180,8 @@
|
|||||||
tags: glance,
|
tags: glance,
|
||||||
when: enable_glance | bool }
|
when: enable_glance | bool }
|
||||||
|
|
||||||
- hosts:
|
- name: Apply role ironic
|
||||||
|
hosts:
|
||||||
- ironic-api
|
- ironic-api
|
||||||
- ironic-conductor
|
- ironic-conductor
|
||||||
- ironic-inspector
|
- ironic-inspector
|
||||||
@ -174,7 +192,8 @@
|
|||||||
tags: ironic,
|
tags: ironic,
|
||||||
when: enable_ironic | bool }
|
when: enable_ironic | bool }
|
||||||
|
|
||||||
- hosts:
|
- name: Apply role nova
|
||||||
|
hosts:
|
||||||
- ceph-mon
|
- ceph-mon
|
||||||
- compute
|
- compute
|
||||||
- nova-api
|
- nova-api
|
||||||
@ -188,7 +207,8 @@
|
|||||||
tags: nova,
|
tags: nova,
|
||||||
when: enable_nova | bool }
|
when: enable_nova | bool }
|
||||||
|
|
||||||
- hosts:
|
- name: Apply role kuryr
|
||||||
|
hosts:
|
||||||
- compute
|
- compute
|
||||||
roles:
|
roles:
|
||||||
- { role: kuryr,
|
- { role: kuryr,
|
||||||
@ -197,7 +217,8 @@
|
|||||||
|
|
||||||
# (gmmaha): Please do not change the order listed here. The current order is a
|
# (gmmaha): Please do not change the order listed here. The current order is a
|
||||||
# workaround to fix the bug https://bugs.launchpad.net/kolla/+bug/1546789
|
# workaround to fix the bug https://bugs.launchpad.net/kolla/+bug/1546789
|
||||||
- hosts:
|
- name: Apply role neutron
|
||||||
|
hosts:
|
||||||
- neutron-server
|
- neutron-server
|
||||||
- neutron-dhcp-agent
|
- neutron-dhcp-agent
|
||||||
- neutron-l3-agent
|
- neutron-l3-agent
|
||||||
@ -212,7 +233,8 @@
|
|||||||
tags: neutron,
|
tags: neutron,
|
||||||
when: enable_neutron | bool }
|
when: enable_neutron | bool }
|
||||||
|
|
||||||
- hosts:
|
- name: Apply role cinder
|
||||||
|
hosts:
|
||||||
- ceph-mon
|
- ceph-mon
|
||||||
- cinder-api
|
- cinder-api
|
||||||
- cinder-backup
|
- cinder-backup
|
||||||
@ -224,7 +246,8 @@
|
|||||||
tags: cinder,
|
tags: cinder,
|
||||||
when: enable_cinder | bool }
|
when: enable_cinder | bool }
|
||||||
|
|
||||||
- hosts:
|
- name: Apply role heat
|
||||||
|
hosts:
|
||||||
- heat-api
|
- heat-api
|
||||||
- heat-api-cfn
|
- heat-api-cfn
|
||||||
- heat-engine
|
- heat-engine
|
||||||
@ -234,7 +257,8 @@
|
|||||||
tags: heat,
|
tags: heat,
|
||||||
when: enable_heat | bool }
|
when: enable_heat | bool }
|
||||||
|
|
||||||
- hosts:
|
- name: Apply role horizon
|
||||||
|
hosts:
|
||||||
- horizon
|
- horizon
|
||||||
serial: '{{ serial|default("0") }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
@ -242,7 +266,8 @@
|
|||||||
tags: horizon,
|
tags: horizon,
|
||||||
when: enable_horizon | bool }
|
when: enable_horizon | bool }
|
||||||
|
|
||||||
- hosts:
|
- name: Apply role murano
|
||||||
|
hosts:
|
||||||
- murano-api
|
- murano-api
|
||||||
- murano-engine
|
- murano-engine
|
||||||
serial: '{{ serial|default("0") }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
@ -251,7 +276,8 @@
|
|||||||
tags: murano,
|
tags: murano,
|
||||||
when: enable_murano | bool }
|
when: enable_murano | bool }
|
||||||
|
|
||||||
- hosts:
|
- name: Apply role solum
|
||||||
|
hosts:
|
||||||
- solum-api
|
- solum-api
|
||||||
- solum-worker
|
- solum-worker
|
||||||
- solum-deployer
|
- solum-deployer
|
||||||
@ -262,7 +288,8 @@
|
|||||||
tags: solum,
|
tags: solum,
|
||||||
when: enable_solum | bool }
|
when: enable_solum | bool }
|
||||||
|
|
||||||
- hosts:
|
- name: Apply role magnum
|
||||||
|
hosts:
|
||||||
- magnum-api
|
- magnum-api
|
||||||
- magnum-conductor
|
- magnum-conductor
|
||||||
serial: '{{ serial|default("0") }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
@ -271,7 +298,8 @@
|
|||||||
tags: magnum,
|
tags: magnum,
|
||||||
when: enable_magnum | bool }
|
when: enable_magnum | bool }
|
||||||
|
|
||||||
- hosts:
|
- name: Apply role mistral
|
||||||
|
hosts:
|
||||||
- mistral-api
|
- mistral-api
|
||||||
- mistral-engine
|
- mistral-engine
|
||||||
- mistral-executor
|
- mistral-executor
|
||||||
@ -281,7 +309,8 @@
|
|||||||
tags: mistral,
|
tags: mistral,
|
||||||
when: enable_mistral | bool }
|
when: enable_mistral | bool }
|
||||||
|
|
||||||
- hosts:
|
- name: Apply role sahara
|
||||||
|
hosts:
|
||||||
- sahara-api
|
- sahara-api
|
||||||
- sahara-engine
|
- sahara-engine
|
||||||
serial: '{{ serial|default("0") }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
@ -290,7 +319,8 @@
|
|||||||
tags: sahara,
|
tags: sahara,
|
||||||
when: enable_sahara | bool }
|
when: enable_sahara | bool }
|
||||||
|
|
||||||
- hosts:
|
- name: Apply role mongodb
|
||||||
|
hosts:
|
||||||
- mongodb
|
- mongodb
|
||||||
serial: '{{ serial|default("0") }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
@ -298,7 +328,8 @@
|
|||||||
tags: mongodb,
|
tags: mongodb,
|
||||||
when: enable_mongodb | bool }
|
when: enable_mongodb | bool }
|
||||||
|
|
||||||
- hosts:
|
- name: Apply role manila
|
||||||
|
hosts:
|
||||||
- manila-api
|
- manila-api
|
||||||
- manila-data
|
- manila-data
|
||||||
- manila-share
|
- manila-share
|
||||||
@ -309,7 +340,8 @@
|
|||||||
tags: manila,
|
tags: manila,
|
||||||
when: enable_manila | bool }
|
when: enable_manila | bool }
|
||||||
|
|
||||||
- hosts:
|
- name: Apply role gnocchi
|
||||||
|
hosts:
|
||||||
- gnocchi-api
|
- gnocchi-api
|
||||||
- gnocchi-metricd
|
- gnocchi-metricd
|
||||||
- gnocchi-statsd
|
- gnocchi-statsd
|
||||||
@ -319,7 +351,8 @@
|
|||||||
tags: gnocchi,
|
tags: gnocchi,
|
||||||
when: enable_gnocchi | bool }
|
when: enable_gnocchi | bool }
|
||||||
|
|
||||||
- hosts:
|
- name: Apply role ceilometer
|
||||||
|
hosts:
|
||||||
- ceilometer
|
- ceilometer
|
||||||
- compute
|
- compute
|
||||||
serial: '{{ serial|default("0") }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
@ -328,7 +361,8 @@
|
|||||||
tags: ceilometer,
|
tags: ceilometer,
|
||||||
when: enable_ceilometer | bool }
|
when: enable_ceilometer | bool }
|
||||||
|
|
||||||
- hosts:
|
- name: Apply role aodh
|
||||||
|
hosts:
|
||||||
- aodh
|
- aodh
|
||||||
serial: '{{ serial|default("0") }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
@ -336,7 +370,8 @@
|
|||||||
tags: aodh,
|
tags: aodh,
|
||||||
when: enable_aodh | bool }
|
when: enable_aodh | bool }
|
||||||
|
|
||||||
- hosts:
|
- name: Apply role barbican
|
||||||
|
hosts:
|
||||||
- barbican-api
|
- barbican-api
|
||||||
- barbican-keystone-listener
|
- barbican-keystone-listener
|
||||||
- barbican-worker
|
- barbican-worker
|
||||||
@ -346,7 +381,8 @@
|
|||||||
tags: barbican,
|
tags: barbican,
|
||||||
when: enable_barbican | bool }
|
when: enable_barbican | bool }
|
||||||
|
|
||||||
- hosts:
|
- name: Apply role congress
|
||||||
|
hosts:
|
||||||
- congress-api
|
- congress-api
|
||||||
- congress-policy-engine
|
- congress-policy-engine
|
||||||
- congress-datasource
|
- congress-datasource
|
||||||
@ -356,7 +392,8 @@
|
|||||||
tags: congress,
|
tags: congress,
|
||||||
when: enable_congress | bool }
|
when: enable_congress | bool }
|
||||||
|
|
||||||
- hosts:
|
- name: Apply role tempest
|
||||||
|
hosts:
|
||||||
- tempest
|
- tempest
|
||||||
serial: '{{ serial|default("0") }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
@ -364,14 +401,16 @@
|
|||||||
tags: tempest,
|
tags: tempest,
|
||||||
when: enable_tempest | bool }
|
when: enable_tempest | bool }
|
||||||
|
|
||||||
- hosts: rally
|
- name: Apply role rally
|
||||||
|
hosts: rally
|
||||||
serial: '{{ serial|default("0") }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: rally,
|
- { role: rally,
|
||||||
tags: rally,
|
tags: rally,
|
||||||
when: enable_rally | bool }
|
when: enable_rally | bool }
|
||||||
|
|
||||||
- hosts:
|
- name: Apply role vmtp
|
||||||
|
hosts:
|
||||||
- vmtp
|
- vmtp
|
||||||
serial: '{{ serial|default("0") }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
@ -379,7 +418,8 @@
|
|||||||
tags: vmtp,
|
tags: vmtp,
|
||||||
when: enable_vmtp | bool }
|
when: enable_vmtp | bool }
|
||||||
|
|
||||||
- hosts:
|
- name: Apply role trove
|
||||||
|
hosts:
|
||||||
- trove-api
|
- trove-api
|
||||||
- trove-conductor
|
- trove-conductor
|
||||||
- trove-taskmanager
|
- trove-taskmanager
|
||||||
@ -389,7 +429,8 @@
|
|||||||
tags: trove,
|
tags: trove,
|
||||||
when: enable_trove | bool }
|
when: enable_trove | bool }
|
||||||
|
|
||||||
- hosts:
|
- name: Apply role watcher
|
||||||
|
hosts:
|
||||||
- watcher-api
|
- watcher-api
|
||||||
- watcher-engine
|
- watcher-engine
|
||||||
- watcher-applier
|
- watcher-applier
|
||||||
@ -399,7 +440,8 @@
|
|||||||
tags: watcher,
|
tags: watcher,
|
||||||
when: enable_watcher | bool }
|
when: enable_watcher | bool }
|
||||||
|
|
||||||
- hosts:
|
- name: Apply role grafana
|
||||||
|
hosts:
|
||||||
- grafana
|
- grafana
|
||||||
serial: '{{ serial|default("0") }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
@ -407,7 +449,8 @@
|
|||||||
tags: grafana,
|
tags: grafana,
|
||||||
when: enable_grafana | bool }
|
when: enable_grafana | bool }
|
||||||
|
|
||||||
- hosts:
|
- name: Apply role cloudkitty
|
||||||
|
hosts:
|
||||||
- cloudkitty-api
|
- cloudkitty-api
|
||||||
- cloudkitty-processor
|
- cloudkitty-processor
|
||||||
serial: '{{ serial|default("0") }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
@ -416,7 +459,8 @@
|
|||||||
tags: cloudkitty,
|
tags: cloudkitty,
|
||||||
when: enable_cloudkitty | bool }
|
when: enable_cloudkitty | bool }
|
||||||
|
|
||||||
- hosts:
|
- name: Apply role senlin
|
||||||
|
hosts:
|
||||||
- senlin-api
|
- senlin-api
|
||||||
- senlin-engine
|
- senlin-engine
|
||||||
serial: '{{ serial|default("0") }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
@ -425,7 +469,8 @@
|
|||||||
tags: senlin,
|
tags: senlin,
|
||||||
when: enable_senlin | bool }
|
when: enable_senlin | bool }
|
||||||
|
|
||||||
- hosts:
|
- name: Apply role searchlight
|
||||||
|
hosts:
|
||||||
- searchlight-api
|
- searchlight-api
|
||||||
- searchlight-listener
|
- searchlight-listener
|
||||||
serial: '{{ serial|default("0") }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
|
Loading…
Reference in New Issue
Block a user