]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
common: |mandatory is not needed for secrets_path, it is always defined. 80/head
authorAndrew Schoen <aschoen@redhat.com>
Wed, 15 Jul 2015 18:47:09 +0000 (13:47 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Wed, 15 Jul 2015 18:47:09 +0000 (13:47 -0500)
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 <aschoen@redhat.com>
roles/common/tasks/rhel-entitlements.yml

index 3f4e3abd9da6e8af3c729be655d4bca7db7e922a..255ac71a0d5f00fcbd7c901bd7f104a43c25ca6f 100644 (file)
@@ -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 }}"