How to set up MariaDB Master-Slave replication with SSL on Ubuntu Linux

Posted on in Categories , , last updated April 15, 2017

How do I setup Master-slave data replication using MariaDB server on Ubuntu Linux 16.04 LTS server? How do I encrypt replication traffic so that the data get encrypted in transit, protecting my data and users from snooping?
Continue reading “How to set up MariaDB Master-Slave replication with SSL on Ubuntu Linux”

How to create a new config file in Ansible playbook

Posted on in Categories , , , , , , , last updated February 19, 2017

I wanted to create a file named /etc/apt/apt.conf.d/1000-force-ipv4-transport with the value set to ‘Acquire::ForceIPv4 true;’ on 20 cloud servers hosted in AWS. I already setup Ansible playbook to automate stuff. How do I create a new file using Ansible playbook? Is it possible to create a complex file with many lines of text (say squid.conf) using Ansible IT automation tool?