mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
890 B
YAML
23 lines
890 B
YAML
13 years ago
|
---
|
||
13 years ago
|
|
||
|
# 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'
|
||
|
# or 'vars_files' directives. Further, if ohai or facter were installed on
|
||
|
# 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.
|
||
|
|
||
13 years ago
|
- name: no selinux
|
||
|
action: command /usr/sbin/setenforce 0
|
||
13 years ago
|
|
||
13 years ago
|
- name: no iptables
|
||
|
action: service name=iptables state=stopped
|
||
13 years ago
|
|
||
|
- name: made up task just to show variables work here
|
||
|
action: command /bin/echo release is {{ release }}
|
||
|
|