Skip to content

Commit e3716b3

Browse files
committed
enable caas to turn on dnf_repos via extravars
1 parent 611513c commit e3716b3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

environments/.caas/hooks/pre.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,15 @@
5151
tasks:
5252
- name: Reset persistent SSH connections
5353
meta: reset_connection
54+
55+
- hosts: localhost
56+
gather_facts: no
57+
become: no
58+
tasks:
59+
- name: Add hosts to dnf_repos group to enable repofiles
60+
ansible.builtin.add_host:
61+
name: "{{ item }}"
62+
groups:
63+
- dnf_repos
64+
loop: "{{ groups['cluster'] }}"
65+
when: dnf_repos_enabled | default(false) | bool

0 commit comments

Comments
 (0)