-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhari.yml
41 lines (35 loc) · 934 Bytes
/
hari.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
---
-hosts:all
become:true
- name: Disable SElinux
lineinfile:
dest: '/etc/selinux/config'
regexp: 'SELINUX='
line: 'SELINUX=disabled'
backup: 'true'
- name: Disable Firewall Services
service: name={{item}} enabled=no
with_items:
- iptables
- firewalld
- name: Add docker apt-key
apt_key: url=https://get.docker.io/gpg state=present
- name: add repo
apt_repository: repo='deb http://get.docker.io/ubuntu docker main' state=present
- name: Install docker
apt: pkg={{ item }} state=present update_cache=true cache_valid_time=3600
with_items:
- lxc-docker
- git \
- wget \
- curl \
- vim \
- openssh-server \
- mongodb-org-shell \
- mongodb-org-tools \
- sysstat \
- default-jdk
- name: install docker-py
pip: name=docker-py
- name: Starting Docker
service: name: docker state: started