From 00285bc31f7b316a285c30346ff1e8c81b02ccb6 Mon Sep 17 00:00:00 2001 From: Lars Weiler Date: Sun, 8 Feb 2026 00:24:08 +0100 Subject: [PATCH] fix: Several fixes and actual usage of variables --- .ansible-lint-ignore | 1 + roles/base/tasks/users.yml | 4 ++-- roles/build-50ohm/tasks/build.yml | 1 + roles/install-sources/tasks/main.yml | 6 ++++-- 4 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 .ansible-lint-ignore diff --git a/.ansible-lint-ignore b/.ansible-lint-ignore new file mode 100644 index 0000000..6ad4579 --- /dev/null +++ b/.ansible-lint-ignore @@ -0,0 +1 @@ +name[template] skip diff --git a/roles/base/tasks/users.yml b/roles/base/tasks/users.yml index f873571..446eb28 100644 --- a/roles/base/tasks/users.yml +++ b/roles/base/tasks/users.yml @@ -12,10 +12,10 @@ groups: - sudo state: present - loop: "{{ users | flatten(levels=1)}}" + loop: "{{ users | flatten(levels=1) }}" - name: Add SSH keys for users - ansible.builtin.authorized_key: + ansible.posix.authorized_key: user: "{{ item.name }}" state: present key: "{{ item.sshkeys }}" diff --git a/roles/build-50ohm/tasks/build.yml b/roles/build-50ohm/tasks/build.yml index 448a814..b580ef6 100644 --- a/roles/build-50ohm/tasks/build.yml +++ b/roles/build-50ohm/tasks/build.yml @@ -2,4 +2,5 @@ ansible.builtin.command: uv run python3 ./build.py args: chdir: "{{ destination_path }}/50ohm" + become: true become_user: "{{ fiftyohm_user }}" diff --git a/roles/install-sources/tasks/main.yml b/roles/install-sources/tasks/main.yml index ce14c97..41ec5bc 100644 --- a/roles/install-sources/tasks/main.yml +++ b/roles/install-sources/tasks/main.yml @@ -11,8 +11,9 @@ repo: https://github.com/DARC-e-V/50ohm.git dest: "{{ destination_path }}/50ohm" single_branch: true - version: refactor/migrate-from-directus-to-git + version: "{{ fiftyohm_branch }}" force: true + become: true become_user: "{{ fiftyohm_user }}" - name: Checkout 50ohm-contents-dl from https://github.com/DARC-e-V/50ohm-contents-dl to {{ destination_path }} @@ -20,7 +21,8 @@ repo: https://github.com/DARC-e-V/50ohm-contents-dl.git dest: "{{ destination_path }}/50ohm-contents-dl" single_branch: true - version: HEAD + version: "{{ fiftyohm_contents_dl_branch }}" + become: true become_user: "{{ fiftyohm_user }}" - name: Create {{ destination_path }}/50ohm/config/config.json