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:
Paul Belanger 2019-03-28 11:01:31 -04:00
parent 1bf6251c33
commit 21d2e102a9
1 changed files with 14 additions and 0 deletions

View File

@ -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: