Skip to content
This repository has been archived by the owner on Sep 14, 2024. It is now read-only.

This is an Ansible Template just to get started !

Notifications You must be signed in to change notification settings

cyrilghali/template-ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Layout

This is the layout recommended by Ansible in their Best Practice Guide

Here is the layout :

inventories/
   production/
      hosts               # inventory file for production servers
      group_vars/
         group1.yml       # here we assign variables to particular groups
         group2.yml
         group3/
            vars
            vault
      host_vars/
         hostname1.yml    # here we assign variables to particular systems
         hostname2.yml

   staging/
      hosts               # inventory file for staging environment
      group_vars/
         group1.yml       # here we assign variables to particular groups
         group2.yml
      host_vars/
         stagehost1.yml   # here we assign variables to particular systems
         stagehost2.yml

library/
module_utils/
filter_plugins/

site.yml
webservers.yml
dbservers.yml

roles/
    common/
    webtier/
    monitoring/
    fooapp/

Somes rules to keep it mind:

  1. Keep it simple
  2. Name your tasks.
  3. Use version control
  4. Use whitespace and comments with '#'

About

This is an Ansible Template just to get started !

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published