hidden:Plays and playbooks: Difference between revisions

From Lsdf
Jump to navigationJump to search
mNo edit summary
mNo edit summary
Line 8: Line 8:
roles/
roles/
common/
common/
default/
defaults/
main.yml
tasks/
tasks/
main.yml
main.yml
autofs/
gcc.yml
ntp.yml
rsyslog.yml
stop_unneeded_procs.yml
autofs/
tasks/
main.yml
hpss/
hpss/

Revision as of 22:22, 7 July 2016

The Ansible layout on hpa uses Ansible roles to group tasks and host functions. The tasks are grouped in each main.yml file in the roles directory:

 Ansible/roles/<function>/task/main.yml

The common role has tasks for setting up ntp, gcc and rsyslog. The directory structure is currently

 Ansible/
         roles/
               common/
                     defaults/
                                                          
                     tasks/
                           main.yml
                           gcc.yml
                           ntp.yml
                           rsyslog.yml
                           stop_unneeded_procs.yml
                autofs/
                     tasks/
                          main.yml
               hpss/