Commit 08068da1 by ansible

no message

1 parent 574b5ebb
......@@ -6,7 +6,10 @@
with_items:
- { 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: 1011, name: wso2 }
- name: Create Users
user:
uid: "{{ item.uid }}"
......@@ -20,5 +23,16 @@
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: 1009, name: wdftp, crehome: yes, system: no, shell: /usr/sbin/nologin, path: /archive }
- { uid: 999, name: wildfly, crehome: no, system: yes, shell: /bin/bash, path: /home/wildfly }
- { uid: 996, name: nginx, crehome: no, system: yes, shell: /usr/sbin/nologin, path: /home/nginx }
- { uid: 998, name: postgres, crehome: no, system: yes, shell: /bin/bash, path: /home/postgres }
- { uid: 1011, name: wso2, crehome: no, system: yes, shell: /bin/bash, path: /home/wso2 }
- 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'
......@@ -9,7 +9,7 @@
- { gid: 996, name: nginx }
- { gid: 999, name: wildfly }
- { gid: 998, name: postgres }
- { gid: 1011, name: wso2 }
- name: Create Users
user:
uid: "{{ item.uid }}"
......@@ -26,10 +26,9 @@
- { uid: 999, name: wildfly, crehome: no, system: yes, shell: /bin/bash, path: /home/wildfly }
- { uid: 996, name: nginx, crehome: no, system: yes, shell: /usr/sbin/nologin, path: /home/nginx }
- { uid: 998, name: postgres, crehome: no, system: yes, shell: /bin/bash, path: /home/postgres }
- { uid: 1011, name: wso2, crehome: no, system: yes, shell: /bin/bash, path: /home/wso2 }
- name: Allow 'wildfly' group to have passwordless sudo
lineinfile:
- name: Allow 'wildfly' group to have passwordless sudo
lineinfile:
dest: /etc/sudoers
state: present
regexp: '^%wildfly'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!