Deploy Docker container using Ansible

Overview Hello there fellow Linux adventurers. I hope you’re ready for today’s adventure in the land of automation. Through this article you’ll be shown steps how to deploy Docker container using Ansible on a remote Linux machine that runs Docker engine. By the end of article you should have enough understanding how to automate process of Docker container deployment on a multiple Linux inventory, with preset of environment variables and configs for needed Docker container. ...

November 7, 2024 · 6 min · 1104 words · MarkoN

How to Install Docker using Ansible[Ubuntu/Debian]

Overview This article will showcase a process how to install Docker using Ansible. We’ll be covering two different approaches how to install Docker with Ansible, one for production environment and other for development/testing purposes. This process can be applied on any type of Linux machine - bare metal, VM or a cloud VM instance. For this example we’ll be running the playbook on Ubuntu 24.04 LTS. Side note - we also covered a process how to deploy Docker containers using Ansible - The process can be looked at this post, and how to deploy Nextcloud and Wordpress on Docker using Ansible. ...

July 28, 2024 · 7 min · 1425 words · MarkoN

Deploy Nextcloud on Docker using Ansible

Overview In this article we are going to go through the steps how to deploy Nextcloud on Docker using Ansible. Purpose of this procedure is to automatize the deployment process of Nextcloud on Docker with the Ansible playbook. In order to deploy nextcloud on docker using ansible successfully, there are some requirements first to configure(listed bellow in the prerequisites) Prerequisites Docker installed and running on the target host machine(Docker installation can also be automated with Ansible - link to the POST) SSH access enabled on the remote hosts with the login parameters preset in the Ansible hosts file Ansible installed on client machine(your machine) Installed Python and Python docker module for Ansible on target machine Installed Python on your local machine Install Python Docker module for Ansible Most Linux distros have Python3 preinstalled but for others the Python Docker module that Ansible uses may be missing. You’ll know that it’s if you get an error mentioning that the module is missing or not found. Picture example of the error bellow: ...

December 24, 2023 · 6 min · 1158 words · MarkoN

Clone a git repository with ansible

Overview One of cool things that Ansible can do is to clone a git repository and that’s what we’ll be talking about in this article - how to clone a git repository with Ansible. This enables us to have an automated solution for various setup processes(ie, downloading and setting up a dev environment on a remote location, need of download a script that needs to execute after the git repo is cloned, etc… ). ...

December 24, 2023 · 4 min · 659 words · MarkoN

Change hostname on Linux using Ansible

Overview This article will demonstrate how we to set a hostname on a Linux server using Ansible playbook. The end goal of this procedure is to automate the process changing the hostname on our remote Linux server. Overall this process is simple when executed manually but this playbook can have it’s uses too. One example - use it as a template for new server deployment Requirements in order to successfully change the hostname: ...

December 18, 2023 · 2 min · 341 words · MarkoN

Configure IPtables rules using Ansible

Overview The following article will act as a guide and to demonstrate the process how to configure IPtables rules using Ansible. What does this means is - by using Ansible we will create a playbook that we’re going to use to automatically set IPtables firewall rules on a remote Linux server. This solution may prove to be a good option since not only it will do the job automatically but also enables to perform the same procedure on multiple different hosts at once. ...

July 14, 2022 · 4 min · 641 words · MarkoN

Deploy Wordpress on Docker using Ansible

Overview The following article will cover the steps how to deploy Wordpress on Docker using Ansible. Purpose of this procedure is to automatize the deployment process of Wordpress on Docker with the Ansible playbook. In order to deploy wordpress on docker using ansible successfully, there are some requirements first to configure(listed bellow in the prerequisites) Prerequisites Docker installed and running on the target host machine(Docker installation can also be automated with Ansible – link to the POST) SSH access enabled on the remote hosts with the login parameters preset in the Ansible hosts file Ansible installed on client machine(your machine) Installed Python and Python docker module for Ansible on target machine Installed Python on your local machine Install Python Docker module for Ansible Most Linux distros have Python3 preinstalled but for others the Python Docker module that Ansible uses may be missing. You’ll know that it’s if you get an error mentioning that the module is missing or not found. Picture example of the error bellow: ...

December 29, 2021 · 5 min · 1010 words · MarkoN

Categories

0 min · 0 words · MarkoN