added setup pb for talk hpb with base plays
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user