generated from the-liberated-edge/wikijs
i-8 Implements image creation and publishing in playbook #22
@ -5,15 +5,15 @@
|
||||
tasks:
|
||||
- name: Launch container based on the newly published image
|
||||
ansible.builtin.command: |
|
||||
incus launch {{ item.name }} "{{ item.name }}-test-cntr"
|
||||
incus launch {{ item.name }} {{ item.name }}-test-cntr
|
||||
with_items: '{{ molecule_yml.platforms }}'
|
||||
- name: find current container state
|
||||
ansible.builtin.command: incus ls "{{ item.name }}-test-cntr"
|
||||
ansible.builtin.command: incus ls '{{ item.name }}-test-cntr'
|
||||
register: state
|
||||
with_items: '{{ molecule_yml.platforms }}'
|
||||
- name: verify launched container is running
|
||||
ansible.builtin.assert:
|
||||
that: state.results[0].rc == 0 and "RUNNING" in state.results[0].stdout
|
||||
that: state.results[0].rc == 0 and 'RUNNING' in state.results[0].stdout
|
||||
- name: find container ip address
|
||||
ansible.builtin.command: incus ls -c=4 -f=compact {{ item.name }}
|
||||
register: ipv4_raw
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user