Closed rhaamo closed 6 years ago
I've updated the playbook to no longer include the command that was causing you problems in check mode. That command is not necessary to the overall playbook since the lineinfile module will ensure that line is in the /etc/sudoers file if the sudoers_separate_specs boolean is enabled.
I've pushed the update, and added a new release 1.0.3 now available on Ansible Galaxy.
Hi,
Using
--check
it fails with following error:Because shell commands are ignored when --check ing.
It looks like it's possible to use a
check_mode: yes
:From http://docs.ansible.com/ansible/latest/playbooks_checkmode.html#enabling-or-disabling-check-mode-for-tasks & https://stackoverflow.com/a/46454251