Set UID_MIN / GID_MIN to 3000
This is helpful to ensure as we create more windmill_users, they will use the range under 3000. But new services will be created above 3000. Change-Id: Ib40fdcc6d255cd66b4d95bd4fee9dd18c98fddd3 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
1bf6251c33
commit
21d2e102a9
|
@ -15,6 +15,20 @@
|
|||
- name: Include OS-specific variables
|
||||
include_vars: "{{ ansible_os_family | lower }}.yaml"
|
||||
|
||||
- name: Set minimum range for user IDs
|
||||
become: true
|
||||
lineinfile:
|
||||
path: /etc/login.defs
|
||||
regexp: "^UID_MIN"
|
||||
line: 'UID_MIN 3000'
|
||||
|
||||
- name: Set minimum range for group IDs
|
||||
become: true
|
||||
lineinfile:
|
||||
path: /etc/login.defs
|
||||
regexp: "^GID_MIN"
|
||||
line: 'GID_MIN 3000'
|
||||
|
||||
- name: Create windmill_users group
|
||||
become: true
|
||||
group:
|
||||
|
|
Loading…
Reference in New Issue