This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: localhost | |
gather_facts: no | |
vars_files: | |
- vcenter_vars.yml | |
tasks: | |
- community.vmware.vmware_object_rename: | |
new_name: "DS_171_2" | |
object_name: "DS_117_1" | |
object_type: Datastore |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: localhost | |
vars_files: | |
- vcenter_vars.yml | |
vars: | |
cluster_name: 'Asia-Cluster1' | |
datastore_name: 'ds_200' | |
folder_name: 'prod' | |
src_vm_name: CentOS_8 | |
dest_vm_name: deployed_centos_8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugin: community.general.virtualbox | |
running_only: True | |
cache: yes | |
cache_plugin: ansible.builtin.jsonfile | |
cache_timeout: 7200 | |
cache_connection: /tmp/virtualbox | |
cache_prefix: vbox_cache_ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugin: community.general.virtualbox | |
compose: | |
guest_os: vbox_Guest_OS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugin: community.general.virtualbox | |
groups: | |
container: "'mini' in (inventory_hostname)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugin: community.general.virtualbox | |
keyed_groups: | |
- key: vbox_Guest_OS | |
prefix: "" | |
separator: "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_meta": { | |
"hostvars": { | |
"c7_default_1613391235539_81556": { | |
"vbox_2D_Video_Acceleration": "disabled", | |
"vbox_3D_Acceleration": "disabled", | |
"vbox_ACPI": "enabled", | |
"vbox_APIC": "enabled", | |
"vbox_Allow_Tracing_to_Access_VM": "disabled", | |
"vbox_Audio": "enabled (Driver: CoreAudio, Controller: AC97, Codec: STAC9700)", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugin: community.general.virtualbox |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: localhost | |
vars_files: | |
- vcenter_vars.yml | |
vars: | |
category_name: "backup_category" | |
tag_name: "backup_tag" | |
vm_name: "CentOS_8" | |
tasks: | |
- name: Assign tags to given virtual machine |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: localhost | |
gather_facts: no | |
vars_files: | |
- vcenter_vars.yml | |
vars: | |
category_name: 'backup_category' | |
tag_name: 'backup_tag' | |
tasks: | |
- name: Create category first |