From b10ee60b744960797797ce9aa5107f63bb040ef3 Mon Sep 17 00:00:00 2001 From: Salt Date: Thu, 26 Aug 2021 03:39:45 -0500 Subject: [PATCH] Dump private.pem to file before beginning a play --- .gitlab-ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6846bd9..e90b94f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,6 +17,10 @@ before_script: - touch /vaultpw - chmod 0600 /vaultpw - echo "$ANSIBLE_VAULT_PASSWORD" > /vaultpw + # Dump the Netbox key + - touch private.pem + - chmod 0600 private.pem + - echo "$NETBOX_USER_KEY" > private.pem # Fix perms on the playbook root - chmod -R 0750 . # Join the Zerotier management network