ansible-raspi-config icon indicating copy to clipboard operation
ansible-raspi-config copied to clipboard

Replacing default user is not idempotent

Open colin-nolan opened this issue 7 years ago • 0 comments

Creating a new user to replace the default one should be idempotent (i.e. should not use changed_when: True): https://github.com/mikolak-net/ansible-raspi-config/blob/85cae51462822d9a5fe083f9effc6d4cfe433e5b/tasks/setup_replace_user.yml#L3-L8.

I think the step to remove the default user can just be a normal task, not a handler.

colin-nolan avatar Jun 28 '17 22:06 colin-nolan