I’ve been building a lot of virtual machines and containers on proxmox lately. To save some time I wrote an ansible role that provisions containers for me, I just have to update some variables.
Using Ansible “when” statements allows you to set parameters for when a task should play out. I’ve put together some examples.
I didn’t get a ton of work done int he lab this week, but I did write about using subelements with Ansible. Also spent some time working with Graylog and Hashcorp Vault earlier in the week. I should be able to put a Graylog Ansible role up in the near future. Vault looks like it’s a little bit of a bigger project, but the structure is really interesting.
While working on my Ansible Galaxy users role I came across a situation where I needed to loop through a list inside a dictionary inside a list. For this specific case I had a list of users, and each user could have multiple authorized sshkeys stored in a “pubkeys” value.
Some homelab links related to Ansible, Docker, kubernetes and the new iPhone XR.
There are a lot of interesting happenings with Ansible this week. I’ve been watching the tweets for AnsibleFest and am pretty excited to see what they announce. Here’s a roundup of some interesting links I read through this week:
Here’s a roundup of some interesting links I read through this week: A cool looking ESP32-based board with PoE Caleb Doxsey discusses using Kubernetes for pet projects. Would love to try this out, $5 a month. Click is great tool for making command line python apps. Ansible-Lockdown is a pretty slick collection of Ansible security…
The Ansible docs cover a variety of ways to install Ansible from apt/yum installs to compiling from source. Learn to Setup ansible with virtualenv.