Add node001
This commit is contained in:
parent
e68f2f2cec
commit
822ec5fcb7
7 changed files with 69 additions and 16 deletions
roles/software/tasks
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue