backupuser
This commit is contained in:
parent
7e71ede2e5
commit
35503d6cbd
@ -6,4 +6,5 @@
|
|||||||
- common
|
- common
|
||||||
- internalsmtp
|
- internalsmtp
|
||||||
- backupscript
|
- backupscript
|
||||||
|
- backuphost
|
||||||
...
|
...
|
||||||
|
14
roles/backuphost/tasks/main.yaml
Normal file
14
roles/backuphost/tasks/main.yaml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
- name: "Add backup user"
|
||||||
|
ansible.builtin.user:
|
||||||
|
name: backup
|
||||||
|
comment: Backup user
|
||||||
|
shell: /bin/bash
|
||||||
|
|
||||||
|
- name: "Dsiable service user"
|
||||||
|
ansible.builtin.user:
|
||||||
|
name: service-user
|
||||||
|
state: present
|
||||||
|
password_lock: true
|
||||||
|
shell: "/sbin/nologin"
|
||||||
|
...
|
Loading…
Reference in New Issue
Block a user