backup_server: Move bitbucket backup to own role
This commit is contained in:
parent
0d72e9e920
commit
1520f8dabf
2 changed files with 1 additions and 79 deletions
|
@ -1,11 +1,8 @@
|
|||
---
|
||||
- name: Install packages
|
||||
ansible.builtin.package:
|
||||
name: "{{ item }}"
|
||||
name: rclone
|
||||
state: installed
|
||||
with_items:
|
||||
- git
|
||||
- rclone
|
||||
|
||||
- name: Create backup group
|
||||
ansible.builtin.group:
|
||||
|
@ -38,27 +35,3 @@
|
|||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
follow: false
|
||||
|
||||
- name: Create Bitbucket backup directory
|
||||
ansible.builtin.file:
|
||||
path: /export/backup/bitbucket.org
|
||||
state: directory
|
||||
mode: "0775"
|
||||
owner: root
|
||||
group: backup
|
||||
|
||||
- name: Install Bitbucket backup script
|
||||
ansible.builtin.copy:
|
||||
dest: /usr/local/sbin/backup-bitbucket
|
||||
src: backup-bitbucket.py
|
||||
mode: "0755"
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
|
||||
- name: Add Bitbucket backup cron job
|
||||
ansible.builtin.cron:
|
||||
name: bitbucket-backup
|
||||
job: /usr/local/sbin/backup-bitbucket
|
||||
hour: "03"
|
||||
minute: "10"
|
||||
user: backup
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue