feat(tests): move molecule tests to extensions directory for it to work properly
This commit is contained in:
parent
f8ed7ff0df
commit
90b20f2b83
@ -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
|
||||
|
@ -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
|
||||
|
@ -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 }}"
|
||||
|
@ -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 ########
|
||||
|
Loading…
Reference in New Issue
Block a user