Brings consistency with quotes

This commit is contained in:
Emil 2024-03-07 02:39:40 +01:00
parent da93d7f4b4
commit 8202c42cf7

View File

@ -5,15 +5,15 @@
tasks: tasks:
- name: Launch container based on the newly published image - name: Launch container based on the newly published image
ansible.builtin.command: | ansible.builtin.command: |
incus launch {{ item.name }} "{{ item.name }}-test-cntr" incus launch {{ item.name }} {{ item.name }}-test-cntr
with_items: '{{ molecule_yml.platforms }}' with_items: '{{ molecule_yml.platforms }}'
- name: find current container state - 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 register: state
with_items: '{{ molecule_yml.platforms }}' with_items: '{{ molecule_yml.platforms }}'
- name: verify launched container is running - name: verify launched container is running
ansible.builtin.assert: 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 - name: find container ip address
ansible.builtin.command: incus ls -c=4 -f=compact {{ item.name }} ansible.builtin.command: incus ls -c=4 -f=compact {{ item.name }}
register: ipv4_raw register: ipv4_raw