Sha256: 38c766aa609703f37ebbf861de19fc7a51d9d814552cf4987b50e930709fbda7

Contents?: true

Size: 1.54 KB

Versions: 1

Compression:

Stored size: 1.54 KB

Contents

---
- hosts: all
  become: yes
  tasks:
    - name: install additional packages
      apt:
        name:
          - vim
          - htop
          - curl
        state: present
        update_cache: yes

    - name: get hostname
      command: hostname
      register: realHostName

    - name: fix host rename
      lineinfile:
        dest: '/etc/hosts'
        regexp: '^127.0.1.1'
        line: "127.0.1.1	{{ realHostName.stdout }}"
        state: present

    - name: add folder for generating host.key failure
      file:
        path: '/var/lib/rancher/etc/ssl'
        owner: root
        group: root
        state: directory

    - name: fix resolv.conf
      copy:
        dest: /etc/resolv.conf
        content: 'nameserver 10.0.2.3'

    - name: install dependencies for docker
      apt:
        update_cache: yes
        name:
          - apt-transport-https
          - ca-certificates
          - gnupg2
        state: latest

    - name: add apt key
      shell: curl -fsSL https://apt.dockerproject.org/gpg | sudo apt-key add -

    - name: create source list for docker
      copy:
        dest: /etc/apt/sources.list.d/docker.list
        content: "deb https://apt.dockerproject.org/repo debian-jessie main"
        mode: 0644

    - name: install docker
      apt:
        update_cache: yes
        name:
          - docker-engine
        state: latest

    - name: make local docker repo inscure so it still works without https
      copy:
        dest: /etc/docker/daemon.json
        content: !unsafe '{ "insecure-registries":["192.168.123.1:5000"] }'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rancher-api-beta-0.8.1 vagrant-rancher/ansible/docker.yml