-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker_centos.yml
45 lines (36 loc) · 1.33 KB
/
docker_centos.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
- hosts: all
tasks:
- name: Creating epel repository in yum
copy:
dest: "/etc/yum.repos.d/epel_myrepo.repo"
content: |
[epel]
baseurl=https://dl.fedoraproject.org/pub/epel/7/x86_64/
gpgcheck=0
[dock]
baseurl=file:///dv
gpgcheck=0
- name: sending docker package
copy:
dest: "/dv"
src: "/root/Desktop/rhel7_extra_new_rpm/docker/"
- copy:
src: "/root/Desktop/rhel7_5_software_extras/"
dest: "/root/"
- name: Installing python2-pip
package:
name: python2-pip
state: present
- name: Installing docker-py package
command: pip2 install docker-py
- name: Installing docker-ce
package:
name: "docker-ce"
state: present
- systemd:
name: "docker"
state: started
- docker_image:
name: "centos:latest"
load_path: "/root/centos-latest.tar"
state: present