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:
Kevin Carter 2018-06-27 18:34:33 -05:00
parent c38b49df3d
commit 75de4f7ca3
No known key found for this signature in database
GPG Key ID: 9443251A787B9FB3
2 changed files with 6 additions and 4 deletions

View File

@ -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

View File

@ -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: