2023-12-23 22:30:53 +00:00
|
|
|
---
|
|
|
|
# hashistack prepare playbook
|
|
|
|
- name: "Bootstrap"
|
|
|
|
hosts: all
|
|
|
|
gather_facts: true
|
|
|
|
become: true
|
|
|
|
tasks:
|
2023-12-28 22:10:17 +00:00
|
|
|
- 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
|
2024-01-25 21:40:44 +00:00
|
|
|
when: "'vault_servers' in group_names"
|
2023-12-28 22:10:17 +00:00
|
|
|
|
2023-12-23 22:30:53 +00:00
|
|
|
- name: "Include ednxzu.install_docker"
|
|
|
|
ansible.builtin.include_role:
|
|
|
|
name: ednxzu.install_docker
|
|
|
|
vars:
|
|
|
|
install_docker_edition: ce
|
|
|
|
install_docker_auto_update: false
|
|
|
|
install_docker_start_service: true
|
|
|
|
install_docker_compose: false
|
|
|
|
install_docker_compose_version: latest
|
|
|
|
install_docker_python_packages: true
|
|
|
|
install_docker_python_packages_version: latest
|
|
|
|
install_docker_users:
|
|
|
|
- "{{ ansible_user }}"
|
|
|
|
install_docker_daemon_options: {}
|
|
|
|
when: deployment_method == 'docker'
|