All handlers should be tagged "config"

This change adds the "*-config" tag to all handlers which is being done
so all of them can be skipped or included using the ansible tags syntax.
This is useful when running parts of the role, like when building image
based artifacts from the "*-install" tags.

Change-Id: I92d34b25c51d365e2f8b97b72a1aa08b1537ab79
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
Kevin Carter 2016-12-13 10:30:01 -06:00
parent d180506a58
commit 6a96998fff
No known key found for this signature in database
GPG Key ID: 69FEFFC5E2D9273F
1 changed files with 19 additions and 0 deletions

View File

@ -27,6 +27,8 @@
- (keystone_apache_enabled | bool) or (keystone_mod_wsgi_enabled | bool) - (keystone_apache_enabled | bool) or (keystone_mod_wsgi_enabled | bool)
notify: notify:
- Wait for keystone service port - Wait for keystone service port
tags:
- keystone-config
- name: Restart Nginx on first node - name: Restart Nginx on first node
service: service:
@ -39,6 +41,8 @@
when: when:
- inventory_hostname == groups['keystone_all'][0] - inventory_hostname == groups['keystone_all'][0]
- not keystone_apache_enabled | bool - not keystone_apache_enabled | bool
tags:
- keystone-config
- name: Restart Keystone APIs on first node - name: Restart Keystone APIs on first node
service: service:
@ -54,6 +58,9 @@
- not keystone_mod_wsgi_enabled | bool - not keystone_mod_wsgi_enabled | bool
notify: notify:
- Wait for keystone service port - Wait for keystone service port
tags:
- keystone-config
- name: Wait for keystone service port - name: Wait for keystone service port
wait_for: wait_for:
@ -63,6 +70,8 @@
register: keystone_wait_check register: keystone_wait_check
until: keystone_wait_check | success until: keystone_wait_check | success
retries: 5 retries: 5
tags:
- keystone-config
- name: Restart service on other nodes - name: Restart service on other nodes
service: service:
@ -76,6 +85,8 @@
when: when:
- inventory_hostname != groups['keystone_all'][0] - inventory_hostname != groups['keystone_all'][0]
- (keystone_apache_enabled | bool) or (keystone_mod_wsgi_enabled | bool) - (keystone_apache_enabled | bool) or (keystone_mod_wsgi_enabled | bool)
tags:
- keystone-config
- name: Restart Nginx on other nodes - name: Restart Nginx on other nodes
service: service:
@ -88,6 +99,8 @@
when: when:
- inventory_hostname != groups['keystone_all'][0] - inventory_hostname != groups['keystone_all'][0]
- not keystone_apache_enabled | bool - not keystone_apache_enabled | bool
tags:
- keystone-config
- name: Restart Keystone APIs on other nodes - name: Restart Keystone APIs on other nodes
service: service:
@ -101,6 +114,8 @@
when: when:
- inventory_hostname != groups['keystone_all'][0] - inventory_hostname != groups['keystone_all'][0]
- not keystone_mod_wsgi_enabled | bool - not keystone_mod_wsgi_enabled | bool
tags:
- keystone-config
- name: Restart Shibd - name: Restart Shibd
service: service:
@ -111,8 +126,12 @@
until: shibd_restart|success until: shibd_restart|success
retries: 5 retries: 5
delay: 2 delay: 2
tags:
- keystone-config
- name: Perform a Keystone DB sync contract - name: Perform a Keystone DB sync contract
command: "{{ keystone_bin }}/keystone-manage db_sync --contract" command: "{{ keystone_bin }}/keystone-manage db_sync --contract"
become: yes become: yes
become_user: "{{ keystone_system_user_name }}" become_user: "{{ keystone_system_user_name }}"
tags:
- keystone-config