You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible-homelab/roles/gantsign.golang/molecule/default/converge.yml

35 lines
894 B
YAML

# code: language=ansible
---
- name: Converge
hosts: all
pre_tasks:
# Workarround broken CA certerficates hash on Ubuntu 20.04 arm32
- name: Rehash certificate
become: true
ansible.builtin.command: c_rehash
when:
- ansible_facts.architecture == 'armv7l'
- ansible_facts.distribution == 'Ubuntu'
- ansible_facts.distribution_version == '20.04'
changed_when: false
roles:
- role: ansible-role-golang
golang_gopath: '$HOME/workspace-go'
post_tasks:
- name: Install which
ansible.builtin.package:
name: which
state: present
when: ansible_facts.pkg_mgr in ('yum', 'dnf', 'zypper')
# provides /etc/profile
- name: Install aaa_base (zypper)
become: true
ansible.builtin.package:
name: aaa_base
state: present
when: ansible_facts.pkg_mgr == 'zypper'