src= parameters for template and copy operations can be relative to the playbook (for /usr/bin/ansible-playbook) or current directory (for /usr/bin/ansible)

This commit is contained in:
Michael DeHaan
2012-03-06 21:13:50 -05:00
parent 7eedc3fb1a
commit 8e20ed3714
3 changed files with 13 additions and 6 deletions

View File

@@ -6,8 +6,8 @@
max_clients: 200
tasks:
- include: base.yml favcolor=blue
- name: write the apache config file using vars set above
action: template src=/srv/httpd.j2 dest=/etc/httpd.conf
- name: write the foo config file using vars set above
action: template src=foo.j2 dest=/etc/some_random_foo.conf
notify:
- restart apache
- name: ensure apache is running