Files @ baaf0db1e0ae
Branch filter:

Location: majic-ansible-roles/roles/common/molecule/default/fixtures.yml

branko
MAR-150: Refactor the test for deployed CA certificates in common role:

- Use parametrisation to reduce code duplication.
---

- hosts: localhost
  connection: local
  gather_facts: false

  tasks:

    - name: Remove existing X.509 material
      file:
        path: "tests/data/.gimmecert"
        state: absent

    - name: Initialise the CA hierarchy
      command: "gimmecert init --ca-hierarchy-depth 2"
      args:
        creates: "tests/data/.gimmecert"
        chdir: "tests/data/"

    - name: Link to the generated X.509 material
      file:
        src: ".gimmecert"
        dest: "tests/data/x509"
        state: link