diff --git a/extensions/molecule/default/verify.yml b/extensions/molecule/default/verify.yml index bda6cb3..2a3a7e6 100644 --- a/extensions/molecule/default/verify.yml +++ b/extensions/molecule/default/verify.yml @@ -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