From 37392a256edf1041bc291fb04ce6e981b790fed0 Mon Sep 17 00:00:00 2001 From: KemoNine Date: Tue, 4 Aug 2020 19:14:20 +0000 Subject: [PATCH] Tweak ansible wireguard playbook, add basic software update playbook --- ansible/playbooks/update-software.yml | 16 ++++++++++++++++ ansible/playbooks/wireguard.yml | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 ansible/playbooks/update-software.yml diff --git a/ansible/playbooks/update-software.yml b/ansible/playbooks/update-software.yml new file mode 100644 index 0000000..a29c7eb --- /dev/null +++ b/ansible/playbooks/update-software.yml @@ -0,0 +1,16 @@ +--- + - hosts: all + become: yes + tasks: + - name: Refresh package list + apt: + cache_valid_time: 3600 + - name: Update installed packages + apt: + upgrade: dist + - name: Update restic + command: restic self-update + - name: /usr/bin/rclone rclone + shell: curl https://rclone.org/install.sh | bash + - name: Update FileBrowser + shell: curl -fsSL https://filebrowser.org/get.sh | bash diff --git a/ansible/playbooks/wireguard.yml b/ansible/playbooks/wireguard.yml index 2cde579..474b218 100644 --- a/ansible/playbooks/wireguard.yml +++ b/ansible/playbooks/wireguard.yml @@ -1,5 +1,5 @@ --- -- hosts: controller +- hosts: all become: yes roles: - wireguard