backup_base: Rename role
This commit is contained in:
parent
6dd5cfa681
commit
195d9c3b03
1 changed files with 0 additions and 5 deletions
32
roles/backup_base/tasks/main.yml
Normal file
32
roles/backup_base/tasks/main.yml
Normal file
|
@ -0,0 +1,32 @@
|
|||
---
|
||||
- name: Create backup group
|
||||
ansible.builtin.group:
|
||||
name: backup
|
||||
gid: 306
|
||||
|
||||
- name: Create backup user
|
||||
ansible.builtin.user:
|
||||
name: backup
|
||||
comment: Backup Service
|
||||
createhome: false
|
||||
group: backup
|
||||
home: /var/empty
|
||||
shell: /bin/sh
|
||||
uid: 306
|
||||
|
||||
- name: Create backup directory
|
||||
ansible.builtin.file:
|
||||
path: /export/backup
|
||||
state: directory
|
||||
mode: "0770"
|
||||
owner: root
|
||||
group: backup
|
||||
|
||||
- name: Link backup directory
|
||||
ansible.builtin.file:
|
||||
dest: /srv/backup
|
||||
src: /export/backup
|
||||
state: link
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
follow: false
|
Loading…
Add table
Add a link
Reference in a new issue