在《The DevOps 2.0 Toolkit》测试时要作的ansible的配置更改

这本极有用。要看完,测试完。

在《The DevOps 2.0 Toolkit》测试时要作的ansible的配置更改

原生的配置:

- name: Docker Compose is present
  get_url:
    url: https://github.com/docker/compose/releases/download/1.4.1/docker-compose-Linux-x86_64
    dest: /usr/local/bin/docker-compose
  tags: [docker]

因为老是超时,所以更改为如下的红字,先自己CP下来,再CP到VAGRANT中去。

- name: Add Docker repository and update apt cache
  apt_repository:
    repo: deb https://apt.dockerproject.org/repo ubuntu-trusty main
    update_cache: yes
    state: present
  tags: [docker]

- name: Docker is present
  apt:
    name: docker-engine
    state: latest
    force: yes
  tags: [docker]

- name: Python-pip is present
  apt: name=python-pip state=present
  tags: [docker]

- name: Docker-py is present
  pip: name=docker-py version=0.4.0 state=present
  tags: [docker]

- name: Docker Compose is present
  copy: src=/vagrant/docker-compose-Linux-x86_64 dest=/usr/local/bin/docker-compose
  tags: [docker]

- name: Docker Compose permissions are set
  file:
    path: /usr/local/bin/docker-compose
    mode: 0755
  tags: [docker]
上一篇:C#_技巧:真伪随机数


下一篇:2、jQuery的基本概念-必看-版本-入口函数- jq对象和dom对象区别