summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/git/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/git/tasks/main.yml')
-rw-r--r--test/integration/targets/git/tasks/main.yml50
1 files changed, 30 insertions, 20 deletions
diff --git a/test/integration/targets/git/tasks/main.yml b/test/integration/targets/git/tasks/main.yml
index ed06eab5aa..c990251f33 100644
--- a/test/integration/targets/git/tasks/main.yml
+++ b/test/integration/targets/git/tasks/main.yml
@@ -16,27 +16,37 @@
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
-- import_tasks: setup.yml
-- import_tasks: setup-local-repos.yml
+# NOTE: Moving `$HOME` to tmp dir allows this integration test be
+# NOTE: non-destructive. There is no other way to instruct Git use a custom
+# NOTE: config path. There are new `$GIT_CONFIG_KEY_{COUNT,KEY,VALUE}` vars
+# NOTE: for setting specific configuration values but those are only available
+# NOTE: since Git v2.31 which is why we cannot rely on them yet.
-- import_tasks: formats.yml
-- import_tasks: missing_hostkey.yml
-- import_tasks: missing_hostkey_acceptnew.yml
-- import_tasks: no-destination.yml
-- import_tasks: specific-revision.yml
-- import_tasks: submodules.yml
-- import_tasks: change-repo-url.yml
-- import_tasks: depth.yml
-- import_tasks: single-branch.yml
-- import_tasks: checkout-new-tag.yml
-- include_tasks: gpg-verification.yml
- when:
+- block:
+ - import_tasks: setup.yml
+ - import_tasks: setup-local-repos.yml
+
+ - import_tasks: formats.yml
+ - import_tasks: missing_hostkey.yml
+ - import_tasks: missing_hostkey_acceptnew.yml
+ - import_tasks: no-destination.yml
+ - import_tasks: specific-revision.yml
+ - import_tasks: submodules.yml
+ - import_tasks: change-repo-url.yml
+ - import_tasks: depth.yml
+ - import_tasks: single-branch.yml
+ - import_tasks: checkout-new-tag.yml
+ - include_tasks: gpg-verification.yml
+ when:
- not gpg_version.stderr
- gpg_version.stdout
- not (ansible_os_family == 'RedHat' and ansible_distribution_major_version is version('7', '<'))
-- import_tasks: localmods.yml
-- import_tasks: reset-origin.yml
-- import_tasks: ambiguous-ref.yml
-- import_tasks: archive.yml
-- import_tasks: separate-git-dir.yml
-- import_tasks: forcefully-fetch-tag.yml
+ - import_tasks: localmods.yml
+ - import_tasks: reset-origin.yml
+ - import_tasks: ambiguous-ref.yml
+ - import_tasks: archive.yml
+ - import_tasks: separate-git-dir.yml
+ - import_tasks: forcefully-fetch-tag.yml
+ environment:
+ HOME: >-
+ {{ remote_tmp_dir }}