Difference between revisions of "hidden:Plays and playbooks"

From Lsdf
m
m
 
Line 7: Line 7:
 
Ansible/
 
Ansible/
 
roles/
 
roles/
common/
+
autofs/
defaults/
 
 
tasks/
 
main.yml
 
gcc.yml
 
ntp.yml
 
rsyslog.yml
 
stop_unneeded_procs.yml
 
autofs/
 
 
tasks/
 
tasks/
 
main.yml
 
main.yml
  +
common/
  +
defaults/
  +
tasks/
  +
main.yml
  +
gcc.yml
  +
ntp.yml
  +
rsyslog.yml
  +
stop_unneeded_procs.yml
  +
db/
  +
etc_hosts/
  +
tasks/
  +
main.yml
 
hpss/
 
hpss/

Latest revision as of 19:16, 29 November 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/
               autofs/
                     tasks/
                          main.yml
               common/
                    defaults/                                          
                    tasks/
                          main.yml
                          gcc.yml
                          ntp.yml
                          rsyslog.yml
                          stop_unneeded_procs.yml
               db/
               etc_hosts/
                         tasks/
                               main.yml
               hpss/