2012-07-20 12:57:15 +02:00
|
|
|
---
|
|
|
|
- hosts: webservers
|
|
|
|
vars:
|
|
|
|
- jquery_directory: /var/www/html/javascript
|
|
|
|
- person: 'Susie%20Smith'
|
|
|
|
tasks:
|
|
|
|
- name: Create directory for jQuery
|
2013-05-05 19:36:28 +02:00
|
|
|
action: file dest={{jquery_directory}} state=directory mode=0755
|
2012-07-20 12:57:15 +02:00
|
|
|
- name: Grab a bunch of jQuery stuff
|
2013-05-05 19:36:28 +02:00
|
|
|
action: get_url url=http://code.jquery.com/{{item}} dest={{jquery_directory}} mode=0444
|
2012-07-20 12:57:15 +02:00
|
|
|
with_items:
|
|
|
|
- jquery.min.js
|
|
|
|
- mobile/latest/jquery.mobile.min.js
|
|
|
|
- ui/jquery-ui-git.css
|
2012-07-22 17:08:16 +02:00
|
|
|
#- name: Pass urlencoded name to CGI
|
2013-05-05 19:36:28 +02:00
|
|
|
# action: get_url url=http://example.com/name.cgi?name='{{person}}' dest=/tmp/test
|