File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
- name : Install certificate authorities and update trust
3
3
hosts : overcloud:seed:seed-hypervisor
4
+ # Avoid using facts because this may be used as a pre overcloud host
5
+ # configure hook, and we don't want to populate the fact cache (if one is in
6
+ # use) with the bootstrap user's context.
7
+ gather_facts : false
8
+ tags :
9
+ - install-ca
10
+ vars :
11
+ ansible_user : " {{ bootstrap_user }}"
12
+ # We can't assume that a virtualenv exists at this point, so use the system
13
+ # python interpreter.
14
+ ansible_python_interpreter : /usr/bin/python3
15
+ # Work around no known_hosts entry on first boot.
16
+ ansible_ssh_common_args : -o StrictHostKeyChecking=no
17
+ # Don't assume facts are present.
18
+ os_family : " {{ ansible_facts.os_family | default('Debian' if os_distribution == 'ubuntu' else 'RedHat') }}"
4
19
become : true
5
20
tasks :
6
21
- name : Install certificate authorities on RedHat based distributions
7
- when : ansible_facts. os_family == 'RedHat'
22
+ when : os_family == 'RedHat'
8
23
block :
9
24
- name : Copy certificate authorities on RedHat family systems (Rocky, RHEL, CentOS)
10
25
ansible.builtin.copy :
18
33
ansible.builtin.command : " update-ca-trust"
19
34
20
35
- name : Install certificate authorities on Debian based distributions
21
- when : ansible_facts. os_family == 'Debian'
36
+ when : os_family == 'Debian'
22
37
block :
23
38
- name : Copy certificate authorities on Debian family systems (Ubuntu, Debian)
24
39
ansible.builtin.copy :
You can’t perform that action at this time.
0 commit comments