Skip to content

Commit

Permalink
Fix syntax issue in when clause
Browse files Browse the repository at this point in the history
Previous clause ran into issues with Ansible 2.9
  • Loading branch information
yuumasato committed Jan 21, 2021
1 parent 13b0af8 commit ca2a9f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/templates/sudo_defaults_option/ansible.template
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
path: /etc/sudoers
line: 'Defaults {{{ OPTION }}}={{ {{{ VARIABLE_NAME }}} }}'
validate: /usr/sbin/visudo -cf %s
when: edit_sudoers_{{{ OPTION }}}_option.changed is false
when: not edit_sudoers_{{{ OPTION }}}_option.changed
{{% else %}}
- name: Ensure {{{ OPTION }}} is enabled in /etc/sudoers
lineinfile:
Expand Down

0 comments on commit ca2a9f8

Please sign in to comment.