Ansible – A playbook for setting up an apache webserver

Here’s a simple playbook that sets up an Apache web server on a RHEL/CentOS 7 box: [root@controller playbooks]# pwd /root/playbooks [root@controller playbooks]# cat httpd.yaml — – name: This sets up an httpd webserver hosts: ansibleclient01.local tasks: – name: Install apache packages yum: name: httpd state: present – name: ensure httpd […]

Read More

Ansible – Installing Ansible

There are a few of ways to install ansible. For the rest of these articles I’ll be running Ansible on Centos 7. Install Ansible using yum This is done like this: $ yum install epel-release $ yum install ansible Then check the version of ansible installed: $ ansible –version It […]

Read More

Ansible – A "hello world" Playbook

Playbooks are written in yaml format, and you can actually choose where to store your playbooks. In my case I’ll create a folder called playbooks for storing my playbooks, and I’ll create this in the root user’s home directory: [root@controller ~]# pwd /root [root@controller ~]# mkdir playbooks [root@controller ~]# cd […]

Read More

Ansible – About this Course

What is Ansible Ansible can be thought of as a multi-purpose tool for: Cloud Infrastructure Automation – You can use it to build new virtual machines on popular cloud platforms, such as AWS and Azure. Another very popular tool that’s used for this kind of work is Terraform Configuration Management […]

Read More