blob: 19c0caef57bd1df2b55e19614d51ad9686ee3c2a (
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
|
- name: update packages
yum:
name: '*'
state: latest
- name: Enable EPEL repository
yum:
name: epel-release
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
- name: copy ansible playbooks to setup machine
synchronize:
src: ansible/
dest: /home/vagrant/ansible
- name: ensure permissions on ssh key file
file:
path: /home/vagrant/ansible/vagrant_insecure_private_ssh_key
mode: u=rw,g=,o=
owner: vagrant
group: vagrant
- name: copy ssh config in place
copy:
src: ansible/ssh-config-setup
dest: /home/vagrant/.ssh/config
mode: 0600
owner: vagrant
group: vagrant
|