Skip to content

Commit 25d5b7f

Browse files
fix: ansible common to always calculate current_dir for the ansible folder (#1117)
1 parent cb17e11 commit 25d5b7f

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

.github/workflows/component_onhost_canaries.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,10 @@ on:
1111
inputs:
1212
environment:
1313
required: true
14-
type: enum
15-
enum: [staging, production]
14+
type: string
1615
operation:
1716
required: true
18-
type: enum
19-
enum: [plan, apply]
17+
type: string
2018

2119
permissions:
2220
id-token: write

test/Ansible.common

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
ANSIBLE_FOLDER ?= $(CURDIR)
1+
ANSIBLE_FOLDER := $(CURDIR)
22

3-
export REQUIREMENTS_FILE ?= $(ANSIBLE_FOLDER)/requirements.yml
4-
export ROLES_PATH:=$(ANSIBLE_FOLDER)/roles
5-
export COLLECTIONS_PATH:=$(ANSIBLE_FOLDER)/collections
3+
export REQUIREMENTS_FILE := $(ANSIBLE_FOLDER)/requirements.yml
4+
export ROLES_PATH := $(ANSIBLE_FOLDER)/roles
5+
export COLLECTIONS_PATH := $(ANSIBLE_FOLDER)/collections
66
export CROWDSTRIKE_ROLE_PULL_KEY := $(HOME)/.ssh/crowdstrike_ansible_role_key
77

8+
89
$(ROLES_PATH) $(COLLECTIONS_PATH):
910
@mkdir -p $@
1011

0 commit comments

Comments
 (0)