Getting Started with Ansible

In this post: What is Ansible Installing Ansible Authentication Inventories Playbooks Testing Ansible What is Ansible? Ansible is an open-source infrastructure as code tool provided by Red Hat. Instead of agents, Ansible relies on SSH to pass tasks defined in YAML to remote machines. To get familiar with Ansible, I created a simple scenario where a bash script needed to be uploaded to a remote machine and ran periodically. ...

Thu, Jan 13, 2022 · 5 min · Olivia Snowden

Automate Replacing JSON Values with Python

In this post: Intro JSON File CSV File Python Script Writing the Python Script I was recently tasked with automating the replacement of key:value pairs in a JSON file. The goal was to take the output of a CLI command listing key:value pairs and place those keys/values in specific places within a JSON file. I decided to convert the output of the CLI command to a CSV file and have a python script use that CSV to create a new JSON file with updated keys/values. ...

Wed, Dec 22, 2021 · 7 min · Olivia Snowden