rclone: Install from Github instead with apt (#418)

Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: #418
This commit is contained in:
Michael Grote 2022-10-15 16:09:45 +02:00
parent 8d20d2d7f4
commit bc50600eb8
2 changed files with 15 additions and 6 deletions

View file

@ -70,3 +70,8 @@
password: "{{ lookup('keepass', 'fileserver_smb_user_brother_ads2700w', 'password') }}" password: "{{ lookup('keepass', 'fileserver_smb_user_brother_ads2700w', 'password') }}"
- name: 'photoprism' - name: 'photoprism'
password: "{{ lookup('keepass', 'fileserver_smb_user_photoprism', 'password') }}" password: "{{ lookup('keepass', 'fileserver_smb_user_photoprism', 'password') }}"
### mgrote.apt_manage_packages
apt_packages_internet:
- https://github.com/rclone/rclone/releases/download/v1.59.2/rclone-v1.59.2-linux-amd64.deb
- http://docker10.grote.lan:3344/bash-helper-scripts-mgrote/bash-helper-scripts-mgrote-latest.deb

View file

@ -1,10 +1,14 @@
--- ---
- name: install packages - name: Check if rclone is installed
become: true command: which rclone
ansible.builtin.apt: changed_when: false
name: failed_when: rclone_installed.rc not in [0,1]
- rclone register: rclone_installed
state: present
- name: Install rclone first!
fail:
msg: "rclone is not installed, install it first"
when: rclone_installed.rc not in [ 0 ]
- name: Create rclone Directory - name: Create rclone Directory
become: true become: true