File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 1
1
- hosts : dnf_repos
2
2
become : yes
3
+ tags : dnf_repos
3
4
tasks :
4
5
- name : Disable pulp repos
5
6
ansible.builtin.include_role :
Original file line number Diff line number Diff line change 99
99
tasks_from : export.yml
100
100
when : " 'sshd' in group_names"
101
101
102
- - name : Retrieve generated NHC config
102
+ - name : Export generated NHC config
103
103
import_role :
104
104
name : nhc
105
105
tasks_from : export.yml
Original file line number Diff line number Diff line change 1
- - name : Fetch generated NHC config to control node storage
2
- ansible.builtin.fetch :
1
+ - name : Slurp generated NHC configuration
2
+ ansible.builtin.slurp :
3
3
src : /etc/nhc/nhc.conf
4
- flat : true
5
- dest : " /exports/cluster/hostconfig{{ inventory_hostname }}/nhc.conf"
4
+ register : _nhc_generated_conf
5
+
6
+ - name : Write generated NHC configuration to control node exports
7
+ ansible.builtin.copy :
8
+ dest : " /exports/cluster/hostconfig/{{ inventory_hostname }}/nhc.conf"
9
+ content : " {{ _nhc_generated_conf.content | b64decode }}"
10
+ delegate_to : " {{ groups['control'] | first }}"
You can’t perform that action at this time.
0 commit comments