2022-06-24 22:50:44 +00:00
|
|
|
- name: Create folder structure(s)
|
2022-06-24 21:44:10 +00:00
|
|
|
ansible.builtin.file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: directory
|
|
|
|
loop:
|
2022-06-24 22:50:44 +00:00
|
|
|
- /opt/metacluster/dependencies/helm/charts
|
2022-06-24 21:44:10 +00:00
|
|
|
|
2022-06-24 22:50:44 +00:00
|
|
|
- name: Download & install static binaries
|
|
|
|
ansible.builtin.get_url:
|
|
|
|
url: "{{ item.url }}"
|
2022-06-25 06:28:44 +00:00
|
|
|
dest: "/usr/local/bin/{{ item.filename }}"
|
2022-06-24 22:50:44 +00:00
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0755
|
|
|
|
loop: "{{ dependencies.static_binaries }}"
|
|
|
|
|
|
|
|
- name: Install ansible-galaxy collections
|
2022-06-24 21:44:10 +00:00
|
|
|
ansible.builtin.shell:
|
|
|
|
cmd: "ansible-galaxy collection install {{ item }}"
|
|
|
|
loop: "{{ dependencies.ansible_galaxy_collections }}"
|
2022-06-24 22:50:44 +00:00
|
|
|
|
2022-06-25 06:28:44 +00:00
|
|
|
- name: Install distro packages
|
|
|
|
ansible.builtin.apt:
|
|
|
|
name: "{{ item }}"
|
|
|
|
update_cache: yes
|
|
|
|
install_recommends: no
|
|
|
|
loop: "{{ dependencies.distro_packages }}"
|
|
|
|
|
|
|
|
- name: Update all packages
|
|
|
|
ansible.builtin.apt:
|
|
|
|
name: *
|
|
|
|
state: latest
|
|
|
|
|
2022-06-24 22:50:44 +00:00
|
|
|
- block:
|
|
|
|
|
2022-06-24 22:54:36 +00:00
|
|
|
- name: Download Helm binary
|
|
|
|
ansible.builtin.unarchive:
|
|
|
|
src: https://get.helm.sh/helm-{{ helm.version }}-linux-amd64.tar.gz
|
|
|
|
dest: /opt/metacluster/dependencies/helm
|
2022-06-24 22:50:44 +00:00
|
|
|
|
2022-06-24 22:54:36 +00:00
|
|
|
- name: Install Helm binary
|
|
|
|
ansible.builtin.copy:
|
|
|
|
src: /opt/metacluster/dependencies/helm/helm
|
|
|
|
dest: /usr/local/bin/helm
|
|
|
|
remote_src: yes
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0755
|