Updating a Ansible role which has been installed with ansible-galaxy from a GitHub repo

Viewed 3141

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

  1. remove the role by running ansible-galaxy remove rolename
  2. 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?

1 Answers
Related