diff --git a/roles/common/molecule/default/prepare.yml b/roles/common/molecule/default/prepare.yml index 855490b8f4750252796bf83f09194aed6d3d111d..44089da739294c1f6f339451f77286e8549250a1 100644 --- a/roles/common/molecule/default/prepare.yml +++ b/roles/common/molecule/default/prepare.yml @@ -1,7 +1,22 @@ --- -- name: Fixtures - import_playbook: fixtures.yml +- name: Set-up fixtures + hosts: localhost + connection: local + gather_facts: false + tasks: + + - name: Initialise CA hierarchy + command: "gimmecert init --ca-hierarchy-depth 2" + args: + creates: "tests/data/.gimmecert" + chdir: "tests/data/" + + - name: Set-up link to generated X.509 material + file: + src: ".gimmecert" + dest: "tests/data/x509" + state: link - name: Prepare hosts: all