feat(tests): move molecule tests to extensions directory for it to work properly

This commit is contained in:
Bertrand Lanson 2023-12-28 23:10:17 +01:00
parent f8ed7ff0df
commit 90b20f2b83
13 changed files with 21 additions and 1 deletions

View File

@ -3,6 +3,7 @@
roles:
- name: ednxzu.manage_repositories
- name: ednxzu.manage_apt_packages
- name: ednxzu.manage_pip_packages
- name: ednxzu.install_docker
- name: ednxzu.docker_systemd_service

View File

@ -5,6 +5,16 @@
gather_facts: true
become: true
tasks:
- name: "Install hvac library with pip"
ansible.builtin.include_role:
name: ednxzu.manage_pip_packages
vars:
manage_pip_packages_install_prereqs: true
manage_pip_packages_list:
- name: hvac
version_constraint: latest
state: present
- name: "Include ednxzu.install_docker"
ansible.builtin.include_role:
name: ednxzu.install_docker

View File

@ -18,6 +18,15 @@
delegate_to: "{{ groups['vault_servers'] | first }}"
register: _vault_init_secret
- name: "Write vault configuration to file"
ansible.builtin.copy:
content: "{{ _vault_init_secret.state }}"
dest: "{{ configuration_directory }}/vault/vault_config"
mode: '0600'
when: _vault_init_secret.state
run_once: true
delegate_to: localhost
- name: "Debug"
ansible.builtin.debug:
msg: "{{ _vault_init_secret }}"

View File

@ -11,7 +11,7 @@ deployment_method: "docker"
api_interface: "eth0"
api_interface_address: "{{ ansible_facts[api_interface]['ipv4']['address'] }}"
configuration_directory: "/tmp/hashistack-ansible"
configuration_directory: "/tmp/hashistack"
##########################
# Support options ########