diff options
author | Sachin Prabhu <sprabhu@redhat.com> | 2021-02-17 23:43:20 +0000 |
---|---|---|
committer | Anoop C S <anoopcs@cryptolab.net> | 2021-03-23 16:47:53 +0530 |
commit | c843fa481bc860f538a546e3a2e86c7314cffed2 (patch) | |
tree | 52227999bf260a8be101dfa48460735aed8d8690 /vagrant/ansible/roles/common.prep/tasks/centos7.yml | |
parent | 2a86c0b9ce958986dac18a17ecece4a2a1f8d931 (diff) | |
download | samba-integration-c843fa481bc860f538a546e3a2e86c7314cffed2.tar.gz samba-integration-c843fa481bc860f538a546e3a2e86c7314cffed2.tar.xz samba-integration-c843fa481bc860f538a546e3a2e86c7314cffed2.zip |
Add distro specific actions for common.prep
Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
Diffstat (limited to 'vagrant/ansible/roles/common.prep/tasks/centos7.yml')
-rw-r--r-- | vagrant/ansible/roles/common.prep/tasks/centos7.yml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/vagrant/ansible/roles/common.prep/tasks/centos7.yml b/vagrant/ansible/roles/common.prep/tasks/centos7.yml new file mode 100644 index 0000000..a2e6e5b --- /dev/null +++ b/vagrant/ansible/roles/common.prep/tasks/centos7.yml @@ -0,0 +1,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 |