Improve CI (#3348)

* Remove superfluous test.

* Use remote_temp_dir instead of output_dir on remote.

* Read certificate from correct place.

* Adjust more places.

* Fix boolean.

* Improve cryptography setup.

* Fix java_keystore changes.

* Need to copy binary from remote.

* Use correct Python for serve script.

* Sleep before downloading.

* Use correct Python interpreter.

* Avoid failing shebang test.

* Fix permission error with macOS 11.1.

* Avoid shebang trouble.
This commit is contained in:
Felix Fontein 2021-09-09 07:31:44 +02:00 committed by GitHub
commit 7c43cc3faa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
68 changed files with 440 additions and 394 deletions

View file

@ -1,3 +1,4 @@
dependencies:
- setup_pkg_mgr
- setup_epel
- setup_remote_tmp_dir

View file

@ -23,7 +23,7 @@
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
- set_fact:
output_dir_test: '{{ output_dir }}/test_iso_extract'
output_test_dir: '{{ remote_tmp_dir }}/test_iso_extract'
- name: Install 7zip
import_tasks: 7zip.yml

View file

@ -19,15 +19,15 @@
- name: Make sure our testing sub-directory does not exist
file:
path: '{{ output_dir_test }}'
path: '{{ output_test_dir }}'
state: absent
- name: Create our testing sub-directory
file:
path: '{{ output_dir_test }}'
path: '{{ output_test_dir }}'
state: directory
- name: copy the iso to the test dir
copy:
src: test.iso
dest: '{{ output_dir_test }}'
dest: '{{ output_test_dir }}'

View file

@ -19,8 +19,8 @@
- name: Extract the iso
iso_extract:
image: '{{ output_dir_test }}/test.iso'
dest: '{{ output_dir_test }}'
image: '{{ output_test_dir }}/test.iso'
dest: '{{ output_test_dir }}'
files:
- 1.txt
- 2.txt
@ -32,8 +32,8 @@
- name: Extract the iso again
iso_extract:
image: '{{ output_dir_test }}/test.iso'
dest: '{{ output_dir_test }}'
image: '{{ output_test_dir }}/test.iso'
dest: '{{ output_test_dir }}'
files:
- 1.txt
- 2.txt