Ansible meta action: “ERROR! conflicting action statements”
The initial problem I was trying to solve had to do with a reboot role. Although it was the last role listed, once it ran the connection would be broken and then none of the notified tasks from...
View ArticleAnsible: [Errno 2] No such file or directory
I tried running a command on several remote servers at once via Ansible: $ ansible -a 'rpcinfo -p' centos Which returned a series of errors: ariel.osric.net | FAILED | rc=2 >> [Errno 2] No such...
View ArticleNagios check_disk returns DISK CRITICAL – /sys/kernel/config is not...
I enabled Nagios checks for free disk space on a group of servers today, and was hit with alerts containing the following error message: DISK CRITICAL - /sys/kernel/config is not accessible: Permission...
View ArticleAnsible conditional check failed
I wanted to add a check to one of my Ansible roles so that an application source would be copied and the source recompiled only if no current version existed or if the existing version did not match...
View ArticleAnsible unarchive module error: path does not exist
I was working on deploying files to a host via Ansible’s unarchive module when I ran into an error message: path /tmp/datafiles/ does not exist Here’s the relevant portion of my Ansible role’s...
View ArticleUsing Ansible to check version before install or upgrade
One thing that I do frequently with an Ansible role is check to see if software is already installed and at the desired version. I do this for several related reasons: To avoid taking extra time and...
View ArticleInstalling Ansible role dependencies
I have a monolithic Ansible playbook that contains dozens of different roles, all bundled into the same Git repository. Some of the roles are more generically useful than others, so I thought I would...
View ArticleAttributeError: module ‘paramiko’ has no attribute ‘SSHClient’
I have a simple Python 3 script (I’m running Python 3.6.1, compiled from source) that does the following 3 things: Connects to remote server(s) and using scp to get files Processes the files. Connects...
View ArticleKitchen CI – using the Vagrant driver
I’d previously been using the Docker driver with Kitchen CI and kitchen-ansible to test my Ansible playbooks. I really like using Kitchen CI. Test-driven infrastructure development! Regression testing!...
View Article