Debian Codegraph @

ansible_collections/community/libvirt/README.md

raw
1 # community.libvirt Collection
2 [![Build Status](
3 https://dev.azure.com/ansible/community.libvirt/_apis/build/status/CI?branchName=main)](https://dev.azure.com/ansible/community.libvirt/_build?definitionId=27)
4 [![Codecov](https://img.shields.io/codecov/c/github/ansible-collections/community.libvirt)](https://codecov.io/gh/ansible-collections/community.libvirt)
5
6 This repo hosts the `community.libvirt` Ansible Collection.
7
8 The collection includes the libvirt modules and plugins supported by Ansible
9 libvirt community to help the management of virtual machines and/or containers
10 via the [libvirt](https://libvirt.org/) API.
11
12 This collection is shipped with the `ansible` package.
13
14 ## Communication
15
16 * Join the Ansible forum:
17 * [Get Help](https://forum.ansible.com/c/help/6): get help or help others. Please add appropriate tags if you start new discussions, for example the `libvirt` tag.
18 * [Posts tagged with 'libvirt'](https://forum.ansible.com/tag/libvirt): subscribe to participate in related conversations.
19 * [Social Spaces](https://forum.ansible.com/c/chat/4): gather and interact with fellow enthusiasts.
20 * [News & Announcements](https://forum.ansible.com/c/news/5): track project-wide announcements including social events.
21
22 * The Ansible [Bullhorn newsletter](https://docs.ansible.com/ansible/devel/community/communication.html#the-bullhorn): used to announce releases and important changes.
23
24 For more information about communication, see the [Ansible communication guide](https://docs.ansible.com/ansible/devel/community/communication.html).
25
26 ## Tested with Ansible
27 <!-- List the versions of Ansible the collection has been tested with. Must match what is in galaxy.yml. -->
28
29 - 2.17
30 - 2.18
31 - 2.19
32 - 2.20
33 - devel
34
35 ## External requirements
36 <!-- List any external resources the collection depends on, for example minimum versions of an OS, libraries, or utilities. Do not list other Ansible collections here. -->
37 - python >= 2.6
38 - [libvirt python bindings](https://pypi.org/project/libvirt-python/)
39 - lxml
40
41 Some modules require additional system tools:
42 - `virt-install`: required by the `virt_install` and `virt_cloud_instance` modules.
43 - `qemu-img`: required by the `virt_cloud_instance` module.
44
45 ## Included content
46 <!-- Galaxy will eventually list the module docs within the UI, but until that is ready, you may need to either describe your plugins etc here, or point to an external docsite to cover that information. -->
47
48 Modules:
49
50 - [virt](https://docs.ansible.com/ansible/latest/collections/community/libvirt/virt_module.html)
51 - [virt_net](https://docs.ansible.com/ansible/latest/collections/community/libvirt/virt_net_module.html)
52 - [virt_pool](https://docs.ansible.com/ansible/latest/collections/community/libvirt/virt_pool_module.html)
53 - [virt_volume](https://docs.ansible.com/ansible/latest/collections/community/libvirt/virt_volume_module.html)
54 - [virt_install](https://docs.ansible.com/ansible/latest/collections/community/libvirt/virt_install_module.html)
55 - [virt_cloud_instance](https://docs.ansible.com/ansible/latest/collections/community/libvirt/virt_cloud_instance_module.html)
56
57 Inventory:
58
59 - [libvirt](https://docs.ansible.com/ansible/latest/collections/community/libvirt/libvirt_inventory.html#ansible-collections-community-libvirt-libvirt-inventory)
60
61 Connection:
62
63 - [libvirt_lxc](https://docs.ansible.com/ansible/latest/collections/community/libvirt/libvirt_lxc_connection.html#ansible-collections-community-libvirt-libvirt-lxc-connection)
64 - [libvirt_qemu](https://docs.ansible.com/ansible/latest/collections/community/libvirt/libvirt_qemu_connection.html#ansible-collections-community-libvirt-libvirt-qemu-connection)
65
66 ## Using this collection
67 <!--Include some quick examples that cover the most common use cases for your collection content. -->
68
69 Before using the libvirt collection, you need to install it with the Ansible Galaxy command-line tool:
70
71 ```bash
72 ansible-galaxy collection install community.libvirt
73 ```
74
75 You can include it in a `requirements.yml` file and install it via `ansible-galaxy collection install -r requirements.yml`, using the format:
76
77 ```yaml
78 ---
79 collections:
80 - name: community.libvirt
81 ```
82
83 You can also download the tarball from [Ansible Galaxy](https://galaxy.ansible.com/community/libvirt) and install the collection manually wherever you need.
84
85 Note that if you install the collection from Ansible Galaxy with the command-line tool or tarball, it will not be upgraded automatically when you upgrade the Ansible package. To upgrade the collection to the latest available version, run the following command:
86
87 ```bash
88 ansible-galaxy collection install community.libvirt --upgrade
89 ```
90
91 You can also install a specific version of the collection, for example, if you need to downgrade when something is broken in the latest version (please report an issue in this repository). Use the following syntax:
92
93 ```bash
94 ansible-galaxy collection install community.libvirt:==X.Y.Z
95 ```
96
97 See [Ansible Using collections](https://docs.ansible.com/ansible/latest/user_guide/collections_using.html) for more details.
98
99 ## Contributing to this collection
100 <!--Describe how the community can contribute to your collection. At a minimum, include how and where users can create issues to report problems or request features for this collection. List contribution requirements, including preferred workflows and necessary testing, so you can benefit from community PRs. -->
101
102 The content of this collection is made by people just like you, a community of individuals collaborating on making the world better through developing automation software.
103
104 We are actively accepting new contributors.
105
106 All types of contributions are very welcome.
107
108 You don't know how to start? Refer to our [contribution guide](https://github.com/ansible-collections/community.libvirt/blob/main/CONTRIBUTING.md)!
109
110 The aspiration is to follow the following general guidelines:
111
112 - Changes should include tests and documentation where appropriate.
113 - Changes will be lint tested using standard python lint tests.
114 - No changes which do not pass CI testing will be approved/merged.
115 - The collection plugins must provide the same coverage of python support as
116 the versions of Ansible supported.
117 - The versions of Ansible supported by the collection must be the same as
118 those in developed, or those maintained, as shown in the Ansible [Release and Maintenance](https://docs.ansible.com/ansible/latest/reference_appendices/release_and_maintenance.html) documentation.
119
120 We use the following guidelines:
121
122 * [CONTRIBUTING.md](https://github.com/ansible-collections/community.libvirt/blob/main/CONTRIBUTING.md)
123 * [REVIEW_CHECKLIST.md](https://github.com/ansible-collections/community.libvirt/blob/main/REVIEW_CHECKLIST.md)
124 * [Ansible Community Guide](https://docs.ansible.com/ansible/latest/community/index.html)
125 * [Ansible Development Guide](https://docs.ansible.com/ansible/devel/dev_guide/index.html)
126 * [Ansible Collection Development Guide](https://docs.ansible.com/ansible/devel/dev_guide/developing_collections.html#contributing-to-collections)
127
128 ### Local Testing
129
130 To learn how to test your pull request locally, refer to the [Quick-start guide](https://github.com/ansible/community-docs/blob/main/create_pr_quick_start_guide.rst#id3).
131
132 To learn how to test a pull request made by another person in your local environment, refer to the [Test PR locally guide](https://github.com/ansible/community-docs/blob/main/test_pr_locally_guide.rst).
133
134 ## Collection maintenance
135
136 The current maintainers (contributors with `write` or higher access) are listed in the [MAINTAINERS](https://github.com/ansible-collections/community.libvirt/blob/main/MAINTAINERS) file. If you have questions or need help, feel free to mention them in the proposals.
137
138 To learn how to maintain / become a maintainer of this collection, refer to the [Maintainer guidelines](https://github.com/ansible-collections/community.libvirt/blob/main/MAINTAINING.md).
139
140 It is necessary for maintainers of this collection to be subscribed to:
141
142 * The collection itself (the `Watch` button -> `All Activity` in the upper right corner of the repository's homepage).
143 * The "Changes Impacting Collection Contributors and Maintainers" [issue](https://github.com/ansible-collections/overview/issues/45).
144
145 They also should be subscribed to Ansible's [The Bullhorn newsletter](https://docs.ansible.com/ansible/devel/community/communication.html#the-bullhorn).
146
147 ### Releases Support Timeline
148
149 We maintain each major release version (1.x.y, 2.x.y, ...) for one year after the next major version is released.
150
151 Here is the table for the support timeline:
152 - 1.x.y: released 2020-08-18, maintained until 2026-07-21 (bugfixes only)
153 - 2.x.y: released 2025-07-21, current
154
155 ### Publishing New Version
156
157 See the [Releasing guidelines](https://github.com/ansible/community-docs/blob/main/releasing_collections_without_release_branches.rst) to learn more.
158
159 ## Reference
160
161 - [Ansible Collection overview](https://github.com/ansible-collections/overview)
162 - [Ansible User guide](https://docs.ansible.com/ansible/latest/user_guide/index.html)
163 - [Ansible Developer guide](https://docs.ansible.com/ansible/latest/dev_guide/index.html)
164 - [Ansible Community code of conduct](https://docs.ansible.com/ansible/latest/community/code_of_conduct.html)
165
166 ## License
167 <!-- Include the appropriate license information here and a pointer to the full licensing details. If the collection contains modules migrated from the ansible/ansible repo, you must use the same license that existed in the ansible/ansible repo. See the GNU license example below. -->
168
169 GNU General Public License v3.0 or later.
170
171 See [LICENCE](https://www.gnu.org/licenses/gpl-3.0.txt) to see the full text.