This commit is contained in:
36
ansible/roles/appliance/tasks/dependencies.yml
Normal file
36
ansible/roles/appliance/tasks/dependencies.yml
Normal file
@ -0,0 +1,36 @@
|
||||
- name: Create folder structure(s)
|
||||
ansible.builtin.file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
loop:
|
||||
- /opt/metacluster/dependencies/helm/charts
|
||||
|
||||
- name: Download & install static binaries
|
||||
ansible.builtin.get_url:
|
||||
url: "{{ item.url }}"
|
||||
dest: "/usr/local/bin/{{ item.name }}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0755
|
||||
loop: "{{ dependencies.static_binaries }}"
|
||||
|
||||
- name: Install ansible-galaxy collections
|
||||
ansible.builtin.shell:
|
||||
cmd: "ansible-galaxy collection install {{ item }}"
|
||||
loop: "{{ dependencies.ansible_galaxy_collections }}"
|
||||
|
||||
- block:
|
||||
|
||||
- name: Download Helm binary
|
||||
ansible.builtin.unarchive:
|
||||
src: https://get.helm.sh/helm-{{ helm.version }}-linux-amd64.tar.gz
|
||||
dest: /opt/metacluster/dependencies/helm
|
||||
|
||||
- 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
|
2
ansible/roles/appliance/tasks/main.yml
Normal file
2
ansible/roles/appliance/tasks/main.yml
Normal file
@ -0,0 +1,2 @@
|
||||
- name: Install & configure dependencies
|
||||
import_tasks: dependencies.yml
|
Reference in New Issue
Block a user