Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
Infrastructure
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
EIT-SWE
Infrastructure
Commits
1467fe85
Commit
1467fe85
authored
Nov 02, 2017
by
Stephen Seltzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates sudo_user to become
parent
d27c0dd4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
13 deletions
+21
-13
roles/activemq/tasks/main.yml
roles/activemq/tasks/main.yml
+17
-9
roles/postgresql_instance/tasks/main.yml
roles/postgresql_instance/tasks/main.yml
+4
-4
No files found.
roles/activemq/tasks/main.yml
View file @
1467fe85
...
...
@@ -76,15 +76,23 @@
-
name
:
make sure activemq is started
service
:
name="{{ activemq_service_name }}" state="started"
-
name
:
update facts file
lineinfile
:
"
dest='/etc/ansible/facts.d/build_vars.fact'
create=true
regexp='[activemq]'
line='[activemq]'"
-
lineinfile
:
"
dest='/etc/ansible/facts.d/build_vars.fact'
regexp='activemq_version'
line='activemq_version={{
activemq_version
}}'"
-
lineinfile
:
"
dest='/etc/ansible/facts.d/build_vars.fact'
regexp='activemq_name'
line='activemq_name={{
activemq_name
}}'"
-
lineinfile
:
"
dest='/etc/ansible/facts.d/build_vars.fact'
regexp='activemq_group'
line='activemq_group={{
activemq_group
}}'"
-
lineinfile
:
"
dest='/etc/ansible/facts.d/build_vars.fact'
regexp='activemq_service_name'
line='activemq_service_name={{
activemq_service_name
}}'"
-
lineinfile
:
"
dest='/etc/ansible/facts.d/build_vars.fact'
regexp='activemq_inst_directory'
line='activemq_inst_directory={{
activemq_inst_directory
}}'"
-
lineinfile
:
"
dest='/etc/ansible/facts.d/build_vars.fact'
regexp='activemq_home_directory'
line='activemq_home_directory={{
activemq_home_directory
}}'"
-
lineinfile
:
"
dest='/etc/ansible/facts.d/build_vars.fact'
regexp='activemq_rar_url'
line='activemq_rar_url={{
activemq_rar_url
}}'"
lineinfile
:
dest
:
/etc/ansible/facts.d/build_vars.fact
state
:
present
create
:
yes
mode
:
0600
regexp
:
"
{{
item.regexp
}}"
line
:
"
{{
item.line
}}"
with_items
:
-
{
regexp
:
'
[activemq]'
,
line
:
'
[activemq]'
}
-
{
regexp
:
'
activemq_version'
,
line
:
"
activemq_version={{
activemq_version
}}"
}
-
{
regexp
:
'
activemq_name'
,
line
:
"
activemq_name={{
activemq_name
}}"
}
-
{
regexp
:
'
activemq_group'
,
line
:
"
activemq_group={{
activemq_group
}}"
}
-
{
regexp
:
'
activemq_service_name'
,
line
:
"
activemq_service_name={{
activemq_service_name
}}"
}
-
{
regexp
:
'
activemq_inst_directory'
,
line
:
"
activemq_inst_directory={{
activemq_inst_directory
}}"
}
-
{
regexp
:
'
activemq_home_directory'
,
line
:
"
activemq_home_directory={{
activemq_home_directory
}}"
}
-
{
regexp
:
'
activemq_rar_url'
,
line
:
"
activemq_rar_url={{
activemq_rar_url
}}"
}
roles/postgresql_instance/tasks/main.yml
View file @
1467fe85
...
...
@@ -4,15 +4,15 @@
-
name
:
create the postgresql database
postgresql_db
:
name={{ db_name }}
encoding='UTF-8'
sudo_user
:
postgres
become
:
true
become_user
:
postgres
-
name
:
create the postgresql user
postgresql_user
:
name={{ db_user }} password={{ db_user_pw }}
sudo_user
:
postgres
-
name
:
create password file on vagrant box
become
:
true
become_user
:
postgres
-
name
:
create password file on vagrant box
lineinfile
:
dest
:
~/.pgpass
state
:
present
...
...
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