generated from the-liberated-edge/wikijs
formatting, fixes long length yamllint errors
This commit is contained in:
parent
19f8a9b1df
commit
18f21cfa30
@ -6,7 +6,7 @@
|
||||
tasks:
|
||||
- name: find current container state
|
||||
ansible.builtin.command: lxc ls {{ item.name }}
|
||||
register: container_state
|
||||
register: state
|
||||
changed_when: false
|
||||
with_items: '{{ molecule_yml.platforms }}'
|
||||
- name: stop running containers
|
||||
@ -14,5 +14,5 @@
|
||||
cmd: |
|
||||
lxc stop {{ item.name }} && \
|
||||
lxc rm {{ item.name }}
|
||||
when: (container_state.results[0].rc == 0) and ("RUNNING" in container_state.results[0].stdout)
|
||||
when: state.results[0].rc == 0 and "RUNNING" in state.results[0].stdout
|
||||
with_items: '{{ molecule_yml.platforms }}'
|
||||
|
||||
@ -5,8 +5,8 @@
|
||||
tasks:
|
||||
- name: find current container state
|
||||
ansible.builtin.command: lxc ls {{ item.name }}
|
||||
register: container_state
|
||||
register: state
|
||||
with_items: '{{ molecule_yml.platforms }}'
|
||||
- name: verify launched container is running
|
||||
assert:
|
||||
that: (container_state.results[0].rc == 0) and ("RUNNING" in container_state.results[0].stdout)
|
||||
that: state.results[0].rc == 0 and "RUNNING" in state.results[0].stdout
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user