switched to new facts-syntax

This commit is contained in:
2026-01-12 12:31:24 +01:00
parent 037b998219
commit 9fd07d57a4
41 changed files with 111 additions and 109 deletions

View File

@@ -7,7 +7,7 @@
- software-properties-common
- lsb-release
- ca-certificates
when: ansible_distribution in ["Debian", "Ubuntu", "Linux Mint"]
when: ansible_facts['distribution'] in ["Debian", "Ubuntu", "Linux Mint"]
- name: webservers | nextcloud | prereq | get php repo key
ansible.builtin.uri:
@@ -18,7 +18,7 @@
ansible.builtin.lineinfile:
path: "/etc/apt/sources.list.d/php.list"
state: present
line: "deb https://packages.sury.org/php/ {{ ansible_distribution_release | lower }} main"
line: "deb https://packages.sury.org/php/ {{ ansible_facts['distribution']_release | lower }} main"
create: True
- name: webservers | nextcloud | prereq | install php