-
Notifications
You must be signed in to change notification settings - Fork 314
/
main.yml
35 lines (30 loc) · 1.01 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
- name: centos 8 - ensure powertools installed
block:
- name: ensure prereq packages installed
yum:
name: "dnf-plugins-core"
state: "present"
- name: enable powertools
command: "yum config-manager --set-enabled powertools"
register: enable_powertools
changed_when: enable_powertools.rc != 0
when: (ansible_distribution == "CentOS") and (ansible_distribution_major_version == "8")
- name: rhel 8 - ensure CRB repository is enabled
rhsm_repository:
name: "codeready-builder-for-rhel-8-x86_64-rpms"
when: (ansible_distribution == "Red Hat Enterprise Linux") and (ansible_distribution_major_version == "8")
- name: debian - ensure apt cache is up to date
apt:
update_cache: yes
when: ansible_os_family == "Debian"
- name: create a folder for go
file:
path: "{{ golang_install_dir }}"
recurse: yes
- name: install golang explicitly
include_role:
name: gantsign.golang
- name: install singularity
include_role:
name: abims_sbr.singularity