Submit your Linux news story here.

How to create a simple and complex configuration files using Ansible playbook to automate system configuration on Linux

AAnsible is easy to use configuration management IT automation system that uses ssh to control many remote systems hosted in data center or cloud servers. Playbooks are Ansible’s configuration, deployment, and orchestration language. They can describe a policy you want your remote systems to enforce or a set of. For example, install an Apache software, PHP 7 or update system or configure a firewall and much more. This tutorial describes how to use Ansible playbooks to send commands to remote servers in an automated way.

From the tutorial page:

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?