Skip to content

Instantly share code, notes, and snippets.

@snzip
Forked from rbq/docker.yaml
Created April 8, 2020 08:04
Show Gist options
  • Select an option

  • Save snzip/d6d590320538be0c5fe848b588442dc0 to your computer and use it in GitHub Desktop.

Select an option

Save snzip/d6d590320538be0c5fe848b588442dc0 to your computer and use it in GitHub Desktop.

Revisions

  1. @rbq rbq revised this gist Sep 10, 2019. 2 changed files with 12 additions and 1 deletion.
    11 changes: 11 additions & 0 deletions docker-compose.yaml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    ---
    - hosts: all
    tasks:
    - name: Install prerequisites
    apt:
    name: ['python3-pip', 'python3-setuptools', 'virtualenv']
    update_cache: yes

    - name: Install docker-compose
    pip:
    name: docker-compose
    2 changes: 1 addition & 1 deletion docker.yml → docker.yaml
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@
    tasks:
    - name: Install prerequisites
    apt:
    name: ['apt-transport-https','ca-certificates','curl','gnupg2','software-properties-common']
    name: ['apt-transport-https', 'ca-certificates', 'curl', 'gnupg2' ,'software-properties-common']
    update_cache: yes

    - name: Add Docker GPG key
  2. @rbq rbq revised this gist Jun 25, 2019. 1 changed file with 14 additions and 12 deletions.
    26 changes: 14 additions & 12 deletions docker.yml
    Original file line number Diff line number Diff line change
    @@ -1,17 +1,19 @@
    ---
    - hosts: all
    tasks:
    - name: Install prerequisites
    apt: name={{item}} update_cache=yes
    with_items:
    - apt-transport-https
    - ca-certificates
    - curl
    - software-properties-common
    - name: Add Docker GPG key
    - name: Install prerequisites
    apt:
    name: ['apt-transport-https','ca-certificates','curl','gnupg2','software-properties-common']
    update_cache: yes

    - name: Add Docker GPG key
    apt_key: url=https://download.docker.com/linux/ubuntu/gpg
    - name: Add Docker APT repository

    - name: Add Docker APT repository
    apt_repository:
    repo: deb [arch=amd64] https://download.docker.com/linux/ubuntu {{ansible_distribution_release}} stable
    - name: Install Docker
    apt: name=docker-ce
    repo: deb [arch=amd64] https://download.docker.com/linux/{{ansible_distribution|lower}} {{ansible_distribution_release}} stable

    - name: Install Docker
    apt:
    name: docker-ce
    update_cache: yes
  3. @rbq rbq created this gist Sep 3, 2017.
    17 changes: 17 additions & 0 deletions docker.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    ---
    - hosts: all
    tasks:
    - name: Install prerequisites
    apt: name={{item}} update_cache=yes
    with_items:
    - apt-transport-https
    - ca-certificates
    - curl
    - software-properties-common
    - name: Add Docker GPG key
    apt_key: url=https://download.docker.com/linux/ubuntu/gpg
    - name: Add Docker APT repository
    apt_repository:
    repo: deb [arch=amd64] https://download.docker.com/linux/ubuntu {{ansible_distribution_release}} stable
    - name: Install Docker
    apt: name=docker-ce