blob: b962a0d688b0a2c17d22ba2d9bec7560a820f3d1 (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
- name: Check for node connectivity
block:
- name: read list of nodes from file cluster_nodes.yml
include_vars:
file: cluster-vars.yml
- name: get hostname
command: hostname
register: output
- name: print hostname
debug:
var: output.stdout
# this is the way gluster-ansible accesses the nodes
- name: Test ssh to nodes via node address
command: /bin/true
delegate_to: "{{ item }}"
with_items: "{{ gluster_cluster_hosts }}"
- name: Enable GlusterFS nightly rpms repository
command: yum-config-manager --add-repo http://artifacts.ci.centos.org/gluster/nightly/master.repo
- name: Install GlusterFS rpms
yum:
name: "{{ gluster_rpms }}"
state: latest
vars:
gluster_rpms:
- glusterfs-server
- name: Install basic tools
yum:
name: "{{ tools }}"
state: latest
vars:
tools:
- lvm2
- firewalld
- libselinux-python
- name: add copr to get compat-gnutls34 (needed for centos 7)
block:
- 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\]'
when: ansible_distribution == 'CentOS' and ansible_distribution_major_version == '7'
- name: Enable Samba nightly rpms repository
command: yum-config-manager --add-repo http://artifacts.ci.centos.org/gluster/nightly-samba/samba-nightly-master.repo
|