Fix usage of "|" for tests

With the more recent versions of ansible, we should now use
"is" instead of the "|" sign for the tests.

This should fix it.

Change-Id: Ie89ff6580bec52b598776c479a909c9a99c005b0
This commit is contained in:
Jean-Philippe Evrard 2018-07-12 16:44:21 +02:00
parent 1eed8fd786
commit b2020d5c10
5 changed files with 7 additions and 7 deletions

View File

@ -44,7 +44,7 @@
--logpriority {{ (debug | bool) | ternary('DEBUG', 'INFO') }}
delegate_to: "{{ physical_host }}"
register: container_start
until: container_start | success
until: container_start is success
retries: 3
listen: Lxc container restart
@ -112,6 +112,6 @@
daemon_reload: yes
remote_user: root
register: _sysctl_service_started
until: _sysctl_service_started|success
until: _sysctl_service_started is success
retries: 5
delay: 5

View File

@ -94,7 +94,7 @@
args:
creates: "/var/lib/lxc/{{ inventory_hostname }}/setup.complete"
register: container_extra_commands
until: container_extra_commands | success
until: container_extra_commands is success
retries: 5
delay: 2
delegate_to: "{{ physical_host }}"

View File

@ -41,7 +41,7 @@
changed_when: false
delegate_to: "{{ physical_host }}"
register: _lxc_container_state
until: _lxc_container_state | success
until: _lxc_container_state is success
retries: 3
delay: 5
@ -57,7 +57,7 @@
--logpriority {{ (debug | bool) | ternary('DEBUG', 'INFO') }}
delegate_to: "{{ physical_host }}"
register: _lxc_container_create
until: _lxc_container_create | success
until: _lxc_container_create is success
retries: 3
delay: 5
when:

View File

@ -145,7 +145,7 @@
command: "lxc-start -d -n container3"
register: container_start
changed_when: container_start.rc == 0
until: container_start | success
until: container_start is success
retries: 3
delay: 2

View File

@ -43,7 +43,7 @@
filesystem:
fstype: btrfs
dev: /openstack/lxc-btrfs.img
when: lxc_btrfs_create | changed
when: lxc_btrfs_create is changed
- name: Create the mount points, fstab entries and mount the file systems
mount: