From f99cca5e3b936b4f184b019e755de9d20a7bc3f8 Mon Sep 17 00:00:00 2001
From: Kristian Klausen <kristian@klausen.dk>
Date: Sun, 14 Feb 2021 12:24:33 +0100
Subject: [PATCH] ansible-lint: Make the new syntax-check rule happy

With a dynamic inventory and vault_password_file set it will try to use
them, which of course doesn't work in the CI.
---
 .gitlab-ci.yml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 421b3270f..c53dc2077 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,6 +8,9 @@ ansible-lint:
     # Fix weird ansible bug: https://github.com/trailofbits/algo/issues/1637
     # This probably happens due to gitlab-runner mounting the git repo into the container
     - chmod o-w .
+    # Fix syntax-check rule (https://github.com/ansible-community/ansible-lint/issues/1350#issuecomment-778764110)
+    - sed "s/,hcloud_inventory.py//" -i ansible.cfg
+    - sed "/^vault_password_file/d" -i ansible.cfg
     - ansible-lint
 
 terraform-validate:
-- 
GitLab