Ansible in a Python virtual env
Oct 18, 2020
Requirements I use an Ubuntu machine running within WSL2 (see also WSL2 on Windows 10)
Install requirements and
sudo apt install -y python3-venv Create your venv mkdir ~/virtualenvs cd ~/virtualenvs python3 -m venv ansible restart Ubuntu running in WSL2.
Using a venv Install ansible in your venv
source ~/virtualenvs/ansible/bin/activate pip3 install wheel pip3 install ansible ansible --version Use deactivate to leave the python virtual env
(ansible) user@HOST_NAME:~/virtualenvs$ deactivate user@HOST_NAME:~/virtualenvs$ You can see the actual functionality of the venv with which python and in your $PATH variable.
Automating AWX in Dockerdesktop
Oct 18, 2020
This post kind of assumes that you already have an environment for AWX with WSL2 Ubuntu and DockerDesktop on you guest OS Windows 10.
Related projects posts: W10 and WSL2 for Docker and Linux Installation of AWX on DockerDesktop W10 Requirements: Install required modules:
ansible-galaxy collection install awx.awx
sudo apt install ansible-tower-cli The folowing file should exist and have config
$ cat ~/.tower_cli.cfg
## local IP for my guest OS running docker desktop from W10-WSL2 Ubuntu host = http://172.
AWX in Dockerdesktop on Windows 10
Oct 18, 2020
Requirements Assumptions are that you actually already are running some things on your local development systems
WSL2 with Ubuntu and Docker Desktop You may already have a venv running on your Ubuntu host if not basically create it like this:
python3 -m venv ansible
pip3 install wheel
pip3 install ansible For more info see Ansible Python Virtual Env
Install AWX from your WSL2 Ubuntu host into Docker containers source ~/virtualenvs/ansible/bin/activate
pip3 install docker docker-compose
git clone https://github.
WSL2 on Windows 10
Oct 18, 2020
WSL stands for Windows Subsystem for Linux and is a great way of running Linux directly on Windows, unmodified, without the overhead of a traditional virtual machine or dualboot setup. For more information head over to https://docs.microsoft.com/en-us/windows/wsl/about. Currently there are 2 versions an if your system suppports it just use WSL2 for better preformance.
My installation comes directly from these 2 guides:
https://grantlittle.me/index.php/2020/06/06/installing-ubuntu-20-04-on-wsl-windows-subsystem-for-linux/ https://docs.microsoft.com/en-us/windows/wsl/install-win10 But you know some times I like to add little notes of myself here and there and the upstream documentation may be removed in which case I always still have my notes.
Jul 19, 2020
Some general background Off course like any good story this starts with I was aksed by a friend. I started with some back ground checks on what I was lookin for here:
The Most Dangerous Town On the Internet
Setup of a browwser in a container So a pretty nasty place. Might as well take some precaution. But in general as for illegality there is lots of that on the darkweb.
Setup of a minikube cluster
May 6, 2020
So maybe you are like me and ended up here because you want to know a thing or 2 about K8S (kubernetes)
As you can see in my first post on the topic of Kubernetes https://blog.roelsieg.nl/posts/101_k8s/ I did already learn myself howto install minikube which we will use here also, but I have no clue on what I am doing yet. So basicaly I called in the cavelary and asked some support from a friend https://nl.
Ansible in a Docker container
Mar 22, 2020
This post relates to another post about Where and how to run Ansible but I will focus only on the setup of a docker container onto my development systems which ATM a windows based laptop.
Install a docker environment TO BE CONTINUED …..
Setup a Ansible docker host TO BE CONTINUED …..
Credits to …. and refrences Rule of tech by Walokra
Where and how to run Ansible
Mar 22, 2020
So here you are. You have been using Ansible for a while and have walked already different paths is using and installing it naming a few:
Install Ansible on your host development system (equal to: your laptop) Install Ansible inside a python virtual env on and agent (equal to: this is what you could do in a CI/CD pipeline) Install Ansible on a separate system where you run your playbooks from (equal to: fine if you have an ESX farm or something) Install Ansible in VM on your host development system (equal to: use VirtualBox on your laptop) Install Ansible in Container (equal to: use docker to run Ansible)(ATM under investigation) All the above use cases have their own implementations and of course pros and cons.
First steps Kubernetes
Mar 21, 2020
First steps in K8S land Like all new things in life you just have to start somewhere. So what I did when I started with kubernetes is the following. I googled a bit for things I knew and liked “vagrant+kubernetes+ubuntu+github” found a repo I liked and cloned it and gave it a spin-up.
git clone https://[email protected]/exxsyseng/k8s_ubuntu.git
vagrant up And you know what before I knew it (actualy took still quite a few minutes) I had a whole cluster up and running:
Mar 7, 2020
Install the docker container from monachus/hugo or jguyomard/hugo-builder
Setup How this is installed is a complete diffrent story since there are many ways to do this. The story of how I want to install this ansible & docker is not finished yet. But lets assume you just added it through the docker gui that is available in for example Synology.
Initialize a hugo site and a theme hugo new site your_site_name
git clone git@github.