added facts gathering for become sudo-rs workaround
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
- name: Install basic features
|
- name: Install basic features
|
||||||
hosts: all
|
hosts: all
|
||||||
|
gather_facts: true
|
||||||
become: true
|
become: true
|
||||||
become_exe: "{{ 'sudo.ws' if ansible_facts.packages['sudo-rs'] is defined else 'sudo' }}" # Temporary workaround for sudo-rs on Ubuntu 25.10 or later including 26.04 LTS (Lunar Lobster).
|
become_exe: "{{ 'sudo.ws' if ansible_facts.packages['sudo-rs'] is defined else 'sudo' }}" # Temporary workaround for sudo-rs on Ubuntu 25.10 or later including 26.04 LTS (Lunar Lobster).
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -3,9 +3,9 @@
|
|||||||
# ================================================================
|
# ================================================================
|
||||||
- name: Bootstrap – ensure acl is installed
|
- name: Bootstrap – ensure acl is installed
|
||||||
hosts: nextcloud
|
hosts: nextcloud
|
||||||
|
gather_facts: true
|
||||||
become: true
|
become: true
|
||||||
become_exe: "{{ 'sudo.ws' if ansible_facts.packages['sudo-rs'] is defined else 'sudo' }}" # Temporary workaround for sudo-rs on Ubuntu 25.10 or later including 26.04 LTS (Lunar Lobster).
|
become_exe: "{{ 'sudo.ws' if ansible_facts.packages['sudo-rs'] is defined else 'sudo' }}" # Temporary workaround for sudo-rs on Ubuntu 25.10 or later including 26.04 LTS (Lunar Lobster).
|
||||||
gather_facts: false
|
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Update apt cache
|
- name: Update apt cache
|
||||||
@@ -23,6 +23,7 @@
|
|||||||
# ================================================================
|
# ================================================================
|
||||||
- name: Install richdocuments and configure Office
|
- name: Install richdocuments and configure Office
|
||||||
hosts: nextcloud
|
hosts: nextcloud
|
||||||
|
gather_facts: true
|
||||||
become: true
|
become: true
|
||||||
become_exe: "{{ 'sudo.ws' if ansible_facts.packages['sudo-rs'] is defined else 'sudo' }}" # Temporary workaround for sudo-rs on Ubuntu 25.10 or later including 26.04 LTS (Lunar Lobster).
|
become_exe: "{{ 'sudo.ws' if ansible_facts.packages['sudo-rs'] is defined else 'sudo' }}" # Temporary workaround for sudo-rs on Ubuntu 25.10 or later including 26.04 LTS (Lunar Lobster).
|
||||||
vars_files:
|
vars_files:
|
||||||
|
|||||||
@@ -3,9 +3,9 @@
|
|||||||
# ================================================================
|
# ================================================================
|
||||||
- name: Bootstrap – ensure acl is installed
|
- name: Bootstrap – ensure acl is installed
|
||||||
hosts: collabora_code
|
hosts: collabora_code
|
||||||
|
gather_facts: true
|
||||||
become: true
|
become: true
|
||||||
become_exe: "{{ 'sudo.ws' if ansible_facts.packages['sudo-rs'] is defined else 'sudo' }}" # Temporary workaround for sudo-rs on Ubuntu 25.10 or later including 26.04 LTS (Lunar Lobster).
|
become_exe: "{{ 'sudo.ws' if ansible_facts.packages['sudo-rs'] is defined else 'sudo' }}" # Temporary workaround for sudo-rs on Ubuntu 25.10 or later including 26.04 LTS (Lunar Lobster).
|
||||||
gather_facts: false
|
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Update apt cache
|
- name: Update apt cache
|
||||||
@@ -23,6 +23,7 @@
|
|||||||
# ================================================================
|
# ================================================================
|
||||||
- name: Add Collabore signing key and sources
|
- name: Add Collabore signing key and sources
|
||||||
hosts: collabora_code
|
hosts: collabora_code
|
||||||
|
gather_facts: true
|
||||||
become: true
|
become: true
|
||||||
become_exe: "{{ 'sudo.ws' if ansible_facts.packages['sudo-rs'] is defined else 'sudo' }}" # Temporary workaround for sudo-rs on Ubuntu 25.10 or later including 26.04 LTS (Lunar Lobster).
|
become_exe: "{{ 'sudo.ws' if ansible_facts.packages['sudo-rs'] is defined else 'sudo' }}" # Temporary workaround for sudo-rs on Ubuntu 25.10 or later including 26.04 LTS (Lunar Lobster).
|
||||||
|
|
||||||
@@ -63,6 +64,7 @@
|
|||||||
# ================================================================
|
# ================================================================
|
||||||
- name: Configure Collabora CODE
|
- name: Configure Collabora CODE
|
||||||
hosts: collabora_code
|
hosts: collabora_code
|
||||||
|
gather_facts: true
|
||||||
become: true
|
become: true
|
||||||
become_exe: "{{ 'sudo.ws' if ansible_facts.packages['sudo-rs'] is defined else 'sudo' }}" # Temporary workaround for sudo-rs on Ubuntu 25.10 or later including 26.04 LTS (Lunar Lobster).
|
become_exe: "{{ 'sudo.ws' if ansible_facts.packages['sudo-rs'] is defined else 'sudo' }}" # Temporary workaround for sudo-rs on Ubuntu 25.10 or later including 26.04 LTS (Lunar Lobster).
|
||||||
|
|
||||||
@@ -89,6 +91,7 @@
|
|||||||
# ================================================================
|
# ================================================================
|
||||||
- name: Install apache2 and configure reverse proxy with SSL for Collabora CODE
|
- name: Install apache2 and configure reverse proxy with SSL for Collabora CODE
|
||||||
hosts: collabora_code
|
hosts: collabora_code
|
||||||
|
gather_facts: true
|
||||||
become: true
|
become: true
|
||||||
become_exe: "{{ 'sudo.ws' if ansible_facts.packages['sudo-rs'] is defined else 'sudo' }}" # Temporary workaround for sudo-rs on Ubuntu 25.10 or later including 26.04 LTS (Lunar Lobster).
|
become_exe: "{{ 'sudo.ws' if ansible_facts.packages['sudo-rs'] is defined else 'sudo' }}" # Temporary workaround for sudo-rs on Ubuntu 25.10 or later including 26.04 LTS (Lunar Lobster).
|
||||||
|
|
||||||
|
|||||||
+3
-1
@@ -3,9 +3,9 @@
|
|||||||
# ================================================================
|
# ================================================================
|
||||||
- name: Bootstrap – ensure acl is installed
|
- name: Bootstrap – ensure acl is installed
|
||||||
hosts: nextcloud
|
hosts: nextcloud
|
||||||
|
gather_facts: true
|
||||||
become: true
|
become: true
|
||||||
become_exe: "{{ 'sudo.ws' if ansible_facts.packages['sudo-rs'] is defined else 'sudo' }}" # Temporary workaround for sudo-rs on Ubuntu 25.10 or later including 26.04 LTS (Lunar Lobster).
|
become_exe: "{{ 'sudo.ws' if ansible_facts.packages['sudo-rs'] is defined else 'sudo' }}" # Temporary workaround for sudo-rs on Ubuntu 25.10 or later including 26.04 LTS (Lunar Lobster).
|
||||||
gather_facts: false
|
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Update apt cache
|
- name: Update apt cache
|
||||||
@@ -23,6 +23,7 @@
|
|||||||
# ================================================================
|
# ================================================================
|
||||||
- name: Install and configure Nextcloud
|
- name: Install and configure Nextcloud
|
||||||
hosts: nextcloud
|
hosts: nextcloud
|
||||||
|
gather_facts: true
|
||||||
become: true
|
become: true
|
||||||
become_exe: "{{ 'sudo.ws' if ansible_facts.packages['sudo-rs'] is defined else 'sudo' }}" # Temporary workaround for sudo-rs on Ubuntu 25.10 or later including 26.04 LTS (Lunar Lobster).
|
become_exe: "{{ 'sudo.ws' if ansible_facts.packages['sudo-rs'] is defined else 'sudo' }}" # Temporary workaround for sudo-rs on Ubuntu 25.10 or later including 26.04 LTS (Lunar Lobster).
|
||||||
|
|
||||||
@@ -378,6 +379,7 @@
|
|||||||
|
|
||||||
- name: Harden Nextcloud install
|
- name: Harden Nextcloud install
|
||||||
hosts: nextcloud
|
hosts: nextcloud
|
||||||
|
gather_facts: true
|
||||||
become: true
|
become: true
|
||||||
become_exe: "{{ 'sudo.ws' if ansible_facts.packages['sudo-rs'] is defined else 'sudo' }}" # Temporary workaround for sudo-rs on Ubuntu 25.10 or later including 26.04 LTS (Lunar Lobster).
|
become_exe: "{{ 'sudo.ws' if ansible_facts.packages['sudo-rs'] is defined else 'sudo' }}" # Temporary workaround for sudo-rs on Ubuntu 25.10 or later including 26.04 LTS (Lunar Lobster).
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user