From: Andrew Schoen Date: Wed, 15 Jul 2015 18:47:09 +0000 (-0500) Subject: common: |mandatory is not needed for secrets_path, it is always defined. X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F80%2Fhead;p=ceph-cm-ansible.git 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 --- 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 }}"