From 2dfcea0368085a3fb9693f5cdb3b1090963aff22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomislav=20Kopi=C4=87?= Date: Mon, 19 Feb 2024 22:13:44 +0100 Subject: [PATCH] fix typo --- playbooks/gitea.yml | 33 +++++++++++++++++++++++++++++++++ playbooks/upgrade_all_hosts.yml | 2 +- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 playbooks/gitea.yml diff --git a/playbooks/gitea.yml b/playbooks/gitea.yml new file mode 100644 index 0000000..ed1a069 --- /dev/null +++ b/playbooks/gitea.yml @@ -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 }}" diff --git a/playbooks/upgrade_all_hosts.yml b/playbooks/upgrade_all_hosts.yml index 358e642..c5e7433 100644 --- a/playbooks/upgrade_all_hosts.yml +++ b/playbooks/upgrade_all_hosts.yml @@ -17,7 +17,7 @@ - name: "Fix sysctl file" ansible.builtin.copy: - src: ../config/sysctl.conf + src: ../templates/sysctl.conf dest: /etc/sysctl.conf owner: "root" group: "root"