Add systemd tags to include role

There are times when a deployer will need to reconfigure parts of
an environment and having a general purpose tag to run said operation
will be important especicially should the deployer be needing to
reconfigure systemd unit files in a downtime event. This change adds
a general purpose systemd tag where include_role and systemd is found
which will assit operators with day2 operational tasks.

Change-Id: I8a007c62e110c96fce4fc687258af0b4ef7b3ab1
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
Kevin Carter 2018-06-27 19:00:13 -05:00
parent 9407b555b7
commit 286e4c80c2
No known key found for this signature in database
GPG Key ID: 9443251A787B9FB3
2 changed files with 7 additions and 0 deletions

View File

@ -103,6 +103,7 @@
state: started
tags:
- network-config
- systemd-networkd
- name: Run the systemd-networkd role
include_role:
@ -155,6 +156,7 @@
{{ _networks | sort(attribute='interface') }}
tags:
- network-config
- systemd-networkd
- name: Create dnsmasq config(s)
template:
@ -214,3 +216,4 @@
loop_var: dnsmasq_var
tags:
- network-config
- systemd-service

View File

@ -75,6 +75,9 @@
- "/lib/systemd/systemd-machined"
enabled: yes
state: started
tags:
- machines-config
- systemd-service
- name: Run the systemd mount role
include_role:
@ -89,6 +92,7 @@
state: 'started'
enabled: true
tags:
- systemd-mount
- machines-config
when:
- machinectl_mount.rc != 0