Skip to Content
Security Automation with Ansible 2
book

Security Automation with Ansible 2

by Akash Mahajan, MADHU AKULA
December 2017
Intermediate to advanced
364 pages
7h 30m
English
Packt Publishing
Content preview from Security Automation with Ansible 2

LAMP stack playbook example – combining all the concepts

We will look at how to write a LAMP stack playbook using the skills we have learned so far. Here is the high-level hierarchy structure of the entire playbook:

inventory               # inventory filegroup_vars/             #   all.yml              # variablessite.yml                # master playbook (contains list of roles)roles/                  #    common/             # common role        tasks/          #            main.yml    # installing basic tasks    web/                # apache2 role        tasks/          #            main.yml    # install apache        templates/      #            web.conf.j2 # apache2 custom configuration        vars/           #             main.yml    # variables for web role         handlers/       #            main.yml    # start apache2    php/                # php role        tasks/          #             main.yml    # installing php and restart apache2    db/                 # db role        tasks/          #            main.yml    # install mysql and include harden.yml harden.yml # ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Implementing DevOps with Ansible 2

Implementing DevOps with Ansible 2

Jonathan McAllister
Practical Ansible 2

Practical Ansible 2

Daniel Oh, James Freeman, Fabio Alessandro Locati

Publisher Resources

ISBN: 9781788394512Supplemental Content