summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/ansible-vault/roles/test_vault_file_encrypted_embedded/tasks/main.yml
blob: e09004a1d9e429d1ceb5c6c3ba715e3b6f512a65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
---
- name: Assert that a vault encrypted file with embedded vault of a string with no newline works
  assert:
    that:
      - '"{{ vault_file_encrypted_with_encrypted_one_line_var }}" == "Setec Astronomy"'

- name: Assert that a vault encrypted file with multi line embedded vault works, including new line
  assert:
    that:
      - vault_file_encrypted_with_encrypted_var == "Setec Astronomy\n"

# TODO: add a expected fail here
# - debug: var=vault_encrypted_one_line_var_with_embedded_template