diff --git a/roles/common/molecule/default/fixtures.yml b/roles/common/molecule/default/fixtures.yml new file mode 100644 index 0000000000000000000000000000000000000000..c436e4d7a019cfa5481b344fc900bb0046f60e5f --- /dev/null +++ b/roles/common/molecule/default/fixtures.yml @@ -0,0 +1,24 @@ +--- + +- 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