Added zoneminder to aya01 (if I hadn't before)

Added backblaze (todo documentation)

Signed-off-by: TuDatTr <tuan-dat.tran@tudattr.dev>
This commit is contained in:
TuDatTr
2022-12-06 16:36:21 +01:00
parent 70083f2974
commit b371e246a9
16 changed files with 150 additions and 11 deletions

View File

@@ -0,0 +1,6 @@
---
- name: Loop over subelements of the dictionary
shell:
cmd: "rclone -vv sync {{ item.1 }} secret:{{ item.1 }}"
when: item.0.key == inventory_hostname
loop: "{{ backblaze_paths | dict2items | subelements('value') }}"

View File

@@ -0,0 +1,18 @@
---
- name: Create rclone config folder at "{{ rclone_config }}"
file:
path: "{{ rclone_config }}"
owner: '0'
group: '0'
mode: '700'
state: directory
become: true
- name: Copy rclone config to "{{ inventory_hostname }}"
template:
src: "templates/{{ inventory_hostname }}/rclone.conf"
dest: "{{ rclone_config }}/rclone.conf"
owner: '0'
group: '0'
mode: '400'
become: true

View File

@@ -0,0 +1,13 @@
---
- name: Update and upgrade packages
apt:
update_cache: yes
upgrade: yes
autoremove: yes
become: yes
- name: Install rclone
apt:
name: "rclone"
state: present
become: yes

View File

@@ -0,0 +1,5 @@
---
- include_tasks: install.yml
- include_tasks: config.yml
- include_tasks: backup.yml