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:
parent
8d20d2d7f4
commit
bc50600eb8
2 changed files with 15 additions and 6 deletions
|
@ -70,3 +70,8 @@
|
|||
password: "{{ lookup('keepass', 'fileserver_smb_user_brother_ads2700w', 'password') }}"
|
||||
- name: 'photoprism'
|
||||
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
|
||||
|
|
|
@ -1,10 +1,14 @@
|
|||
---
|
||||
- name: install packages
|
||||
become: true
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- rclone
|
||||
state: present
|
||||
- name: Check if rclone is installed
|
||||
command: which rclone
|
||||
changed_when: false
|
||||
failed_when: rclone_installed.rc not in [0,1]
|
||||
register: rclone_installed
|
||||
|
||||
- name: Install rclone first!
|
||||
fail:
|
||||
msg: "rclone is not installed, install it first"
|
||||
when: rclone_installed.rc not in [ 0 ]
|
||||
|
||||
- name: Create rclone Directory
|
||||
become: true
|
||||
|
|
Loading…
Reference in a new issue