Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Ansible Quick Start Guide

You're reading from   Ansible Quick Start Guide Control and monitor infrastructures of any size, physical or virtual

Arrow left icon
Product type Paperback
Published in Sep 2018
Publisher Packt
ISBN-13 9781789532937
Length 214 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Mohamed Alibi Mohamed Alibi
Author Profile Icon Mohamed Alibi
Mohamed Alibi
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. What is Ansible? FREE CHAPTER 2. Ansible Setup and Configuration 3. Ansible Inventory and Playbook 4. Ansible Modules 5. Ansible Automated Infrastructure 6. Ansible Coding for Configuration Management 7. Ansible Galaxy and Community Roles 8. Ansible Advanced Features 9. Other Books You May Enjoy

Ansible configuration management coding standards


In this section, we are going to list several rules and methods to help with writing nice and clean playbooks in conformity with the Ansible norm. This is not a strict instruction to follow, but instead a representation of how Ansible developers and maintainers think it should be used. Following these norms does not just allow easier usage of playbooks, it also helps make it standard and understandable by the community members, therefore enabling better team collaboration.

Note

These standards are based on the experience of Ansible users and maintainers. Any individual user may use Ansible differently, in a way that would require a different set of rules.

Playbook and task naming

When making a playbook, using the name: field is optional. If you write a playbook with no name, it will work perfectly fine. The following is an example of a playbook that does not have a name:

---
- hosts: servers
  become: yes
  gather_facts: false
  tasks:
    - apt...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime