Browse Source

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.
pull/119/head
Jérémy Dubois 3 months ago
parent
commit
6c202dcf4f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      evolinux-users/tasks/sudo.yml

+ 1
- 1
evolinux-users/tasks/sudo.yml View File

@ -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…
Cancel
Save