Update syntax to correct deprecation warnings
Ansible is now warning users to stop using a pipe when testing a variable. This updates the syntaxt to be the latest recommended syntax. This also corrects two tags that were misplaced. Change-Id: I6aa855c5fdc57812b1a8ec5dd185941f82847103 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
parent
c38b49df3d
commit
75de4f7ca3
@ -23,4 +23,6 @@
|
||||
- 'item.item.restart_changed | default(systemd_service_restart_changed) | bool'
|
||||
- 'item.item.state is not defined'
|
||||
- 'item.item.enabled | default(systemd_service_enabled) | bool'
|
||||
- 'item | changed'
|
||||
- 'item is changed'
|
||||
tags:
|
||||
- systemd-service
|
||||
|
@ -22,7 +22,7 @@
|
||||
mode: "02755"
|
||||
with_items: "{{ systemd_services }}"
|
||||
tags:
|
||||
- systemd-init
|
||||
- systemd-service
|
||||
|
||||
- name: Create TEMP service lock dir
|
||||
file:
|
||||
@ -33,7 +33,7 @@
|
||||
mode: "02755"
|
||||
with_items: "{{ systemd_services }}"
|
||||
tags:
|
||||
- systemd-init
|
||||
- systemd-service
|
||||
|
||||
- name: Create TEMP defined lock dir
|
||||
file:
|
||||
@ -153,7 +153,7 @@
|
||||
systemd:
|
||||
daemon_reload: yes
|
||||
when:
|
||||
- (systemd_services_result | changed) or (systemd_timer_result | changed)
|
||||
- (systemd_services_result is changed) or (systemd_timer_result is changed)
|
||||
|
||||
- name: Load service
|
||||
systemd:
|
||||
|
Loading…
Reference in New Issue
Block a user