Linux/Ansible/Playbooks: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
== Docker == | == Docker role== | ||
* Docker | * Docker | ||
*: <pre> | *: | ||
<pre> | |||
- name: Install prerequisites | - name: Install prerequisites | ||
apt: | apt: | ||
Line 17: | Line 18: | ||
apt: name=docker-ce | apt: name=docker-ce | ||
</pre> | </pre> | ||
* Docker-compose | |||
*: | |||
<pre> | |||
</pre> | |||
== Docker == | == Docker == |
Revision as of 07:53, 18 May 2019
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