diff options
author | Sachin Prabhu <sprabhu@redhat.com> | 2021-02-18 16:40:28 +0000 |
---|---|---|
committer | Anoop C S <anoopcs@cryptolab.net> | 2021-04-15 15:25:10 +0530 |
commit | 44b55cbfc9d3d47f649a613e66cb23a5739ac8fc (patch) | |
tree | 44099525e2abd472667fd5167c47b3f127001ad4 | |
parent | c97d754c1ab0937bfe6270d74c32c7eacc42f02d (diff) | |
download | samba-integration-44b55cbfc9d3d47f649a613e66cb23a5739ac8fc.tar.gz samba-integration-44b55cbfc9d3d47f649a613e66cb23a5739ac8fc.tar.xz samba-integration-44b55cbfc9d3d47f649a613e66cb23a5739ac8fc.zip |
Add CentOS 8 specific actions for setup.prep
A difference to CentOS7, we install individual gluster-ansible packages.
The gluster-ansible package doesn't exist for CentOS 8
We also install make which doesn't exist in the CentOS 8 image used by
Vagrant.
Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
-rw-r--r-- | vagrant/roles/setup.prep/tasks/centos8.yml | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/vagrant/roles/setup.prep/tasks/centos8.yml b/vagrant/roles/setup.prep/tasks/centos8.yml new file mode 100644 index 0000000..1a388c3 --- /dev/null +++ b/vagrant/roles/setup.prep/tasks/centos8.yml @@ -0,0 +1,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 |