The Luhn or mod 10 algorithm is a simple check digit formula used to validate a variety of identification numbers. It is widely used for the validation of debit and credit card numbers. Its implementation in Ansible is fairly simple using plugins, which is an Ansible feature meant to “augment Ansible’s core functionality”. Code Working […]
An Ansible role to install OpenSSH on Windows
When working with Ansible and Windows, many find WinRM’s limitations both frustrating and tricky to navigate. Managing Windows remotely from a Linux environment presents unique challenges due to these constraints. From my vantage point, OpenSSH emerges as a more stable and speedy alternative compared to WinRM. This might account for its widespread recommendation as a […]
Ansible Runner: Ansible from Python code
Ansible Runner is a Python module that allows you to run Ansible playbooks from Python code. It offers “directly importable and usable API for interfacing with Ansible“. In Python, one way of dealing with Ansible is to just call it using modules such as subprocess or os.system. Ansible Runner offers a more ‘Pythonic way‘ of […]
Install Jenkins with Docker using an Ansible playbook
There are a few advantages of installing Jenkins using Docker. These advantages include faster delivery, more scalability, and easier management. Here we will create a bash script to install Jenkins with that approach. Then, we will transform that script into an Ansible playbook with the shell module. For this example, I will use CentOS 7. You can […]
Create a new Windows Domain with Ansible using the win_powershell module
In this entry, we are going to use Ansible to manage a Windows host. To create a control node, the machine that is going to run Ansible, you have to use a UNIX-like system. This opens the possibility to use the Windows Subsystem for Linux if an independent control node is not an option for […]