Skip to content

Commit

Permalink
[travis skip] idempotence
Browse files Browse the repository at this point in the history
  • Loading branch information
Tcharl committed May 6, 2021
1 parent 74c3f76 commit 324e817
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
16 changes: 0 additions & 16 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
14 changes: 0 additions & 14 deletions molecule/kvm/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions tasks/networks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@
state: active
uri: "{{ libvirt_host_uri | default(omit, true) }}"
with_items: "{{ libvirt_host_networks }}"
changed_when: false
become: True
1 change: 1 addition & 0 deletions tasks/pools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion templates/network.xml.j2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<network connections='1'>
<name>{{ item.name }}</name>
<forward mode='{{ item.mode }}'/>
<bridge name='{{ item.bridge }}'{% if item.mode == 'route' or item.mode == 'nat' %} zone='{{item.zone | default("public")}}'{% endif %}/>
<bridge name='{{ item.bridge }}'{% if item.mode == 'route' or item.mode == 'nat' %} zone='{{ item.zone | default("public") }}'{% endif %}/>
{% if item.mode == 'route' or item.mode == 'nat' %}
<domain name='{{ item.domain|default(item.name) }}'/>
<ip address='{{ item.ip }}' netmask='{{ item.netmask }}'>
Expand Down

0 comments on commit 324e817

Please sign in to comment.