instala docker no container saucy
This commit is contained in:
parent
79b0a563be
commit
4f8568f1ba
37
05_container_saucy.yaml
Normal file
37
05_container_saucy.yaml
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
---
|
||||||
|
- name: SAUCY
|
||||||
|
hosts: saucy@lxd.ansol.org
|
||||||
|
become: true
|
||||||
|
tasks:
|
||||||
|
- name: SAUCY -- install needed packages
|
||||||
|
become: true
|
||||||
|
package:
|
||||||
|
state: present
|
||||||
|
name: '{{ item }}'
|
||||||
|
with_items:
|
||||||
|
- ca-certificates
|
||||||
|
- curl
|
||||||
|
- gnupg
|
||||||
|
- lsb-release
|
||||||
|
- name: SAUCY -- add Docker GPG key
|
||||||
|
apt_key:
|
||||||
|
url: https://download.docker.com/linux/ubuntu/gpg
|
||||||
|
state: present
|
||||||
|
- name: SAUCY -- add Docker repository to apt
|
||||||
|
apt_repository:
|
||||||
|
repo: deb https://download.docker.com/linux/ubuntu focal stable
|
||||||
|
state: present
|
||||||
|
- name: SAUCY -- install docker
|
||||||
|
apt:
|
||||||
|
name: '{{item}}'
|
||||||
|
state: latest
|
||||||
|
update_cache: yes
|
||||||
|
loop:
|
||||||
|
- docker-ce
|
||||||
|
- docker-ce-cli
|
||||||
|
- containerd.io
|
||||||
|
- name: SAUCY -- start, and enable, docker service
|
||||||
|
service:
|
||||||
|
name: docker
|
||||||
|
state: started
|
||||||
|
enabled: yes
|
Loading…
Reference in New Issue
Block a user