Skip to content

Latest commit

Β 

History

History
102 lines (98 loc) Β· 3.65 KB

File metadata and controls

102 lines (98 loc) Β· 3.65 KB

Folder Structure

Ansible best practices document

The following is a snippet to help understand the folder structure and how we are using it.
We have playbooks and roles, and each are at the top level under ansible/.

You will notice symlinks to roles in each playbook

└── ansible
    β”œβ”€β”€ LICENCE.txt
    β”œβ”€β”€ README.md
    β”œβ”€β”€ ansible.cfg
    β”œβ”€β”€ common-service-play
    β”‚Β Β  β”œβ”€β”€ Jenkinsfile
    β”‚Β Β  β”œβ”€β”€ README.md
    β”‚Β Β  β”œβ”€β”€ common-services.yml
    β”‚Β Β  β”œβ”€β”€ ansible.cfg
    β”‚Β Β  β”œβ”€β”€ examples
    β”‚Β Β  β”‚Β Β  β”œβ”€β”€ cs_vars.yml
    β”‚Β Β  β”‚Β Β  └── inventory
    β”‚Β Β  └── roles -> ../roles
    β”œβ”€β”€ recover-expired-certificates-play
    β”‚Β Β  β”œβ”€β”€ Jenkinsfile
    β”‚Β Β  β”œβ”€β”€ readme.md
    β”‚Β Β  β”œβ”€β”€ recover-expired-certificates-play.yml
    β”‚Β Β  └── roles -> ../roles
    β”œβ”€β”€ recover-machine-config-play
    β”‚Β Β  β”œβ”€β”€ Jenkinsfile
    β”‚Β Β  β”œβ”€β”€ readme.md
    β”‚Β Β  β”œβ”€β”€ recover-machine-config-play.yml
    β”‚Β Β  └── roles -> ../roles
    β”œβ”€β”€ request-ocp-aws-play
    β”‚Β Β  └── roles -> ../roles
    β”œβ”€β”€ request-ocp-fyre-play
    β”‚Β Β  └── roles -> ../roles
    β”œβ”€β”€ request-crc-fyre-play
    β”‚Β Β  └── roles -> ../roles
    β”œβ”€β”€ request-ocp-roks-play
    β”‚Β Β  └── roles -> ../roles
    └── roles
        β”œβ”€β”€ common_services
        β”‚Β Β  β”œβ”€β”€ README.md
        β”‚Β Β  β”œβ”€β”€ defaults
        β”‚Β Β  β”‚Β Β  └── main.yml
        β”‚Β Β  β”œβ”€β”€ tasks
        β”‚Β Β  β”‚Β Β  └── main.yml
        β”‚Β Β  └── templates
        β”‚Β Β      β”œβ”€β”€ cs-group.yaml.j2
        β”‚Β Β      β”œβ”€β”€ cs-request.yaml.j2
        β”‚Β Β      β”œβ”€β”€ cs-sub.yaml.j2
        β”‚Β Β      β”œβ”€β”€ cs-validation.bash.j2
        β”‚Β Β      └── opencloud-source.yaml.j2
        β”œβ”€β”€ ocp_login
        β”‚Β Β  └── tasks
        β”‚Β Β      β”œβ”€β”€ main.yml
        β”‚Β Β      └── ocp_login.yml
        β”œβ”€β”€ recover_expired_certificates
        β”‚Β Β  β”œβ”€β”€ defaults
        β”‚Β Β  β”‚Β Β  └── main.yml
        β”‚Β Β  β”œβ”€β”€ files
        β”‚Β Β  β”œβ”€β”€ meta
        β”‚Β Β  β”‚Β Β  └── main.yml
        β”‚Β Β  β”œβ”€β”€ tasks
        β”‚Β Β  β”‚Β Β  β”œβ”€β”€ main.yml
        β”‚Β Β  β”‚Β Β  └── recover-expired-certificates.yml
        β”‚Β Β  β”œβ”€β”€ templates
        β”‚Β Β  └── vars
        β”œβ”€β”€ recover_machine_config
        β”‚Β Β  β”œβ”€β”€ defaults
        β”‚Β Β  β”‚Β Β  └── main.yml
        β”‚Β Β  β”œβ”€β”€ files
        β”‚Β Β  β”œβ”€β”€ meta
        β”‚Β Β  β”‚Β Β  └── main.yml
        β”‚Β Β  β”œβ”€β”€ readme.md
        β”‚Β Β  β”œβ”€β”€ tasks
        β”‚Β Β  β”‚Β Β  β”œβ”€β”€ main.yml
        β”‚Β Β  β”‚Β Β  └── recover_machine_config.yml
        β”‚Β Β  β”œβ”€β”€ templates
        β”‚Β Β  └── vars
        β”œβ”€β”€ request_ocp_aws
        β”‚Β Β  β”œβ”€β”€ default
        β”‚Β Β  β”œβ”€β”€ readme.md
        β”‚Β Β  β”œβ”€β”€ tasks
        β”‚Β Β  └── templates
        β”œβ”€β”€ request_ocp_fyre
        β”‚Β Β  β”œβ”€β”€ defaults
        β”‚Β Β  β”œβ”€β”€ readme.md
        β”‚Β Β  β”œβ”€β”€ tasks
        β”‚Β Β  └── templates
        β”œβ”€β”€ jmeter
        β”œβ”€β”€ jmeter_fyrevm
        β”œβ”€β”€ jmeter_java
        β”œβ”€β”€ java
        β”œβ”€β”€ jmeter_prereqs
        └── request_ocp_roks
            β”œβ”€β”€ defaults
            β”œβ”€β”€ readme.md
            β”œβ”€β”€ tasks
            └── templates