Posts Tagged ansible
Improving my OpenVPN Ansible Playbook
Posted by Kyle Lexmond in Sysadmin on April 11, 2016
I had a working OpenVPN configuration. But it wasn’t the best it could be. The manpage for OpenVPN 2.3 (community.openvpn.net/openvpn/wiki/Openvpn23ManPage) was used to find particularly interesting options. For most of the changes I had to find examples and more information through Googling, though blog.g3rt.nl/openvpn-security-tips.html is of particular note for popping up very often. Improving TLS […]
Using the Ansible Slurp module
Posted by Kyle Lexmond in Sysadmin on March 7, 2016
I recently discoveredĀ the slurp module within Ansible when I was attempting to find new modules in Ansible 2.0. It is particularly interesting for me since I’ve been doing a bunch of stuff involving the contents of files on remote nodes for my OpenVPN playbook. So I decided to try using it in one of my […]
Backing up & restoring Jenkins
Posted by Kyle Lexmond in Sysadmin on March 2, 2016
I’m moving my jenkins instance to a new server, which means meaning up & restoring it. Backup The nice thing about it is that it’s almost entirely self-contained in /var/lib/jenkins, which means I really only have 1 directory to backup. I’m using duply to back the folderĀ up – but it’s 1.9GB in size. So to […]
Ansible: Using register with with_items
Posted by Kyle Lexmond in Sysadmin on February 21, 2016
The motivation for this came from trying implement running a command that depended on whether or not a previous command succeeded. In this case, I was trying to make the creation of duply profiles idempotent. Duply will exit with an error if you attempt to create a profile that already exists, and I didn’t want […]