Add node001

This commit is contained in:
Tobias Reisinger 2024-10-14 03:30:59 +02:00
parent e68f2f2cec
commit 822ec5fcb7
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
7 changed files with 69 additions and 16 deletions
roles/software/tasks

View file

@ -8,10 +8,33 @@
- name: Install docker
ansible.builtin.import_tasks: docker.yml
- name: Install jq
- name: Install jq and bzip2
apt:
pkg:
- jq
- bzip2
state: latest
update_cache: true
become: true
- 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