Commit 12755b89 by Michael DeHaan

Update postgres and prompts examples.

parent 6ae99cdc
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
- name: ensure apt cache is up to date - name: ensure apt cache is up to date
action: apt update_cache=yes action: apt update_cache=yes
- name: ensure packages are installed - name: ensure packages are installed
action: apt pkg=$item action: apt name={{item}}
with_items: with_items:
- postgresql - postgresql
- libpq-dev - libpq-dev
...@@ -32,10 +32,10 @@ ...@@ -32,10 +32,10 @@
tasks: tasks:
- name: ensure database is created - name: ensure database is created
action: postgresql_db db=$dbname action: postgresql_db db={{dbname}}
- name: ensure user has access to database - 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 - name: ensure user does not have unnecessary privilege
action: postgresql_user user=$dbuser role_attr_flags=NOSUPERUSER,NOCREATEDB action: postgresql_user user={{dbuser}} role_attr_flags=NOSUPERUSER,NOCREATEDB
\ No newline at end of file
...@@ -49,11 +49,11 @@ ...@@ -49,11 +49,11 @@
tasks: tasks:
- name: imagine this did something interesting with $release_version - name: imagine this did something interesting with {{release_version}}
action: shell echo foo >> /tmp/$release_version-alpha action: shell echo foo >> /tmp/{{release_version}}-alpha
- name: look we crypted a password - name: look we crypted a password
action: shell echo my password is $my_password2 action: shell echo my password is {{my_password2}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment