Skip to content

Commit

Permalink
Merge pull request #33 from cocampbe/master
Browse files Browse the repository at this point in the history
change to absolute path to visudo Fixes #23
  • Loading branch information
Andrew J Huffman committed Apr 9, 2019
2 parents ce3df29 + a5fc32b commit a3155be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
owner: "root"
group: "root"
mode: "0440"
validate: 'visudo -cf %s'
validate: '/usr/sbin/visudo -cf %s'
with_items: "{{ sudoer_specs }}"
when:
- "sudoer_separate_specs"
Expand All @@ -58,7 +58,7 @@
group: "root"
mode: "0440"
backup: "{{ sudoer_backup }}"
validate: 'visudo -cf %s'
validate: '/usr/sbin/visudo -cf %s'
when:
- "sudoer_separate_specs"
- "sudoer_rewrite_sudoers_file"
Expand All @@ -70,7 +70,7 @@
line: "#includedir /etc/sudoers.d"
insertafter: "EOF"
backup: "{{ sudoer_backup }}"
validate: 'visudo -cf %s'
validate: '/usr/sbin/visudo -cf %s'
when:
- "sudoer_separate_specs"

Expand All @@ -82,7 +82,7 @@
group: "root"
mode: "0440"
backup: "{{ sudoer_backup }}"
validate: 'visudo -cf %s'
validate: '/usr/sbin/visudo -cf %s'
when:
- "not sudoer_separate_specs"
- "sudoer_rewrite_sudoers_file"
Expand Down

0 comments on commit a3155be

Please sign in to comment.