|
|
@ -194,8 +194,8 @@ but it is easily handled with a minimum of syntax in an Ansible Playbook::
|
|
|
|
- "vars/common.yml"
|
|
|
|
- "vars/common.yml"
|
|
|
|
- [ "vars/{{ ansible_os_family }}.yml", "vars/os_defaults.yml" ]
|
|
|
|
- [ "vars/{{ ansible_os_family }}.yml", "vars/os_defaults.yml" ]
|
|
|
|
tasks:
|
|
|
|
tasks:
|
|
|
|
- name: make sure apache is running
|
|
|
|
- name: make sure apache is started
|
|
|
|
service: name={{ apache }} state=running
|
|
|
|
service: name={{ apache }} state=started
|
|
|
|
|
|
|
|
|
|
|
|
.. note::
|
|
|
|
.. note::
|
|
|
|
The variable 'ansible_os_family' is being interpolated into
|
|
|
|
The variable 'ansible_os_family' is being interpolated into
|
|
|
@ -320,4 +320,3 @@ You may check the registered variable's string contents for emptiness::
|
|
|
|
Have a question? Stop by the google group!
|
|
|
|
Have a question? Stop by the google group!
|
|
|
|
`irc.freenode.net <http://irc.freenode.net>`_
|
|
|
|
`irc.freenode.net <http://irc.freenode.net>`_
|
|
|
|
#ansible IRC chat channel
|
|
|
|
#ansible IRC chat channel
|
|
|
|
|
|
|
|
|
|
|
|