-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prepend local roles path to ANSIBLE_ROLES_PATH
closes: #4071 When running locally, we set the ANSIBLE_ROLES_PATH to include the local roles path, preventing users from needing to manually setting this environment variable for normal development. Signed-off-by: austin <[email protected]>
- Loading branch information
Showing
3 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# entries is a list of entries to include in | ||
# release notes and/or the migration guide | ||
entries: | ||
- description: > | ||
(ansible/v1) Previously, when scaffolding an Ansible-based operator with | ||
both Roles and Playbooks, the roles imported by the playbook could not be | ||
found when running locally (`make run`). This change prepends the | ||
`ANSIBLE_ROLES_PATH` environment variable with the path to the local | ||
roles directory. | ||
kind: "bugfix" | ||
breaking: false | ||
migration: | ||
header: (optional) Add local Ansible Roles path to Env in `make run` | ||
body: > | ||
If you would like to run your operator locally using `make run`, modify | ||
the `run` target in the `Makefile` to: | ||
`ANSIBLE_ROLES_PATH="$(ANSIBLE_ROLES_PATH):$(shell pwd)/roles" | ||
$(ANSIBLE_OPERATOR) run` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters