From 41d13990605ece3c8c5045a20efe5cc72bfe85d4 Mon Sep 17 00:00:00 2001 From: Tobias Manske Date: Wed, 13 Sep 2023 05:42:56 +0200 Subject: [PATCH] Drone: Set Ansible home --- .drone.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index b245a87..154f76d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,6 +11,11 @@ trigger: - push - custom +environment: + ANSIBLE_FORCE_COLOR: true + ANSIBLE_HOME: /drone/src/.ansible + ANSIBLE_VAULT_PASSWORD_FILE: "/drone/src/vault_pass" + node: ansible: "true" @@ -31,19 +36,14 @@ steps: - name: Prepare Runner image: registry.tobiasmanske.de/ansible-runner:latest pull: always - environment: - ANSIBLE_VAULT_PASSWORD_FILE: "/drone/src/vault_pass" - ANSIBLE_FORCE_COLOR: "true" commands: - cd coreos-config + - mkdir $ANSIBLE_HOME - ansible-galaxy install -r requirements.yaml - ansible-playbook --private-key ../ssh_key --inventory=inventory.yaml runner-pre.yaml - name: Run Ansible image: registry.tobiasmanske.de/ansible-runner:latest pull: always - environment: - ANSIBLE_VAULT_PASSWORD_FILE: "/drone/src/vault_pass" - ANSIBLE_FORCE_COLOR: "true" commands: - cd coreos-config - ansible-playbook --limit ci_apply --private-key ../ssh_key --inventory=inventory.yaml playbook.yaml