I am trying to setup a new common role to run on all my servers. This role could be run from AWX/AAP or Ad-hoc from a jump server. I want to import other roles from my git repo. It could be bitbucket or github, etc. In previous versions of ansible there were examples to use import_roles with a remote source. Is there a module that I need to use?
I am using the latest version of Ansible on RHEL 8/9.
An example would be something like this.
This is what I think I need to do:
- import_role: https://git.example.com/something/repo.git
This is what I want to use.
# from github
- src: https://github.com/bennojoy/nginx
# from Bitbucket
- src: git+https://bitbucket.org/willthames/git-ansible-galaxy
version: v1.4
Which is the better way to do accomplish this?