Bertrand Lanson
d18ab9142d
Some checks failed
build-deploy / Bump version and create changelog with commitizen (push) Has been cancelled
35 lines
924 B
YAML
35 lines
924 B
YAML
---
|
|
# hashistack prepare playbook
|
|
- name: "Bootstrap"
|
|
hosts: all, !deployment
|
|
gather_facts: true
|
|
become: true
|
|
tasks:
|
|
- name: "Isntall unzip with package manager"
|
|
ansible.builtin.include_role:
|
|
name: ednz_cloud.manage_apt_packages
|
|
vars:
|
|
manage_apt_packages_list:
|
|
- name: unzip
|
|
version: latest
|
|
state: present
|
|
|
|
- name: "Install hvac library with pip"
|
|
ansible.builtin.include_role:
|
|
name: ednz_cloud.manage_pip_packages
|
|
vars:
|
|
manage_pip_packages_install_prereqs: true
|
|
manage_pip_packages_list:
|
|
- name: hvac
|
|
version_constraint: latest
|
|
state: present
|
|
when: "'vault_servers' in group_names"
|
|
|
|
- name: "Ensure /etc/localtime exists"
|
|
ansible.builtin.file:
|
|
src: /etc/timezone
|
|
dest: /etc/localtime
|
|
owner: root
|
|
group: root
|
|
state: link
|