Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
ansible
/
common-playbook
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2ef705ea
authored
Feb 11, 2018
by
ansible
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
1 parent
ca11945d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
32 deletions
roles/user/tasks/apimanager.yml
roles/user/tasks/dma.yml
roles/user/tasks/apimanager.yml
View file @
2ef705e
...
...
@@ -6,9 +6,6 @@
with_items
:
-
{
gid
:
1010
,
name
:
wdview
}
-
{
gid
:
1001
,
name
:
wdadmin
}
-
{
gid
:
996
,
name
:
nginx
}
-
{
gid
:
999
,
name
:
wildfly
}
-
{
gid
:
998
,
name
:
postgres
}
-
name
:
Create Users
user
:
uid
:
"
{{
item.uid
}}"
...
...
@@ -18,18 +15,8 @@
shell
:
"
{{
item.shell
}}"
system
:
"
{{
item.system
}}"
createhome
:
"
{{
item.crehome
}}"
state
:
present
with_items
:
-
{
uid
:
1010
,
name
:
wdview
,
crehome
:
yes
,
system
:
no
,
shell
:
/bin/bash
,
path
:
/home/wdview
}
-
{
uid
:
1001
,
name
:
wdadmin
,
crehome
:
yes
,
system
:
no
,
shell
:
/bin/bash
,
path
:
/home/wdadmin
}
-
{
uid
:
999
,
name
:
wildfly
,
crehome
:
no
,
system
:
yes
,
shell
:
/bin/bash
,
path
:
no
}
-
{
uid
:
996
,
name
:
nginx
,
crehome
:
no
,
system
:
yes
,
shell
:
/usr/sbin/nologin
,
path
:
no
}
-
{
uid
:
998
,
name
:
postgres
,
crehome
:
no
,
system
:
yes
,
shell
:
/bin/bash
,
path
:
no
}
-
name
:
Allow 'wildfly' group to have passwordless sudo
lineinfile
:
dest
:
/etc/sudoers
state
:
present
regexp
:
'
^%wildfly'
line
:
'
%wildfly
ALL=(ALL)
NOPASSWD:
ALL'
validate
:
'
visudo
-cf
%s'
roles/user/tasks/dma.yml
View file @
2ef705e
...
...
@@ -7,11 +7,6 @@
-
{
gid
:
1010
,
name
:
wdview
}
-
{
gid
:
1001
,
name
:
wdadmin
}
-
{
gid
:
1009
,
name
:
wdftp
}
-
{
gid
:
996
,
name
:
nginx
}
-
{
gid
:
999
,
name
:
wildfly
}
-
{
gid
:
998
,
name
:
postgres
}
-
{
gid
:
997
,
name
:
mongodb
}
-
{
gid
:
995
,
name
:
mosquitto
}
-
name
:
Create Users
user
:
uid
:
"
{{
item.uid
}}"
...
...
@@ -21,21 +16,9 @@
shell
:
"
{{
item.shell
}}"
system
:
"
{{
item.system
}}"
createhome
:
"
{{
item.crehome
}}"
state
:
present
with_items
:
-
{
uid
:
1010
,
name
:
wdview
,
crehome
:
yes
,
system
:
no
,
shell
:
/bin/bash
,
path
:
/home/wdview
}
-
{
uid
:
1001
,
name
:
wdadmin
,
crehome
:
yes
,
system
:
no
,
shell
:
/bin/bash
,
path
:
/home/wdadmin
}
-
{
uid
:
999
,
name
:
wildfly
,
crehome
:
no
,
system
:
yes
,
shell
:
/bin/bash
,
path
:
/opt/stack/wildfly
}
-
{
uid
:
1009
,
name
:
wdftp
,
crehome
:
yes
,
system
:
no
,
shell
:
/usr/sbin/nologin
,
path
:
/archive
}
-
{
uid
:
996
,
name
:
nginx
,
crehome
:
no
,
system
:
yes
,
shell
:
/usr/sbin/nologin
,
path
:
/opt/stack/nginx
}
-
{
uid
:
998
,
name
:
postgres
,
crehome
:
no
,
system
:
yes
,
shell
:
/bin/bash
,
path
:
/opt/stack/postgres
}
-
{
uid
:
997
,
name
:
mongodb
,
crehome
:
no
,
system
:
yes
,
shell
:
/bin/bash
,
path
:
/opt/stack/mongodb
}
-
{
uid
:
995
,
name
:
mosquitto
,
crehome
:
no
,
system
:
yes
,
shell
:
/bin/bash
,
path
:
/opt/stack/mqtt
}
-
name
:
Allow 'wildfly' group to have passwordless sudo
lineinfile
:
dest
:
/etc/sudoers
state
:
present
regexp
:
'
^%wildfly'
line
:
'
%wildfly
ALL=(ALL)
NOPASSWD:
ALL'
validate
:
'
visudo
-cf
%s'
Write
Preview
Markdown
is supported
Attach a file
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 post a comment