2012-03-03 16:53:15 +01:00
|
|
|
---
|
2012-03-14 00:19:54 +01:00
|
|
|
|
|
|
|
# this is the example of an included tasks file. It contains a flat list of tasks
|
|
|
|
# they can notify other tasks, and have full access to variables from 'vars'
|
2012-08-07 02:00:31 +02:00
|
|
|
# or 'vars_files' directives. Further, if ohai or facter were installed on
|
2012-03-14 00:19:54 +01:00
|
|
|
# the remote machines, variables from those tools can be accessed on the 'action'
|
|
|
|
# line or in templates. Just prefix with 'facter_' or 'ohai_' before the particular
|
|
|
|
# variable.
|
|
|
|
|
|
|
|
# possible uses for a included yaml file might be to represent a 'class' of a system
|
|
|
|
# like defining what makes up a webserver, or you might have a common 'base.yml'
|
|
|
|
# (like this) that might be applied to all your systems as well.
|
|
|
|
|
2012-03-03 16:53:15 +01:00
|
|
|
- name: no selinux
|
|
|
|
action: command /usr/sbin/setenforce 0
|
2012-03-14 00:19:54 +01:00
|
|
|
|
2012-03-03 16:53:15 +01:00
|
|
|
- name: no iptables
|
|
|
|
action: service name=iptables state=stopped
|
2012-03-14 00:19:54 +01:00
|
|
|
|
|
|
|
- name: made up task just to show variables work here
|
2012-03-22 05:30:05 +01:00
|
|
|
action: command /bin/echo release is $release
|
2012-03-14 00:19:54 +01:00
|
|
|
|