From 70592047668408dbce69088443444a7839e8b406 Mon Sep 17 00:00:00 2001 From: Alexander Dahl Date: Sat, 28 Dec 2024 11:55:00 +0100 Subject: [PATCH] :truck: 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 --- group-all.yml | 2 +- requirements.yml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/group-all.yml b/group-all.yml index cb380e2..2d95128 100644 --- a/group-all.yml +++ b/group-all.yml @@ -8,7 +8,7 @@ ansible_python_interpreter: /usr/bin/python3 roles: - - role: ansible.timezone + - role: adriagalin.timezone vars: ag_timezone: "{{ timezone }}" - role: users diff --git a/requirements.yml b/requirements.yml index 5a23b6f..7c66b00 100644 --- a/requirements.yml +++ b/requirements.yml @@ -2,7 +2,8 @@ roles: - src: hifis.unattended_upgrades 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 - src: git+https://github.com/24367dfa/ansible-role-dehydrated.git version: 2.0.0