sync roles with changes from OWS

This commit is contained in:
Oli
2023-10-21 13:13:20 +00:00
parent e14271eab0
commit ccd75528ed
43 changed files with 479 additions and 107 deletions

View File

@@ -11,14 +11,25 @@
rclone_version
- name: "{{ rclone_version.content }}"
set_fact:
rclone_version: "{{ rclone_version.content | replace ('rclone v', '', 1) | trim }}"
rclone_version: "{{ rclone_version.content | replace('rclone v', '', 1) | trim }}"
run_once: true
- name: Download rclone {{ rclone_version }}
- name: Set architecture alias
set_fact:
architecture_alias: "amd64" # noqa: var-naming[no-role-prefix]
when: ansible_architecture == "x86_64"
- name: Set architecture alias
set_fact:
architecture_alias: "arm64" # noqa: var-naming[no-role-prefix]
when: ansible_architecture == "aarch64"
- name: "Download rclone from rclone.org (v{{ rclone_version }})"
get_url:
url: "https://downloads.rclone.org/v{{ rclone_version }}/\
rclone-v{{ rclone_version }}-linux-{{ deb_architecture }}.deb"
rclone-v{{ rclone_version }}-linux-{{ architecture_alias }}.deb"
dest: "/var/tmp/rclone.deb"
mode: "0644"
register: rclone_download_deb
until: rclone_download_deb is succeeded
retries: 3
@@ -60,7 +71,7 @@
home: /
register: rclone_created_user
- name: adding existing user {{ main_user }} to group rclone
- name: Add user to rclone group
user:
name: "{{ main_user }}"
groups: "{{ rclone_system_group }}"