Skip to Content
Linux Administration Cookbook
book

Linux Administration Cookbook

by Adam K. Dean
December 2018
Beginner
826 pages
22h 54m
English
Packt Publishing
Content preview from Linux Administration Cookbook

There's more...

It might seem like overkill to put together a playbook for the sake of one role, but the beauty of playbooks is that they're not bound to one role. You can include as many as you want in the list within the playbook.yml file, and, as long as they don't conflict with each other, you should have a very smooth Ansible experience.

Take a look at this playbook.yml file instead:

$ cat <<HERE > playbook.yml---- hosts: all  roles:  - geerlingguy.java  - geerlingguy.docker  - geerlingguy.apacheHERE

We also used galaxy in a very specific way, using ansible-galaxy to install the role from the internet first. You could also include a requirements.yml file with your code, which ansible-galaxy is able to read so that it might download any listed ...

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

Practical Linux Security Cookbook - Second Edition

Practical Linux Security Cookbook - Second Edition

Tajinder Kalsi
Mastering Linux Administration

Mastering Linux Administration

Alexandru Calcatinge, Julian Balog

Publisher Resources

ISBN: 9781789342529Supplemental Content