Skip to content

Commit e343bba

Browse files
committed
swap cacerts to use export task file
1 parent 8e1d0c0 commit e343bba

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
- name: Copy cacerts from deploy host to /exports/cluster/cacerts/
2+
copy:
3+
src: "{{ item }}"
4+
dest: /exports/cluster/cacerts/
5+
owner: root
6+
group: root
7+
mode: 0644
8+
with_fileglob:
9+
- "{{ cacerts_cert_dir }}/*"
10+
delegate_to: "{{ groups['control'] | first }}"
11+
run_once: true

ansible/roles/compute_init/tasks/export.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -72,17 +72,10 @@
7272
run_once: true
7373
delegate_to: "{{ groups['control'] | first }}"
7474

75-
- name: Copy cacerts from deploy host to /exports/cluster/cacerts/
76-
copy:
77-
src: "{{ item }}"
78-
dest: /exports/cluster/cacerts/
79-
owner: root
80-
group: root
81-
mode: 0644
82-
with_fileglob:
83-
- "{{ cacerts_cert_dir | default(appliances_environment_root + '/cacerts') }}/*" # role default
84-
delegate_to: "{{ groups['control'] | first }}"
85-
run_once: true
75+
- name: Export cacerts
76+
ansible.builtin.include_role:
77+
name: cacerts
78+
tasks_from: export.yml
8679
when: "'cacerts' in group_names"
8780

8881
- name: Create hostconfig directory

0 commit comments

Comments
 (0)