This commit is contained in:
parent
84c8c8a884
commit
2dc421fb3e
1 changed files with 30 additions and 3 deletions
33
deploy.yml
33
deploy.yml
|
|
@ -1,6 +1,33 @@
|
||||||
---
|
---
|
||||||
|
# - hosts: all
|
||||||
|
# tasks:
|
||||||
|
# - name: Print message
|
||||||
|
# debug:
|
||||||
|
# msg: Hello Ansible World
|
||||||
|
|
||||||
- hosts: all
|
- hosts: all
|
||||||
|
become: true
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Print message
|
## Docker
|
||||||
debug:
|
#
|
||||||
msg: Hello Ansible World
|
- name: Add Docker GPG apt Key
|
||||||
|
apt_key:
|
||||||
|
url: https://download.docker.com/linux/ubuntu/gpg
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Add Docker Repository
|
||||||
|
apt_repository:
|
||||||
|
repo: deb https://download.docker.com/linux/ubuntu jammy stable
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Update apt and install docker-ce
|
||||||
|
apt:
|
||||||
|
name: docker-ce
|
||||||
|
state: latest
|
||||||
|
update_cache: true
|
||||||
|
|
||||||
|
- name: install pip3
|
||||||
|
apt:
|
||||||
|
name: python3-pip
|
||||||
|
state: latest
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue