/
prerequisites.yml
69 lines (63 loc) · 1.46 KB
/
prerequisites.yml
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
63
64
65
66
67
68
69
---
- name: include remove_ceph_udev_rules.yml
include_tasks: remove_ceph_udev_rules.yml
- name: debian based systems tasks
block:
- name: include debian_prerequisites.yml
include_tasks: debian_prerequisites.yml
tags:
with_pkg
- name: install python-six
package:
name: python-six
state: present
update_cache: yes
tags:
with_pkg
when:
- ansible_distribution == 'Debian'
- name: ubuntu based systems tasks
block:
- name: install docker on ubuntu
package:
name: ['docker.io', 'python-docker']
state: present
update_cache: yes
tags:
with_pkg
when:
- ansible_distribution == 'Ubuntu'
# ensure extras enabled for docker
- name: enable extras on centos
yum_repository:
name: extras
state: present
enabled: yes
when:
- ansible_distribution == 'CentOS'
- ceph_docker_enable_centos_extra_repo
tags:
with_pkg
- name: red hat based systems tasks
block:
- name: install python-docker-py on red hat / centos
package:
name: ['docker', 'python-docker-py']
state: present
tags:
with_pkg
when:
- ansible_os_family == 'RedHat'
- name: pause after docker install before starting (on openstack vms)
pause: seconds=5
when:
- ceph_docker_on_openstack
tags:
with_pkg
- name: start docker service
service:
name: docker
state: started
enabled: yes
tags:
with_pkg