Ansible with VMware – change a line in a file– Part 15
We have a file on a managed node and we want to change the line within the file. For example on the remote box this file structure exists. So we…
We have a file on a managed node and we want to change the line within the file. For example on the remote box this file structure exists. So we…
Working with services you can start, restart, stop and enable services from ansible. Below example Here I will install apache2 and then stop the apache2 service but enable the service.…
Here we will install unzip, get a zip file from a URL and unzip and install at the destination location. Below is the example code screenshots below before and after…
I am going to replace a file on the destination end. I will replace the index.html on a Ubuntu apache2 which is the front end webpage with my own one.I…
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…
In this blog I will be running remote commands from the ansible control box to my test ubtuno virtual machine. Screen shots below