Skip to content

Commit

Permalink
Specify bool type to avoid future problems
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudfroidmont committed Dec 9, 2022
1 parent 5b0257d commit 8c3a8f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion playbooks/roles/privilege_group/tasks/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
regexp: '^%{{privilege_group_name}}'
line: '%{{privilege_group_name}} ALL=(ALL) NOPASSWD: ALL'
validate: 'visudo -cf %s'
when: privilege_sudo
when: privilege_sudo | bool

- name: "add opc/ubuntu user to {{privilege_group_name}} group"
become: true
Expand Down
2 changes: 1 addition & 1 deletion playbooks/roles/privilege_group/tasks/el.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
regexp: '^%{{privilege_group_name}}'
line: '%{{privilege_group_name}} ALL=(ALL) NOPASSWD: ALL'
validate: 'visudo -cf %s'
when: privilege_sudo
when: privilege_sudo | bool

- name: "add opc user to {{privilege_group_name}} group"
become: true
Expand Down

0 comments on commit 8c3a8f7

Please sign in to comment.