Move to new ansible_facts format
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
components:
|
||||
- main
|
||||
when: >
|
||||
(ansible_distribution == 'Debian' and ansible_distribution_major_version | int == 11) or
|
||||
(ansible_distribution == 'Ubuntu' and ansible_distribution_major_version | int < 24)
|
||||
(ansible_facts.distribution == 'Debian' and ansible_facts.distribution_major_version | int == 11) or
|
||||
(ansible_facts.distribution == 'Ubuntu' and ansible_facts.distribution_major_version | int < 24)
|
||||
|
||||
- name: Install caddy
|
||||
ansible.builtin.apt:
|
||||
|
||||
Reference in New Issue
Block a user