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
|
- name: Create group
|
||||||
ansible.builtin.group:
|
ansible.builtin.group:
|
||||||
name: mongod
|
name: mongod
|
||||||
gid: 1006
|
gid: 302
|
||||||
|
|
||||||
- name: Create user
|
- name: Create user
|
||||||
ansible.builtin.user:
|
ansible.builtin.user:
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
group: mongod
|
group: mongod
|
||||||
home: /var/empty
|
home: /var/empty
|
||||||
shell: /sbin/nologin
|
shell: /sbin/nologin
|
||||||
uid: 1006
|
uid: 302
|
||||||
|
|
||||||
- name: Enable repository
|
- name: Enable repository
|
||||||
ansible.builtin.yum_repository:
|
ansible.builtin.yum_repository:
|
||||||
|
@ -70,7 +70,7 @@
|
||||||
mode: 0640
|
mode: 0640
|
||||||
owner: root
|
owner: root
|
||||||
group: mongod
|
group: mongod
|
||||||
notify: restart mongod
|
notify: Restart mongod
|
||||||
|
|
||||||
- name: Configure logrotate
|
- name: Configure logrotate
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
|
@ -88,7 +88,7 @@
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: root
|
owner: root
|
||||||
group: "{{ ansible_wheel }}"
|
group: "{{ ansible_wheel }}"
|
||||||
notify: restart mongod
|
notify: Restart mongod
|
||||||
|
|
||||||
- name: Create configuration
|
- name: Create configuration
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
|
@ -97,7 +97,7 @@
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: root
|
owner: root
|
||||||
group: "{{ ansible_wheel }}"
|
group: "{{ ansible_wheel }}"
|
||||||
notify: restart mongod
|
notify: Restart mongod
|
||||||
|
|
||||||
- name: Enable service
|
- name: Enable service
|
||||||
ansible.builtin.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
|
id user group notes
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
301 influxdb influxdb
|
301 influxdb influxdb
|
||||||
|
302 mongod mongod
|
||||||
1001 mirror mirror
|
1001 mirror mirror
|
||||||
1002 certbot certbot
|
1002 certbot certbot
|
||||||
1003 collab collab
|
1003 collab collab
|
||||||
1004 docker docker docker registry
|
1004 docker docker docker registry
|
||||||
1005 backup backup
|
1005 backup backup
|
||||||
1006 mongod mongod
|
|
||||||
1007 minecraft minecraft
|
1007 minecraft minecraft
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue