i-8 Implements image creation and publishing in playbook #22

Merged
emil merged 8 commits from i-8-add-image-publishing-to-playbook into main 2024-03-07 01:41:39 +00:00
Showing only changes of commit 8202c42cf7 - Show all commits

View File

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