fix typo
This commit is contained in:
parent
3d6f3da5c3
commit
2dfcea0368
33
playbooks/gitea.yml
Normal file
33
playbooks/gitea.yml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
---
|
||||||
|
- hosts: all
|
||||||
|
become: yes
|
||||||
|
vars:
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: "Install dependencies"
|
||||||
|
apt:
|
||||||
|
name:
|
||||||
|
- postgresql
|
||||||
|
- redis-server
|
||||||
|
- golang
|
||||||
|
state: latest
|
||||||
|
|
||||||
|
- name: "Create backup repository"
|
||||||
|
ansible.builtin.command: borg init -e {{ borg_repo_encryption }} {{ borg_repo_path }}
|
||||||
|
args:
|
||||||
|
creates: "{{ borg_repo_path }}"
|
||||||
|
|
||||||
|
- name: "Configure backup script"
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: ../templates/borgbackup.j2
|
||||||
|
dest: "{{ borg_script_install_path }}"
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: '744'
|
||||||
|
|
||||||
|
- name: "Configure cronjob"
|
||||||
|
ansible.builtin.cron:
|
||||||
|
name: "Borg backup"
|
||||||
|
minute: "0"
|
||||||
|
hour: "1"
|
||||||
|
job: "{{ borg_script_install_path }}"
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
- name: "Fix sysctl file"
|
- name: "Fix sysctl file"
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: ../config/sysctl.conf
|
src: ../templates/sysctl.conf
|
||||||
dest: /etc/sysctl.conf
|
dest: /etc/sysctl.conf
|
||||||
owner: "root"
|
owner: "root"
|
||||||
group: "root"
|
group: "root"
|
||||||
|
Loading…
Reference in New Issue
Block a user