Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
12755b89
Commit
12755b89
authored
May 05, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update postgres and prompts examples.
parent
6ae99cdc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
examples/playbooks/postgresql.yml
+4
-5
examples/playbooks/prompts.yml
+3
-3
No files found.
examples/playbooks/postgresql.yml
View file @
12755b89
...
...
@@ -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
examples/playbooks/prompts.yml
View file @
12755b89
...
...
@@ -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}}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment