From ba33210ddd6649fbc9a4ae2e97339461faab84a2 Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Wed, 15 Jul 2015 13:47:09 -0500 Subject: [PATCH] common: |mandatory is not needed for secrets_path, it is always defined. secrets_path comes from the secrets role and it is always defined. It will default to /etc/ansible/secrets if the env var ANSIBLE_SECRETS_PATH is not defined. You can also define secrets_path by passing a variable to the playbook being used. Signed-off-by: Andrew Schoen --- roles/common/tasks/rhel-entitlements.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/common/tasks/rhel-entitlements.yml b/roles/common/tasks/rhel-entitlements.yml index 3f4e3abd..255ac71a 100644 --- a/roles/common/tasks/rhel-entitlements.yml +++ b/roles/common/tasks/rhel-entitlements.yml @@ -3,7 +3,7 @@ - name: Set entitlements_path set_fact: - entitlements_path: "{{ secrets_path | mandatory }}/entitlements.yml" + entitlements_path: "{{ secrets_path }}/entitlements.yml" - name: Include Red Hat encrypted variables. include_vars: "{{ item }}" -- 2.47.3