Server IP : 85.214.239.14 / Your IP : 18.188.218.219 Web Server : Apache/2.4.62 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.18 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/ansible_collections/ovirt/ovirt/roles/infra/roles/datacenters/ |
Upload File : |
oVirt Datacenters ================= The `datacenters` role is used to set up or cleanup oVirt datacenters. Role Variables -------------- | Name | Default value | Description | |--------------------------|-----------------------|--------------------------------------| | data_center_name | UNDEF | Name of the data center. | | data_center_description | UNDEF | Description of the data center. | | data_center_local | false | Specify whether the data center is shared or local. | | compatibility_version | UNDEF | Compatibility version of data center. | | data_center_state | present | Specify whether the datacenter should be present or absent. | | recursive_cleanup | false | Specify whether to recursively remove all entities inside DC. Valid only when state == absent. | | format_storages | false | Specify whether to format ALL the storages that are going to be removed as part of the DC. Valid only when data_center_state == absent and recursive_cleanup == true. | Example Playbooks ---------------- ```yaml # Example 1 - name: Add oVirt datacenter hosts: localhost connection: local gather_facts: false vars: data_center_name: mydatacenter data_center_description: mydatacenter data_center_local: false compatibility_version: 4.4 roles: - ovirt.ovirt.infra.roles.datacenters ``` ```yaml # Example 2 - name: Recursively remove oVirt datacenter hosts: localhost connection: local gather_facts: false vars: data_center_name: mydatacenter data_center_state: absent recursive_cleanup: true format_storages: true roles: - ovirt.ovirt.infra.roles.datacenters ```