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:
parent
1eed8fd786
commit
b2020d5c10
|
@ -44,7 +44,7 @@
|
||||||
--logpriority {{ (debug | bool) | ternary('DEBUG', 'INFO') }}
|
--logpriority {{ (debug | bool) | ternary('DEBUG', 'INFO') }}
|
||||||
delegate_to: "{{ physical_host }}"
|
delegate_to: "{{ physical_host }}"
|
||||||
register: container_start
|
register: container_start
|
||||||
until: container_start | success
|
until: container_start is success
|
||||||
retries: 3
|
retries: 3
|
||||||
listen: Lxc container restart
|
listen: Lxc container restart
|
||||||
|
|
||||||
|
@ -112,6 +112,6 @@
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
remote_user: root
|
remote_user: root
|
||||||
register: _sysctl_service_started
|
register: _sysctl_service_started
|
||||||
until: _sysctl_service_started|success
|
until: _sysctl_service_started is success
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 5
|
delay: 5
|
||||||
|
|
|
@ -94,7 +94,7 @@
|
||||||
args:
|
args:
|
||||||
creates: "/var/lib/lxc/{{ inventory_hostname }}/setup.complete"
|
creates: "/var/lib/lxc/{{ inventory_hostname }}/setup.complete"
|
||||||
register: container_extra_commands
|
register: container_extra_commands
|
||||||
until: container_extra_commands | success
|
until: container_extra_commands is success
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 2
|
delay: 2
|
||||||
delegate_to: "{{ physical_host }}"
|
delegate_to: "{{ physical_host }}"
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
changed_when: false
|
changed_when: false
|
||||||
delegate_to: "{{ physical_host }}"
|
delegate_to: "{{ physical_host }}"
|
||||||
register: _lxc_container_state
|
register: _lxc_container_state
|
||||||
until: _lxc_container_state | success
|
until: _lxc_container_state is success
|
||||||
retries: 3
|
retries: 3
|
||||||
delay: 5
|
delay: 5
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@
|
||||||
--logpriority {{ (debug | bool) | ternary('DEBUG', 'INFO') }}
|
--logpriority {{ (debug | bool) | ternary('DEBUG', 'INFO') }}
|
||||||
delegate_to: "{{ physical_host }}"
|
delegate_to: "{{ physical_host }}"
|
||||||
register: _lxc_container_create
|
register: _lxc_container_create
|
||||||
until: _lxc_container_create | success
|
until: _lxc_container_create is success
|
||||||
retries: 3
|
retries: 3
|
||||||
delay: 5
|
delay: 5
|
||||||
when:
|
when:
|
||||||
|
|
|
@ -145,7 +145,7 @@
|
||||||
command: "lxc-start -d -n container3"
|
command: "lxc-start -d -n container3"
|
||||||
register: container_start
|
register: container_start
|
||||||
changed_when: container_start.rc == 0
|
changed_when: container_start.rc == 0
|
||||||
until: container_start | success
|
until: container_start is success
|
||||||
retries: 3
|
retries: 3
|
||||||
delay: 2
|
delay: 2
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
filesystem:
|
filesystem:
|
||||||
fstype: btrfs
|
fstype: btrfs
|
||||||
dev: /openstack/lxc-btrfs.img
|
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
|
- name: Create the mount points, fstab entries and mount the file systems
|
||||||
mount:
|
mount:
|
||||||
|
|
Loading…
Reference in New Issue