Adds image creation and publishing

This commit is contained in:
Emil
2024-03-07 02:36:34 +01:00
parent 2b1923e40a
commit da93d7f4b4
13 changed files with 156 additions and 9 deletions

View File

@@ -3,8 +3,12 @@
hosts: localhost
gather_facts: false
tasks:
- name: Launch container based on the newly published image
ansible.builtin.command: |
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 }}
ansible.builtin.command: incus ls "{{ item.name }}-test-cntr"
register: state
with_items: '{{ molecule_yml.platforms }}'
- name: verify launched container is running