summaryrefslogtreecommitdiffstats
path: root/vagrant/ansible/roles/common.prep/tasks/centos7.yml
blob: a2e6e5bd583108a0e8b231c84365dbb155f2e019 (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
- name: Perform a complete update
  yum:
    name: '*'
    state: latest

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

- name: Enable GlusterFS nightly rpms repository
  command: yum-config-manager --add-repo http://artifacts.ci.centos.org/gluster/nightly/master.repo

# add copr to get compat-gnutls34 (needed for centos 7)
- name: Install yum copr plugin
  yum:
    name: yum-plugin-copr
    state: latest

- name: add copr to get compat-gnutls34
  command: yum -y copr enable sergiomb/SambaAD

- name: modify copr repo to only use it for compat-gnutls packages
  lineinfile:
    dest: /etc/yum.repos.d/_copr_sergiomb-SambaAD.repo
    line: "includepkgs=compat-gnutls34.* compat-nettle32.*"
    insertafter: '\[copr:copr.fedorainfracloud.org:sergiomb:SambaAD\]'

- name: Enable Samba nightly rpms repository
  command: yum-config-manager --add-repo http://artifacts.ci.centos.org/gluster/nightly-samba/samba-nightly-master.repo