-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
Use original fact names instead of injected ones #147
Conversation
@Apollo3zehn thanks for the PR. I will have a closer look soon. Sounds valid ... |
Sorry for the delay, holidays and now I am ill ... |
More specifically I am referencing to this section ("ansible-facts"): https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_vars_facts.html#ansible-facts Normally, all collected facts are accessible under the In my case |
Get well soon! |
Understood. I might merge soon, currently I still have to look at the failing release-step in the pipeline. Your PR looks good to me. |
Thank you ... it still takes time and patience ... |
b5b470a
into
stefangweichinger:main
tried the merge yesterday, but the release-step fails: https://github.com/stefangweichinger/ansible-rclone/actions/runs/7472462092/job/20335076243#step:3:14 That isn't related to your PR, I have to research the issue. I already made sure to use the correct API Key in the gh-project. I am still not recovered again, so I have to see when I can solve this. |
No worries, this is not time-critical for me as I have a workaround |
this seems to be the issue: robertdebock/galaxy-action#13 |
I could try to release the role manually from the local shell ... but it would be better to have a valid CI/CD-run in the project history etc |
This reverts commit b5b470a.
@Apollo3zehn I think I released 0.1.4 to galaxy right now. What an act ... The release-action succeeded but I don't see it on https://galaxy.ansible.com/ui/standalone/roles/stefangweichinger/ansible_rclone/ yet. maybe that takes a while |
Thanks for your efforts! Unfortunately I cannot find version 0.1.4 on that page :-( |
Yes, I know. I am not yet sure how to proceed. Maybe I try to export it again from my local shell ... |
Managed a manual export, now it's visible on https://galaxy.ansible.com/ui/standalone/roles/stefangweichinger/ansible_rclone/ pls check It's not perfect, the export did a lint and threw these messages
I hope your PR doesn't break anything for others ;-) |
Thank you! Yes the version is available now and works fine for me :-) |
Sorry, wrong account. |
Thank you very much for this very useful role. In my setup I have to set
INJECT_FACTS_AS_VARS=false
inansible.cfg
which means that facts of theansible_facts
variable are not injected into the top levelvars
variable. To use this role I had to redefine the missing variables like this:To avoid this kind of issues it would be better if this project uses the original variables names (e.g.
ansible_facts.distribution
instead ofansible_distribution
). This PR tries to accomplish that.