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 […]
Remote Windows Management from Linux using Dockers
Since PowerShell Core 6, PowerShell became cross-platform, free and open source. There is, of course, some limitations when it comes to PowerShell for non-Windows platforms. Microsoft documentation explains that: “PowerShell on Linux and macOS uses .NET Core, which is a subset of the full .NET Framework on Microsoft Windows. As a result, scripts that run […]
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 […]
A bash script to generate random passwords
There is a couple of ways to create a random password with shell/bash. For instance, we can just pipe the date command to md5sum or sha256sum to generate a seemingly random string that can be used as a password: That is a start. If we don’t want the whole string, when can trim the result […]
Keep your Ubuntu Server tasks running with Screen
Sometimes it can be useful to leave your server working on a task in case you need to disconnect yourself from it. With screen we can create and resume sessions easily. To install screen on Ubuntu, type the following command: Is always a good idea to update the local package list from your server by […]