Ansible Vault – Simple Example

Ansible Vault encrypts secret variables or entire YAML files inside the repository. To unlock (see) these at the point of running the Ansible Playbook you need the Vault Password to unlock them. We’re going to create a simple example to illustate how it can be used.  Ensure you have added the SSH Key to your … Read more

Ansible Error – GPG Error

I was getting the following error with Ansible when running a Playbook against a server: It turned out that Ansible was attempting to perform an “apt update” and failing, but just ended up timing out. Manually running “apt update” then gave the following error, which was what was tripping up the Playbook and causing it … Read more

Terraform Quick Reference

Quick reference for Terraform when using AWS. Once you are authenticated, i’m assuming SSO here, then you can apply your configuration with: You can add the “–auto-approve” to the end so you don’t have to press “yes”, but use with caution!

Node.js node: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory

Was installing Node.js v25.9.0 as a standalone pre-built binary installation and ended up after a successful installation getting the following when attempting to run a “node -v”. To resolve this, I just needed to install the missing library. Then attempting to re-run the command, I get the version output as expected.

Using SSM COMMAND from Terraform

So you have an EC2 instance you’ve deployed from Terraform, but as part of the run of your template you want to run some other commands. Sure, you can use the “user data” section to run commands at deployment time, but what if you want to run something later on? Well, you can use a … Read more

Simple VPC Deployment Pattern (Terraform)

A simple VPC deployment pattern which includes a simple configuration that has been tested and can be used to build a new infrastructure from. It uses Terraform and uses local state storage (within a directory called “state_data”), for production uses it is mandated to use some form of remote state storage. The pattern within the … Read more