---
- name: Retrieve Conjur variable with disabled cert verification
  hosts: localhost
  connection: local
  tasks:
    - name: Clean artifact path
      file:
        state: absent
        path: /conjur_secrets.txt

    - name: Retrieve Conjur variable with disabled cert verification
      vars:
        super_secret_key: "{{lookup('conjur_variable', 'ansible/test-secret', validate_certs=False)}}"
      shell: echo "{{super_secret_key}}" > /conjur_secrets.txt
