November 2017
Intermediate to advanced
388 pages
8h 46m
English
You can perform this example either on your local machine or a server. I would recommend to perform this operation on a server, that will take you through all the things required to set up. First launch an EC2 machine in a public subnet and make sure you open the SSH port from wherever you will be running your Ansible playbook.
# vi playbook.yaml --- - hosts: servers sudo: yes # You should give your remote server user name remote_user: ec2-user tasks: - name: Updating System yum: name=* state=latest - name: Install EPEL-repo yum: name=epel-release state=latest - name: Install nginx yum: name=nginx state=latest - name: start the ...
Read now
Unlock full access