cimon-io / ansible-role-imagemagick

8 stars 4 forks source link

'ansible_become: yes' messes with tasks that need 'become: false' #7

Open michaelbaisch opened 2 years ago

michaelbaisch commented 2 years ago

Hello,

I've noticed whenever I'm using this role, other tasks in a playbook that require no privilege escalation will fail.

ansible_become: yes

From vars/main.yaml seems to be the problem, as far as I understand setting ansible_become will override become: false for all tasks. When I comment that line, everything still works perfectly + the tasks that require become: false also work.

Maybe removing it is an option?

Greetings, Michael