Ansible In A Docker Container

Docker logo

Ansible and Docker are both powerful tools and in this blog post I aim to look at putting Ansible in a Docker container. I’m building on the work of https://hub.docker.com/r/philm/ansible_playbook/dockerfile/  Run Commands: docker run  -v “$(pwd)”:/ansible/playbooks geektechstuff/ansible_container:latest playbook.yml -i inventory_file_name Switches: -v maps a directory into the container (in above example current working directory of … Continue reading Ansible In A Docker Container

Using Ansible To Create And Manage Users (Linux / Raspberry Pi)

If you have multiple Linux devices (e.g. multiple Raspberry Pi computers) and multiple user accounts that need access to those devices (i.e. maybe a Code Club of pupils) and want their own user accounts on the devices it could be a lengthy process managing the accounts and devices. Which is where Ansible (https://www.ansible.com/) comes into … Continue reading Using Ansible To Create And Manage Users (Linux / Raspberry Pi)

Installing Ansible (Raspberry Pi)

Raspberry Pi Installing Ansible

My professional day-to-day role sees me administrating Windows OS based systems using Microsoft System Centre Configuration Manager (SCCM) and Active Directory/Group Policy. Knowing what tools are available to manage so many Windows systems at once I’m looking for something similar to manage several Raspberry Pi (Linux) systems at once. Previously I have looked at network … Continue reading Installing Ansible (Raspberry Pi)

Grafana – Using An API Call To Add DataSources (Python)

I’ve written blog posts on how to install Grafana and data exporters using Ansible (https://geektechstuff.com/2020/06/25/grafana-prometheus-and-node-exporter-on-raspberry-pi-via-ansible-raspberry-pi-and-linux/) and a blog post on adding users to Grafana using an API call (https://geektechstuff.com/2021/01/06/using-an-api-call-to-make-multiple-grafana-users-python/), but after re-reading my blog posts I decided to automate the process (previously a manual step in the Ansible post) of adding data sources. I have … Continue reading Grafana – Using An API Call To Add DataSources (Python)

Using An API Call To Make Multiple Grafana Users (Python)

A little while ago I looked at using Grafana on a Raspberry Pi ( https://geektechstuff.com/2020/06/25/grafana-prometheus-and-node-exporter-on-raspberry-pi-via-ansible-raspberry-pi-and-linux/ ), today I created a quick Python script to create new Grafana user accounts using the Grafana API. Why Use The API? Grafana does have a graphical web based interface for creating users, and if creating a single user account … Continue reading Using An API Call To Make Multiple Grafana Users (Python)