Ansible with VMware – tag examples – Part 11
Tags are essentially labels or keywords that can help identify and organize the running of your playbooks. So if your are going to install a program in a section in…
Tags are essentially labels or keywords that can help identify and organize the running of your playbooks. So if your are going to install a program in a section in…
So installing multiple apps in your playbook helps consolidate your playbook, makes it run faster and it is easier to read. Below is an example. The below variable example is…
This blog I will upgrade ubuntu, update all packages, only target ubuntu nodes using the ‘when’ command and run multiple tasks. Here are my two yml files tested and working…
In this blog I will remove and install vlc player on my ubuntu box from the ansible control node and skip centos OS boxes. I will create two yml files…
By using github and transferring all your playbooks/code to it, will allow it to be in a safe place and managed in one location. This will allow you to create…
So the three vms I will be deploying are: lifecycle manager – vrslcm – used to manage vra and vidm (certificates, health, deployment etc..) Identity manager – vidm – used…
In this blog I will be running remote commands from the ansible control box to my test ubtuno virtual machine. Screen shots below
A managed node is the remote machine you want to manage using your ansible box which is your control node. Every type of remote machine can be a managed node,…
create-vm.yml --- - name: create vm hosts: localhost become: false gather_facts: false tasks: - name: create folder community.vmware.vcenter_folder: hostname: 192.168.1.13 username: administrator@vsphere.local password: VMware1! validate_certs: no datacenter: dc1 folder_name: ansible…
You need to create two files first in your /etc/ansible/playbooks. login.yml and vcenter_vars.yml. This will allow to pass through information to the other .yml playbooks. Now here are some examples…