Linux/Ansible/Playbooks

From Wiki
< Linux‎ | Ansible
Revision as of 07:54, 18 May 2019 by Marcluer (talk | contribs)

Docker role

  • Docker:
- name: Install prerequisites
  apt:
    update_cache: yes
    name: ["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
  • Docker-compose:


Docker