Adiciona Saucy #17

Merged
hugopeixoto merged 12 commits from add-saucy-container into master 2022-09-28 17:14:52 +00:00
Showing only changes of commit 4f8568f1ba - Show all commits

37
05_container_saucy.yaml Normal file
View 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