1. modify function of deploy docker env

This commit is contained in:
fumingwei
2020-11-03 12:20:01 +06:00
parent 3d860e8a10
commit eb0494847c
12 changed files with 85 additions and 9 deletions

View File

@@ -0,0 +1,21 @@
---
- name: "python3: copy python3.zip to dest device"
copy:
src: '{{ role_path }}/files/python3.zip'
dest: /tmp/ansible_deploy/
- name: "python3: unarchive python3.zip"
unarchive:
src: /tmp/ansible_deploy/python3.zip
dest: /tmp/ansible_deploy/
remote_src: yes
- name: "python3: install python3 rpm package and dependencies"
yum:
name:
- /tmp/ansible_deploy/python3/python3-libs-3.6.8-13.el7.x86_64.rpm
- /tmp/ansible_deploy/python3/python3-3.6.8-13.el7.x86_64.rpm
- /tmp/ansible_deploy/python3/python3-pip-9.0.3-7.el7_7.noarch.rpm
- /tmp/ansible_deploy/python3/python3-setuptools-39.2.0-10.el7.noarch.rpm
- /tmp/ansible_deploy/python3/libtirpc-0.2.4-0.16.el7.x86_64.rpm
state: present