-
-
Notifications
You must be signed in to change notification settings - Fork 606
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 new requirements.yml
format
#1402
Conversation
🤔 where is this format from? Their examples reflect what we currently have: https://galaxy.ansible.com/docs/using/installing.html |
New format introduced because |
Yep, that's it; thanks @tangrufus. On third thought, I think it is best to rename The reason is that See more: https://docs.galaxyproject.org/en/master/admin/config.html#configuration-files, https://github.com/galaxyproject/galaxy/blob/dev/lib/galaxy/config/sample/galaxy.yml.sample Using |
👍 we just need to verify if the oldest supported version of Ansible supports this format |
According to this thread, the new format was introduced in 2.10. Since that is the minimum supported version for Trellis, using the new format should be fine. Additionally, as I'll test this to be sure 👍 |
Ansible 2.10.0 works using the new format. $ trellis exec ansible --version
ansible 2.10.17
config file = /Users/lee-work/Code/wordpress/roots/trellis/ansible.cfg
configured module search path = ['/Users/lee-work/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /Users/lee-work/Code/wordpress/roots/trellis/.trellis/virtualenv/lib/python3.9/site-packages/ansible
executable location = /Users/lee-work/Code/wordpress/roots/trellis/.trellis/virtualenv/bin/ansible
python version = 3.9.13 (main, May 24 2022, 21:28:31) [Clang 13.1.6 (clang-1316.0.21.2)]
$ trellis galaxy install
Starting galaxy role install process
- downloading role 'composer', owned by geerlingguy
...
# all works |
galaxy.yml
syntax to satisfy ansible-lint
requirements.yml
format
Can we just update the format for now? We can decide on the name separately. Here's some reasoning why I renamed it before: #1100 Having |
How about |
Sorry I missed the links in #1402 (comment) However, that's for running a Galaxy server so it's a completely different context? (and it would be
|
Ah, I wasn't aware of the Galaxy server context there. Good to know. # galaxy.yml
---
roles:
- name: composer
src: geerlingguy.composer
version: 1.9.0
- name: ntp
src: geerlingguy.ntp
version: 2.3.1
- name: logrotate
src: nickhammond.logrotate
version: v0.0.5
- name: swapfile
src: oefenweb.swapfile
version: v2.0.32
- name: mailhog
src: geerlingguy.mailhog
version: 2.2.0 │ schema[galaxy]Description: Additional properties are not allowed ('roles' was unexpected) Ansible [1, 1]
│ Missing property "readme". yaml-schema: Ansible Collection Galaxy (0) [2, 1]
│ Missing property "authors". yaml-schema: Ansible Collection Galaxy (0) [2, 1]
│ Missing property "description". yaml-schema: Ansible Collection Galaxy (0) [2, 1]
│ Missing property "version". yaml-schema: Ansible Collection Galaxy (0) [2, 1]
│ Missing property "namespace". yaml-schema: Ansible Collection Galaxy (0) [2, 1]
│ Missing property "name". yaml-schema: Ansible Collection Galaxy (0) [2, 1]
│ Property roles is not allowed. yaml-schema: Ansible Collection Galaxy (0) [2, 1] Even after renaming to Linter seems to be pretty set on using
|
Thanks @codepuncher 🚀 |
Fixes #1401