在《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]

 

上一篇:Tablestore入门指南-GetRange范围查询详解


下一篇:Java实现的几个常用排序算法详细解读