Move mongodb user UID
This commit is contained in:
parent
b8d83a7cb3
commit
3a76cd0c87
2 changed files with 6 additions and 6 deletions
|
@ -2,7 +2,7 @@
|
|||
- name: Create group
|
||||
ansible.builtin.group:
|
||||
name: mongod
|
||||
gid: 1006
|
||||
gid: 302
|
||||
|
||||
- name: Create user
|
||||
ansible.builtin.user:
|
||||
|
@ -12,7 +12,7 @@
|
|||
group: mongod
|
||||
home: /var/empty
|
||||
shell: /sbin/nologin
|
||||
uid: 1006
|
||||
uid: 302
|
||||
|
||||
- name: Enable repository
|
||||
ansible.builtin.yum_repository:
|
||||
|
@ -70,7 +70,7 @@
|
|||
mode: 0640
|
||||
owner: root
|
||||
group: mongod
|
||||
notify: restart mongod
|
||||
notify: Restart mongod
|
||||
|
||||
- name: Configure logrotate
|
||||
ansible.builtin.copy:
|
||||
|
@ -88,7 +88,7 @@
|
|||
mode: 0644
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
notify: restart mongod
|
||||
notify: Restart mongod
|
||||
|
||||
- name: Create configuration
|
||||
ansible.builtin.template:
|
||||
|
@ -97,7 +97,7 @@
|
|||
mode: 0644
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
notify: restart mongod
|
||||
notify: Restart mongod
|
||||
|
||||
- name: Enable service
|
||||
ansible.builtin.service:
|
||||
|
|
|
@ -7,10 +7,10 @@ entry empty. If only a group is created, leave the user entry empty.
|
|||
id user group notes
|
||||
-------------------------------------------------------------------------------
|
||||
301 influxdb influxdb
|
||||
302 mongod mongod
|
||||
1001 mirror mirror
|
||||
1002 certbot certbot
|
||||
1003 collab collab
|
||||
1004 docker docker docker registry
|
||||
1005 backup backup
|
||||
1006 mongod mongod
|
||||
1007 minecraft minecraft
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue