summaryrefslogtreecommitdiffstats
path: root/vagrant/roles/setup.prep/tasks/centos8.yml
blob: 1a388c31cefafe66fa8b6a381ac06de5e7dad06f (plain)
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
36
37
38
39
40
41
42
43
44
45
46
- name: update packages
  yum:
    name: '*'
    state: latest

- name: Enable EPEL repository
  yum:
    name: epel-release
    state: latest

- name: Install Python3 pip
  yum:
    name: python3-pip
    state: installed

- name: Install pip jinja2 library
  pip:
    name: jinja2
    state: latest

# RHEL 8 image doesn't include make
- name: Install additional packages
  yum:
    name: make
    state: installed

- name: add copr to get gluster-ansible from sac
  block:

    - name: Install yum copr plugin
      yum:
        name: yum-plugin-copr
        state: latest

    - name: add copr to get gluster-ansible
      command: yum -y copr enable sac/gluster-ansible

- name: Install gluster-ansible
  yum:
    name:
      - gluster-ansible-cluster
      - gluster-ansible-features
      - gluster-ansible-infra
      - gluster-ansible-maintenance
      - gluster-ansible-repositories
    state: latest