Commit 35b3228e authored by nanahira's avatar nanahira

support using docker task outside

parent 000a86fe
......@@ -18,3 +18,4 @@ china_mirror_pip: false
china_mirror_omf: false
cpufreq_policy: none
vm_agents_status: present
docker_template_path: 'daemon.json.j2'
......@@ -116,13 +116,11 @@
become: true
pip:
name: docker-compose
executable: '{{pip_executable}}'
when: not china_mirror_pip
- name: docker-compose 国内
become: true
pip:
name: docker-compose
executable: '{{pip_executable}}'
extra_args: -i https://mirrors.aliyun.com/pypi/simple/
when: china_mirror_pip
- name: docker 配置 创建目录
......@@ -133,7 +131,7 @@
- name: docker 配置
become: true
template:
src: daemon.json.j2
src: '{{docker_template_path}}'
dest: /etc/docker/daemon.json
notify: reload_docker
- name: docker 启动
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment