Whenever I change code in my Ansible role in a repository, I also want to have that code updated in the roles directory on my test machine. What I do to obtain the new code is to
- remove the role by running
ansible-galaxy remove rolename
- install the role again by using
ansible-galaxy install git+https://url/rolename
If I do not use the remove option before the install, ansible-galaxy just skips the role as it's already installed. It does not see the changed files in the repo as such.
What is the best way to achive this?