summaryrefslogtreecommitdiffstats
path: root/vagrant/roles/setup.prep/tasks/centos7.yml
blob: e435bb3283a803fa1f97eac099f1028f05aaf556 (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
- name: update packages
  yum:
    name: '*'
    state: latest

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

- name: Install Python2 pip
  yum:
    name: python2-pip
    state: installed

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

- 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"
    state: latest