Ansible Directory Layout

Review possible Ansible directory layouts.

When to create a repository#

  1. Per team

    • SRE
    • Infrastructure
    • Network
  2. Per application and or platform

    • Redis
    • Navigation
    • Database

The reason being, they have different workflows.

Following are the possible layouts for an Ansible directory:

Basic#

Review the basic layout below:

Basic

Alternate#

Review the alternate layout below:

Alternate

Multistage#

Review the multistage layout below:

Multistage

The highlighted lines represent the following:

  • Line-3: symbolic link, shares variable across all environments
  • Line-10: env specific variables

Both 000_cross_env_vars and env_specific are provided to the hosts via the all group.

Summary
Final Remarks
Mark as Completed
Report an Issue