diff --git a/.github/workflows/molecule.yml b/.github/workflows/molecule.yml index a95f5dd..d4b19ec 100644 --- a/.github/workflows/molecule.yml +++ b/.github/workflows/molecule.yml @@ -26,7 +26,7 @@ jobs: - name: install lint prerequisite run: | sudo apt-get update - sudo apt -y install python3-setuptools ansible-lint vagrant + sudo apt -y install python3-setuptools vagrant - name: Install molecule run: | diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml index 80d630d..5423369 100644 --- a/molecule/default/molecule.yml +++ b/molecule/default/molecule.yml @@ -37,19 +37,3 @@ verifier: PYTHONWARNINGS: "ignore:.*U.*mode is deprecated:DeprecationWarning" options: v: 1 -scenario: - name: default - test_sequence: - - lint - - dependency - - cleanup - - destroy - - syntax - - create - - prepare - - converge - # - idempotence - - side_effect - - verify - - cleanup - - destroy diff --git a/molecule/kvm/molecule.yml b/molecule/kvm/molecule.yml index 6a52737..b19996e 100644 --- a/molecule/kvm/molecule.yml +++ b/molecule/kvm/molecule.yml @@ -31,17 +31,3 @@ verifier: v: 1 scenario: name: kvm - test_sequence: - - lint - - dependency - - cleanup - - destroy - - syntax - - create - - prepare - - converge - # - idempotence - - side_effect - - verify - - cleanup - - destroy diff --git a/tasks/networks.yml b/tasks/networks.yml index 5b90382..a7aeb99 100644 --- a/tasks/networks.yml +++ b/tasks/networks.yml @@ -22,4 +22,5 @@ state: active uri: "{{ libvirt_host_uri | default(omit, true) }}" with_items: "{{ libvirt_host_networks }}" + changed_when: false become: True diff --git a/tasks/pools.yml b/tasks/pools.yml index 02ccad1..ebca6ef 100644 --- a/tasks/pools.yml +++ b/tasks/pools.yml @@ -61,6 +61,7 @@ state: active uri: "{{ libvirt_host_uri | default(omit, true) }}" loop: "{{ libvirt_host_pools | flatten(levels=1) }}" + changed_when: false become: True - name: Ensure libvirt storage pools are started on boot diff --git a/templates/network.xml.j2 b/templates/network.xml.j2 index dff25d2..148efd3 100644 --- a/templates/network.xml.j2 +++ b/templates/network.xml.j2 @@ -1,7 +1,7 @@ {{ item.name }} - + {% if item.mode == 'route' or item.mode == 'nat' %}