mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 10:40:22 -07:00
Remove libvirt/virt content (#14)
This content has been moved to: https://github.com/ansible-collections/libvirt
This commit is contained in:
parent
8532c595fd
commit
0ffe9fa6c4
22 changed files with 0 additions and 2416 deletions
|
@ -1,6 +0,0 @@
|
|||
shippable/posix/group1
|
||||
skip/aix
|
||||
skip/freebsd
|
||||
skip/osx
|
||||
needs/privileged
|
||||
destructive
|
|
@ -1,9 +0,0 @@
|
|||
<network>
|
||||
<name>foobar</name>
|
||||
<forward mode='nat'/>
|
||||
<ip address='192.168.125.1' netmask='255.255.255.0'>
|
||||
<dhcp>
|
||||
<range start='192.168.125.2' end='192.168.125.254'/>
|
||||
</dhcp>
|
||||
</ip>
|
||||
</network>
|
|
@ -1,85 +0,0 @@
|
|||
---
|
||||
- include_vars: '{{ item }}'
|
||||
with_first_found:
|
||||
- "{{ ansible_distribution }}-{{ ansible_distribution_version}}.yml"
|
||||
- "{{ ansible_distribution }}-{{ ansible_distribution_major_version}}.yml"
|
||||
- "{{ ansible_distribution }}.yml"
|
||||
- "default.yml"
|
||||
|
||||
- block:
|
||||
- name: Install libvirt packages
|
||||
package:
|
||||
name: "{{ virt_net_packages }}"
|
||||
|
||||
- name: Start libvirt
|
||||
service:
|
||||
name: libvirtd
|
||||
state: started
|
||||
|
||||
- name: Define the foobar network
|
||||
virt_net:
|
||||
command: define
|
||||
name: foobar
|
||||
xml: '{{ lookup("file", "foobar.xml") }}'
|
||||
|
||||
- name: Define the foobar network (again)
|
||||
virt_net:
|
||||
command: define
|
||||
name: foobar
|
||||
xml: '{{ lookup("file", "foobar.xml") }}'
|
||||
register: second_virt_net_define
|
||||
|
||||
- name: Start the default network
|
||||
virt_net:
|
||||
uri: qemu:///system
|
||||
command: start
|
||||
name: foobar
|
||||
|
||||
- name: Start the default network (again)
|
||||
virt_net:
|
||||
uri: qemu:///system
|
||||
command: start
|
||||
name: foobar
|
||||
register: second_virt_net_start
|
||||
|
||||
- name: Get facts for default network
|
||||
virt_net:
|
||||
uri: qemu:///system
|
||||
command: facts
|
||||
name: foobar
|
||||
register: virt_net_facts
|
||||
|
||||
- name: Destroy the foobar network
|
||||
virt_net:
|
||||
command: destroy
|
||||
name: foobar
|
||||
|
||||
- name: Undefine the foobar network
|
||||
virt_net:
|
||||
command: undefine
|
||||
name: foobar
|
||||
register: second_virt_net_define
|
||||
|
||||
- name: Undefine the foobar network (again)
|
||||
virt_net:
|
||||
command: undefine
|
||||
name: foobar
|
||||
register: second_virt_net_undefine
|
||||
|
||||
- name: Ensure the second calls return "unchanged"
|
||||
assert:
|
||||
that:
|
||||
- "second_virt_net_start is not changed"
|
||||
- "second_virt_net_define is not changed"
|
||||
- "second_virt_net_undefine is not changed"
|
||||
|
||||
always:
|
||||
- name: Stop libvirt
|
||||
service:
|
||||
name: libvirtd
|
||||
state: stopped
|
||||
|
||||
- name: Remove only the libvirt packages
|
||||
package:
|
||||
name: "{{ virt_net_packages|select('match', '.*libvirt.*')|list }}"
|
||||
state: absent
|
|
@ -1,6 +0,0 @@
|
|||
---
|
||||
virt_net_packages:
|
||||
- libvirt-daemon
|
||||
- libvirt-daemon-system
|
||||
- python-libvirt
|
||||
- python-lxml
|
|
@ -1,6 +0,0 @@
|
|||
---
|
||||
virt_net_packages:
|
||||
- libvirt
|
||||
- libvirt-daemon
|
||||
- python3-libvirt
|
||||
- python3-lxml
|
|
@ -1,6 +0,0 @@
|
|||
---
|
||||
virt_net_packages:
|
||||
- libvirt
|
||||
- libvirt-daemon
|
||||
- libvirt-python
|
||||
- python-lxml
|
|
@ -1,6 +0,0 @@
|
|||
---
|
||||
virt_net_packages:
|
||||
- libvirt
|
||||
- libvirt-daemon
|
||||
- python3-libvirt
|
||||
- python3-lxml
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
virt_net_packages:
|
||||
- libvirt-daemon
|
||||
- python-libvirt
|
||||
- python-lxml
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
virt_net_packages:
|
||||
- libvirt-daemon
|
||||
- python-libvirt
|
||||
- python-lxml
|
|
@ -1,6 +0,0 @@
|
|||
---
|
||||
virt_net_packages:
|
||||
- libvirt-daemon
|
||||
- libvirt-daemon-system
|
||||
- python-libvirt
|
||||
- python-lxml
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
virt_net_packages:
|
||||
- libvirt-daemon
|
||||
- python-libvirt
|
||||
- python-lxml
|
Loading…
Add table
Add a link
Reference in a new issue