From 4454669c228fe7c13e7f22e5daa4d82f69fd963f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Wed, 29 Jul 2026 13:02:59 +0200 Subject: [PATCH] added setup pb for talk hpb with base plays --- .../setup_talk_with_hpb.yml | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 playbooks/linux/ubuntu-server/nextcloud_full_deployment/setup_talk_with_hpb.yml diff --git a/playbooks/linux/ubuntu-server/nextcloud_full_deployment/setup_talk_with_hpb.yml b/playbooks/linux/ubuntu-server/nextcloud_full_deployment/setup_talk_with_hpb.yml new file mode 100644 index 0000000..d10b03d --- /dev/null +++ b/playbooks/linux/ubuntu-server/nextcloud_full_deployment/setup_talk_with_hpb.yml @@ -0,0 +1,32 @@ +- name: Temporary workaround for sudo-rs + hosts: nextcloud_talk_hpb + gather_facts: false + become: false + tasks: + - name: Detect sudo variant + ansible.builtin.raw: command -v sudo.ws || true + register: sudo_ws_check + changed_when: false + + - name: Set become_exe fact based on sudo variant present + ansible.builtin.set_fact: + ansible_become_exe: "{{ 'sudo.ws' if sudo_ws_check.stdout | trim | length > 0 else 'sudo' }}" + +# ================================================================ +# PLAY 0 — Bootstrap: install acl BEFORE any become_user is used. +# ================================================================ +- name: Bootstrap – ensure acl is installed + hosts: nextcloud_talk_hpb + gather_facts: true + become: true + + tasks: + - name: Update apt cache + ansible.builtin.apt: + update_cache: true + cache_valid_time: 3600 + + - name: Install acl (required for Ansible become_user on Linux) + ansible.builtin.apt: + name: acl + state: present \ No newline at end of file