-
Notifications
You must be signed in to change notification settings - Fork 91
/
README.md.in
87 lines (71 loc) · 2.39 KB
/
README.md.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
[![Build Status](https://jenkins.ovirt.org/job/oVirt_ovirt-ansible-collection_standard-check-pr/badge/icon)](https://jenkins.ovirt.org/job/oVirt_ovirt-ansible-collection_standard-check-pr/)
[![Build Status](https://img.shields.io/badge/docs-latest-blue.svg)](https://docs.ansible.com/ansible/2.10/collections/ovirt/ovirt/index.html)
oVirt Ansible Collection
====================================
The `@NAMESPACE@.@NAME@` manages all oVirt Ansible modules.
The pypi installation is no longer supported if you want
to install all dependencies do it manually or install the
collection from RPM and it will be done automatically.
Note
----
Please note that when installing this collection from Ansible Galaxy you are instructed to run following command:
```bash
$ ansible-galaxy collection install @NAMESPACE@.@NAME@
```
Requirements
------------
* Ansible core version 2.12.0 or higher
* Python SDK version 4.5.0 or higher
Content of the collection
----------------
* modules:
* ovirt_* - Modules to manage objects in @NAME@ Engine
* ovirt_*_info - Modules to gather information about objects in @NAME@ Engine
* roles:
* cluster_upgrade
* engine_setup
* hosted_engine_setup
* image_template
* infra
* repositories
* shutdown_env
* vm_infra
* disaster_recovery
* inventory plugin
Example Playbook
----------------
```yaml
---
- name: @NAME@ ansible collection
hosts: localhost
connection: local
vars_files:
# Contains encrypted `engine_password` varibale using ansible-vault
- passwords.yml
tasks:
- block:
# The use of @NAMESPACE@.@NAME@ before ovirt_auth is to check if the collection is correctly loaded
- name: Obtain SSO token with using username/password credentials
@NAMESPACE@.@NAME@.ovirt_auth:
url: https://ovirt.example.com/ovirt-engine/api
username: admin@internal
ca_file: ca.pem
password: "{{ ovirt_password }}"
# Previous task generated I(ovirt_auth) fact, which you can later use
# in different modules as follows:
- ovirt_vm:
auth: "{{ ovirt_auth }}"
state: absent
name: myvm
always:
- name: Always revoke the SSO token
ovirt_auth:
state: absent
ovirt_auth: "{{ ovirt_auth }}"
collections:
- @NAMESPACE@.@NAME@
```
Licenses
-------
- Apache License 2.0
- GNU General Public License 3.0