ansible_galaxy_install: use locale C tentatively, else en_US (#5680)

* ansible_galaxy_install: use locale C tentatively, else en_US

* use custom exception to signal unsupported locale

* add step to remove artefacts at the end of the test

* add step to remove artefacts at the beginning of the test

* comment out context controller

* trying with temporary dir as destination

* remove collection before test with reqs file

* ensure collections are installed in temp dir in tests + check_force

* simplified the change

* added extra condition for failing locale

* improved exception handling

* add changelog fragment
This commit is contained in:
Alexei Znamensky 2022-12-22 18:45:07 +13:00 committed by GitHub
commit 488e828f9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 32 additions and 12 deletions

View file

@ -10,7 +10,7 @@
name: netbox.netbox
register: install_c0
- name: Assert collection was installed
- name: Assert collection netbox.netbox was installed
assert:
that:
- install_c0 is changed
@ -34,7 +34,7 @@
name: ansistrano.deploy
register: install_r0
- name: Assert collection was installed
- name: Assert collection ansistrano.deploy was installed
assert:
that:
- install_r0 is changed
@ -52,7 +52,7 @@
- install_r1 is not changed
###################################################
- name:
- name: Set requirements file path
set_fact:
reqs_file: '{{ remote_tmp_dir }}/reqs.yaml'