2023-12-23 22:30:53 +00:00
|
|
|
---
|
|
|
|
# hashistack prepare playbook
|
|
|
|
- name: "Bootstrap"
|
2024-07-11 21:28:44 +00:00
|
|
|
hosts: all, !deployment
|
2023-12-23 22:30:53 +00:00
|
|
|
gather_facts: true
|
|
|
|
become: true
|
|
|
|
tasks:
|
2024-07-11 21:28:44 +00:00
|
|
|
- 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
|
|
|
|
|
2023-12-28 22:10:17 +00:00
|
|
|
- name: "Install hvac library with pip"
|
|
|
|
ansible.builtin.include_role:
|
2024-02-07 20:49:00 +00:00
|
|
|
name: ednz_cloud.manage_pip_packages
|
2023-12-28 22:10:17 +00:00
|
|
|
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
|
|
|
|
2024-02-07 20:49:00 +00:00
|
|
|
- name: "Ensure /etc/localtime exists"
|
|
|
|
ansible.builtin.file:
|
|
|
|
src: /etc/timezone
|
|
|
|
dest: /etc/localtime
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
state: link
|