forked from evolix/ansible-roles
Check that ansible_distribution_major_version is defined in sudo task
This variable does not exist when run on OpenBSD servers, making the ansible playbook to exit in a fatal state.
This commit is contained in:
parent
15154169cf
commit
6c202dcf4f
|
@ -4,6 +4,6 @@
|
|||
when: ansible_distribution_release == "jessie"
|
||||
|
||||
- include: sudo_stretch.yml
|
||||
when: ansible_distribution_major_version is version('9', '>=')
|
||||
when: ansible_distribution_major_version is defined and ansible_distribution_major_version is version('9', '>=')
|
||||
|
||||
- meta: flush_handlers
|
||||
|
|
Loading…
Reference in a new issue