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....

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

Deploy Docker container using Ansible

Overview This article will showcase the steps how to deploy docker container using Ansible on a remote Linux machine. This will enable us to automate the process of Docker container deployment, when required, on a multiple remote Linux hosts, with a preset of environment variables and configs for the needed Docker container. Prerequisites In order to successfully deploy Docker container using Ansible on a remote Linux machine, there are following prerequisites that are required:...

December 24, 2023 · 4 min · 758 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....

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

How to Install Docker using Ansible [Debian/Ubuntu]

Overview This article will showcase a process how to install Docker using Ansible. We’ll be creating an Ansible playbook which will contain only five lines of code. What will enable us to have such a small playbook is the official Docker install script, which will automate the Docker install process for us. The script works on many major Linux distributions such as - Debian, Ubuntu, Fedora, RedHat, CentOS, OpenSuse and Raspbian....

December 15, 2021 · 4 min · 748 words · MarkoN