summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMichael DeHaan <michael@ansibleworks.com>2013-05-05 19:41:21 +0200
committerMichael DeHaan <michael@ansibleworks.com>2013-05-05 19:41:21 +0200
commit12755b89611981741f103960f5c3ed7e466d2c66 (patch)
tree65c97c5ae875ba1484bfefe3f5521c8ccd6ce9c8 /examples
parentupdate netscaler example (diff)
downloadansible-12755b89611981741f103960f5c3ed7e466d2c66.tar.xz
ansible-12755b89611981741f103960f5c3ed7e466d2c66.zip
Update postgres and prompts examples.
Diffstat (limited to 'examples')
-rw-r--r--examples/playbooks/postgresql.yml8
-rw-r--r--examples/playbooks/prompts.yml6
2 files changed, 7 insertions, 7 deletions
diff --git a/examples/playbooks/postgresql.yml b/examples/playbooks/postgresql.yml
index 8f79ccb80a..cb763bff9a 100644
--- a/examples/playbooks/postgresql.yml
+++ b/examples/playbooks/postgresql.yml
@@ -14,7 +14,7 @@
- name: ensure apt cache is up to date
action: apt update_cache=yes
- name: ensure packages are installed
- action: apt pkg=$item
+ action: apt name={{item}}
with_items:
- postgresql
- libpq-dev
@@ -32,10 +32,10 @@
tasks:
- name: ensure database is created
- action: postgresql_db db=$dbname
+ action: postgresql_db db={{dbname}}
- name: ensure user has access to database
- action: postgresql_user db=$dbname user=$dbuser password=$dbpassword priv=ALL
+ action: postgresql_user db={{dbname}} user={{dbuser}} password={{dbpassword}} priv=ALL
- name: ensure user does not have unnecessary privilege
- action: postgresql_user user=$dbuser role_attr_flags=NOSUPERUSER,NOCREATEDB \ No newline at end of file
+ action: postgresql_user user={{dbuser}} role_attr_flags=NOSUPERUSER,NOCREATEDB
diff --git a/examples/playbooks/prompts.yml b/examples/playbooks/prompts.yml
index 564061ae12..6016eaad1d 100644
--- a/examples/playbooks/prompts.yml
+++ b/examples/playbooks/prompts.yml
@@ -49,11 +49,11 @@
tasks:
- - name: imagine this did something interesting with $release_version
- action: shell echo foo >> /tmp/$release_version-alpha
+ - name: imagine this did something interesting with {{release_version}}
+ action: shell echo foo >> /tmp/{{release_version}}-alpha
- name: look we crypted a password
- action: shell echo my password is $my_password2
+ action: shell echo my password is {{my_password2}}