2024-10-08 20:01:54 +00:00
|
|
|
- name: Install aptitude
|
|
|
|
apt:
|
|
|
|
name: aptitude
|
|
|
|
state: latest
|
|
|
|
update_cache: true
|
|
|
|
become: true
|
|
|
|
|
|
|
|
- name: Install docker
|
|
|
|
ansible.builtin.import_tasks: docker.yml
|
|
|
|
|
2024-10-14 01:30:59 +00:00
|
|
|
- name: Install jq and bzip2
|
2024-10-08 20:01:54 +00:00
|
|
|
apt:
|
|
|
|
pkg:
|
|
|
|
- jq
|
2024-10-14 01:30:59 +00:00
|
|
|
- bzip2
|
2024-10-08 20:01:54 +00:00
|
|
|
state: latest
|
|
|
|
update_cache: true
|
|
|
|
become: true
|
2024-10-14 01:30:59 +00:00
|
|
|
|
|
|
|
- name: check if autorestic is installed
|
|
|
|
stat:
|
|
|
|
path: /usr/local/bin/autorestic
|
|
|
|
register: autorestic_status
|
|
|
|
|
|
|
|
- name: Install autorestic
|
|
|
|
when: not autorestic_status.stat.exists
|
|
|
|
shell: wget -qO - https://raw.githubusercontent.com/cupcakearmy/autorestic/master/install.sh | bash
|
|
|
|
args:
|
|
|
|
executable: /bin/bash
|
|
|
|
become: true
|
|
|
|
|
|
|
|
- name: check if restic is installed
|
|
|
|
stat:
|
|
|
|
path: /usr/local/bin/restic
|
|
|
|
register: restic_status
|
|
|
|
|
|
|
|
- name: Install restic
|
|
|
|
when: not restic_status.stat.exists
|
|
|
|
command: autorestic install
|
|
|
|
become: true
|