🚚 roles: timezone: Override with galaxy name

The repository name differs from the galaxy name.  Although not strictly
necessary, makes origin of role more clear in code and would allow
easier switching between galaxy, and git.  Using the namespaced name
makes it clear it's an external role.  Same name as in role
documentation now.  No change in actual role or version of role.

Link: https://docs.ansible.com/ansible/latest/galaxy/user_guide.html#installing-multiple-roles-from-a-file
This commit is contained in:
Alexander Dahl 2024-12-28 11:55:00 +01:00
parent adc73cbbf3
commit 7059204766
2 changed files with 3 additions and 2 deletions

View file

@ -8,7 +8,7 @@
ansible_python_interpreter: /usr/bin/python3 ansible_python_interpreter: /usr/bin/python3
roles: roles:
- role: ansible.timezone - role: adriagalin.timezone
vars: vars:
ag_timezone: "{{ timezone }}" ag_timezone: "{{ timezone }}"
- role: users - role: users

View file

@ -2,7 +2,8 @@
roles: roles:
- src: hifis.unattended_upgrades - src: hifis.unattended_upgrades
version: v3.2.1 version: v3.2.1
- src: git+https://github.com/adriagalin/ansible.timezone.git - name: adriagalin.timezone
src: git+https://github.com/adriagalin/ansible.timezone.git
version: 4.0.0 version: 4.0.0
- src: git+https://github.com/24367dfa/ansible-role-dehydrated.git - src: git+https://github.com/24367dfa/ansible-role-dehydrated.git
version: 2.0.0 version: 2.0.0