-
Continue reading →: Changing Ansible Playbook Depending On Operating System (Ansible)When running an Ansible playbook (or roles) it becomes a little bit irksome to have to create new playbooks just because a device may have a different operating system. Thankfully the awesome people behind Ansible have a solution for this. A Little Background… I have my inventory set in a…
-
Continue reading →: Using Ansible with AWS – Creating Multiple EC2 Instances, Tagging Them and ELK (AWS/Ansible)In my previous blog post I used Ansible to create an AWS EC2 instance and discussed how to do this via the Ansible ec2 module. Today I am going to go slightly more in depth with creating multiple instances, inventory groups and tagging. The playbook I am using for this…
-
Continue reading →: Using Ansible With AWS – Creating EC2 Instances (AWS / Ansible)So far most of my Ansible blog posts have been deploying or configuring local devices (i.e. normally one of my Raspberry Pis), but the whole idea of Ansible is that it can build whole infrastructures as code (well, YAML files in my incase). The best place to see infrastructure as…
-
Continue reading →: Caching Requests (Python)Python’s Requests module is a great way for interacting with data over the internet, however when designing/building a Python program that uses Requests that can mean lots (and lots) of Request calls to test a function. This is not too great if you are testing over a poor internet connection,…
-
Continue reading →: Installing Go Compiler On Raspberry Pi 4 (Raspberry Pi OS 32-Bit)Go (Golang) requires a compiler to build it’s code and it only takes a few lines to install that compiler on the Raspberry Pi. I’m using a Raspberry Pi 4 with Raspberry Pi OS (32-bit). Download the appropriate binary release The binaries are available from https://golang.org/dl/ . The Raspberry Pi…
-
Continue reading →: Grafana, Prometheus and Node Exporter On Raspberry Pi via Ansible (Raspberry Pi and Linux)If you want to see metrics in real time and look at web dashboards then Grafana and Prometheus may be the tools you are looking for, and if you are anything like me then you probably want to automate as much of the install as possible via Ansible. My Set…
-
Continue reading →: UK Covid-19 / Coronavirus Data (Python)The UK recently lowered the alert level for Covid-19 / Coronavirus pandemic, with the UK at level 3 (at time of writing this blog, 24th June 2020) and there has been discussion in the media about R levels differing at local levels and of the possibility of local lock downs.…
-
Continue reading →: Trying To Write More Pythonic With PEP-8 (Python)The Python language has a list of Python Enhancement Proposals (PEPs) that have been suggested as ways to improve Python. In this blog post I am going to look briefly at PEP-8. The Index Of PEPs Python.org keeps a list of all the PEPs at: https://www.python.org/dev/peps/ once a PEP has…
-
Continue reading →: Linux Root Directory (Linux)Have you ever run the ls command on the root of a Linux system and wonder what all the directories are and what they contain? The root directory layout of a Linux system can initially seem a little confusing, with directories like /usr being name user but not really being…
-
Continue reading →: AttributeError: partially initialized module has no attribute…(Python)Less of a blog post and more of a reminder to myself that when Python says: AttributeError: partially initialized module ‘MODULE_NAME’ has no attribute ‘ATTRIBUTE_NAME’ (most likely due to a circular import) It is normally because I have named my Python file the same as the module I am importing…


