Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is these roles available through ansible-galaxy? #316

Open
vrsarin opened this issue Mar 29, 2024 · 4 comments
Open

Is these roles available through ansible-galaxy? #316

vrsarin opened this issue Mar 29, 2024 · 4 comments

Comments

@vrsarin
Copy link
Contributor

vrsarin commented Mar 29, 2024

Can I get ansible-galaxy namespace?

If not I would like this to be published to ansible-galaxy. What is the procedure for it?

@dereknola
Copy link
Member

There currently isn't a plan to publish this to ansible-galaxy. The K3s organization doesn't have a good centralization around email/user accounts, so it would end up just being me as the author, which I don't really want. There is some existing boiler plate around galaxy.yml, so you could fork this repo and upload your own version if you wanted.

@vrsarin
Copy link
Contributor Author

vrsarin commented Apr 3, 2024

I can definitely support this. We can have a separate repo for publishing to Galaxy, but I strongly believe we should release it as the official version.

In either case, we need to coordinate on standardizing the following

  1. Release cycle
  2. Versioning
  3. Galaxy Account

Any thoughts?

@nonell-viavi
Copy link

I don't know if this may be helpful, but as a workaround we are currently doing this for consuming this repo through ansible galaxy:

cat requirements.yml

---
collections:
  - name: ansible.posix
    version: "1.5.4"
  - name: k3s/orchestration
    source: https://github.com/k3s-io/k3s-ansible.git
    version: 7ec16a8d53363ace979e5585323311ab1bd1641d # 2024/04/05
    type: git

Then
ansible-galaxy collection install -r requirements.yml installs this repo under <COLLECTIONS_PATH>/ansible-collections/k3s-orchestration.

And you can use it like:
ansible-playbook -i inventory.ini ansible_collections/k3s/orchestration/playbook/site.yml

@strophy
Copy link

strophy commented Jul 23, 2024

Since Ansible 2.11 it's also possible to include a playbook installed from requirements.yml as shown above in your own playbooks like this:

- name: Run the k3s/orchestration site.yml playbook
  ansible.builtin.import_playbook: k3s.orchestration.site

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants