[IR plugin] Copy cert file to tester_node
When tobiko is run on a tripleo setup but it is not executed from the undercloud node, some files such as the certificate file need to be copied from the undercloud node to the tester node Change-Id: Id78005d21e5e225666155fdbcb5e2385b5aa43ee
This commit is contained in:
parent
b32c3a5f6e
commit
9e99159c07
@ -18,7 +18,7 @@
|
||||
key: "{{ test_host_pubkey_result.stdout }}"
|
||||
ignore_errors: yes
|
||||
|
||||
- name: copy /etc/hosts from the undercloud to the test_host
|
||||
- name: copy files from the undercloud to the test_host
|
||||
block:
|
||||
- name: read /etc/hosts from the undercloud
|
||||
become: true
|
||||
@ -43,6 +43,24 @@
|
||||
path: /etc/hosts
|
||||
regexp: '^127.0.0.1 .*undercloud'
|
||||
state: absent
|
||||
|
||||
- name: copy crt file from the undercloud
|
||||
become: true
|
||||
slurp:
|
||||
src: /etc/pki/ca-trust/extracted/openssl/ca-bundle.trust.crt
|
||||
delegate_to: "{{ groups.undercloud|first }}"
|
||||
register: crt_file
|
||||
|
||||
- name: write crt file to the test_host
|
||||
become: true
|
||||
copy:
|
||||
content: "{{ crt_file.content | b64decode }}"
|
||||
dest: /etc/pki/ca-trust/extracted/openssl/ca-bundle.trust.crt
|
||||
force: true
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0444'
|
||||
|
||||
ignore_errors: yes
|
||||
when:
|
||||
- groups.get("undercloud")
|
||||
|
Loading…
Reference in New Issue
Block a user