Apr 13 2021
Archive for the 'Ansible' Category
Apr 01 2021
Build Ansible Inventory from IBM Cloud Resources
IBM Cloud relies on Softlayer API – also called IBM Classic Infrastructure – to automate things. The API is available in different languages such as Python, Go, Java or PHP, and can be used to build an Ansible inventory. Here I will generate automatically a host inventory collected from my IBM Cloud account, directly usable […]
Mar 06 2021
Why Ansible Upgrades Packages on Hold and How to Fix it
I was writing a new Ansible role to upgrade all of my VMs with apt update and apt upgrade. I was still using an old Rancher that only works with docker-ce package up to version 18.06. A first task holds back the package with Ansible Dpkg module, basically an apt hold, as recommended on many […]
Jul 04 2020
Register a Jenkins Slave with Ansible
We saw how to register a Jenkins slave with a REST API. Let’s go one step further: make Ansible do that for you. You will first need a Jenkins user and associated token with the proper rights. Agent connect and create permissions should be sufficient. I’ll simply call that user “node”. Log on Jenkins with […]