Ansible is a powerful IT automation engine, perfect for the IT professional or DevOps engineer. There are many ways to install Ansible, often packages are used to install a single version of Ansible across your entire system. This post will cover how to install Ansible 2.12 with pipenv and pyenv. In my environment I use…
Category: ansible
Provision Proxmox Containers with Ansible
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
Using Ansible “when” statements allows you to set parameters for when a task should play out. I’ve put together some examples.
Weekly Links 10/29-11/4: VPN, Lab Apps, and Linux Basics
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.
Using subelements in Ansible to loop through multiple lists.
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.
Weekly Links 10/22-10/28: Ansible, Kubernetes, iPhone XR
Some homelab links related to Ansible, Docker, kubernetes and the new iPhone XR.
Weekly Links 10/7-10/14: AnsibleFest, Molecule and Python
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:
Weekly Links 9/30-10/6
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…
Setup Ansible with Python Virtualenv
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.