Archive for the ‘Ansible’ Category

Ansible Playbook for Raspberry Pi Headphones Setup


Warning: count(): Parameter must be an array or an object that implements Countable in /home/fbsqlcom/public_html/youdidwhatwithtsql.com/wp-content/plugins/wp-codebox/main.php on line 31

I’ve created another Ansible Playbook for the Raspberry Pi to setup Headphones. It’s hosted over on my Github: PiHeadphones The playbook can be execute with the following command… ?View Code BASHansible-playbook -i inventory headphones.yaml The inventory file should contain the name of your Raspberry Pi and should already be setup for ssh. The playbook will […]

Ansible: Find files newer than another

I needed to figure out a way of identifying files newer than another one in Ansible. Here’s an outline of the solution I came up with. First we need to create a bunch of directories and folder, with modified mtime values, that we can work with. ?View Code BASHmkdir dir1; mkdir dir2; # Set the […]

Setting up a Ansible Module Test Environment

I’ve begun developing some Ansible modules and have created a Vagrant environment to help with testing. You can check it over over on my github. The environment has been created to test some MongoDB modules but can easily be repurposed to another use. It’s quite simple to get started; ?View Code BASHgit clone https://github.com/rhysmeister/AnsibleTest.git cd AnsibleTest […]

Jenkins test instance with Vagrant & Ansible

Here’s yet another project using Vagrant and Ansible. This time it’s for a Jenkins instance. To get started head on over to the Jenkins test instance github page. Consult the readme for setup instructions.

AWX installation using Vagrant and Ansible

Over on my github is a new project firing up a test instance of AWX. This is based on the following awx installation notes. The project is AWX-on-CentOS-7. You’ll need Virtualbox, Vagrant and Ansible installed to get this up and running. Getting started is simple; 1. From a shell ansible-galaxy install geerlingguy.repo-epel git clone https://github.com/rhysmeister/AWX-on-CentOS-7 […]