We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 611513c commit 01b5aa8Copy full SHA for 01b5aa8
ansible/disable-repos.yml
@@ -5,3 +5,4 @@
5
ansible.builtin.include_role:
6
name: dnf_repos
7
tasks_from: disable_repos.yml
8
+ when: not dnf_repos_enabled | default(false) | bool
environments/.caas/hooks/pre.yml
@@ -51,3 +51,15 @@
51
tasks:
52
- name: Reset persistent SSH connections
53
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