-
Notifications
You must be signed in to change notification settings - Fork 0
/
pacotes.yml
76 lines (51 loc) · 1.07 KB
/
pacotes.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
---
- name: instalacao de pacotes base
hosts: centos
tasks:
- name: pacotes base
yum:
name: "{{ item }}"
state: present
with_items:
- vim
- htop
- git
- sysstat
- nmap
- nginx
- name: removendo pacotes
yum:
name: "{{ item }}"
state: absent
with_items:
- docker
- docker-client
- docker-client-latest
- docker-common
- docker-latest
- docker-latest-logrotate
- docker-logrotate
- docker-selinux
- docker-engine-selinux
- docker-engine
- name: instalando dependencias
yum:
name: "{{ item }}"
state: present
with_items:
- yum-utils
- device-mapper-persistent-data
- lvm2
- name: instalando repo do docker
get_url:
url: https://download.docker.com/linux/centos/docker-ce.repo
dest: /etc/yum.repos.d/docker-ce.repo
- name: instalando docker
yum: name=docker-ce state=present
- name: iniciando servicos
service:
name: "{{ item }}"
state: restarted
with_items:
- nginx
- docker