Update facts access for later Ansible versions

This commit is contained in:
2025-11-29 15:04:07 +00:00
parent 2908e643c7
commit af72c10791
2 changed files with 4 additions and 4 deletions

View File

@@ -2,8 +2,8 @@
- name: Certbot - Get OS specific vars
include_vars: "{{ item }}"
with_first_found:
- "os/{{ ansible_os_family }}/{{ ansible_distribution_major_version }}.yaml"
- "os/{{ ansible_os_family }}.yaml"
- "os/{{ ansible_facts['os_family'] }}/{{ ansible_facts['distribution_major_version'] }}.yaml"
- "os/{{ ansible_facts['os_family'] }}.yaml"
- name: Certbot - Install Certbot
ansible.builtin.import_tasks: install.yaml