Danny Bessems
8a83f47572
All checks were successful
continuous-integration/drone/push Build is passing
53 lines
1.4 KiB
YAML
53 lines
1.4 KiB
YAML
# - name: Create folder structure(s)
|
|
# ansible.builtin.file:
|
|
# path: "{{ item }}"
|
|
# state: directory
|
|
# loop:
|
|
# - /foo
|
|
|
|
- name: Download & install static binaries
|
|
ansible.builtin.get_url:
|
|
url: "{{ item.url }}"
|
|
dest: /usr/local/bin/{{ item.filename }}
|
|
owner: root
|
|
group: root
|
|
mode: 0755
|
|
loop: "{{ dependencies.static_binaries | selectattr('archive', 'undefined') }}"
|
|
loop_control:
|
|
label: "{{ item.filename }}"
|
|
|
|
- name: Download, extract & install archived static binaries
|
|
include_tasks: dependencies.archive_compressed.yml
|
|
loop: "{{ dependencies.static_binaries | rejectattr('archive', 'undefined') | selectattr('archive', 'equalto', 'compressed') }}"
|
|
loop_control:
|
|
label: "{{ item.filename }}"
|
|
|
|
- name: Install ansible-galaxy collections
|
|
ansible.builtin.shell:
|
|
cmd: ansible-galaxy collection install {{ item }}
|
|
loop: "{{ dependencies.ansible_galaxy_collections }}"
|
|
|
|
- ansible.builtin.command:
|
|
cmd: ls ~/.ansible -lashR
|
|
register: results
|
|
- ansible.builtin.debug:
|
|
var: results
|
|
|
|
- name: Install distro packages
|
|
ansible.builtin.apt:
|
|
pkg: "{{ dependencies.packages }}"
|
|
state: latest
|
|
update_cache: yes
|
|
install_recommends: no
|
|
|
|
- name: Upgrade all packages
|
|
ansible.builtin.apt:
|
|
name: '*'
|
|
state: latest
|
|
update_cache: yes
|
|
|
|
- name: Cleanup apt cache
|
|
ansible.builtin.apt:
|
|
autoremove: yes
|
|
purge: yes
|