Mark your calendars – August 3rd, 2017 – Ansible Automated Minneapolis

Mark your calendars – August 3rd, 2017 – Ansible Automated Minneapolis

How can I execute an Ansible task on the local Ansible controller server?
The key is to use the “delegate_to” or “local_action” key words on your task.
So lets say we want to use Ansible to monitor an end point and perform some action if the response is not equal to 200.

Here are a couple of useful Ansible playbook CLI switches I tend to use frequently.
Dry-run mode – Add this switch if you want to see what Ansible will do, without actually doing it.
Limit target hosts – Add this switch to specify what host(s) you want to run the playbook against.


What would it look like to setup a job in Jenkins that calls out to a Linux server, starts an Ansible Docker container that executes a playbook, and then shuts down the docker container like it never existed? Time to find out…..
For this exercise, we are going to have a Jenkins slave installed on the same Linux server that we’re going to use to launch our Ansible Docker container. Also, in our Jenkins job, we are going to configure Git as our source code repo, which is where out playbook and host files will be stored. So when the Jenkins job is executed, the playbooks\host files will be copied to the slave.
We are going to follow these steps to setup the docker piece of this puzzle.
Is it possible to create an IIS Application Pool that uses a custom identity with Ansible?
I asked the question on the Ansible forums and got the following response.
Here are the results and notes from my implementation.

Using Ansible to manage Windows hosts gives sys admins the ability to use the same tool-set between Linux and Windows hosts.
Below are some notes, issues, and resolutions, you may find useful during your Windows setup.
If all goes well, you should get the following output back from your ping command.
[myUser@myServer]$ ansible windows -i hosts -m win_ping
1.1.1.1 | SUCCESS => {
“changed”: false,
“ping”: “pong”
}
If you are interested in learning Ansible and\or just creating an Ansible test environment, VirtualBox can help you.
Steps to spinning up a VirtualBox Ansible test environment. So easy!!!!
Its really that easy! I executed my commands via root, but if I were to have used another account, I may have needed to sudo the commands.
Another gotcha I an encountered was around proxy servers, so be aware that if your rpm\yum commands fail, you may need set your specific proxy server accordingly.

Starting up another blog. My previous blog was on blogspot.com and ran for about 7 years. Lots of good stuff, but time for a change, so I decided to try wordpress.com
Some of the DevOps topics and tools I will be blogging about are.