hidden:Plays and playbooks: Difference between revisions

From Lsdf
Jump to navigationJump to search
(Created page with "The Ansible layout on hpa uses roles to group tasks and host functions. The tasks are grouped in each main.yml file in the roles directory: Ansible/roles/<function>/task/ma...")
 
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
The Ansible layout on hpa uses roles to group tasks and host functions. The tasks are grouped in each main.yml file in the roles directory:
The Ansible layout on hpa uses [http://docs.ansible.com/ansible/playbooks_roles.html 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
Ansible/roles/<function>/task/main.yml


The common role has tasks for setting up the automounter and rsyslog.
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/

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/