2023-03-30 14:28:10 +02:00
|
|
|
# ===================================================================================================
|
2023-03-27 16:52:42 +02:00
|
|
|
# ? ABOUT
|
|
|
|
|
# @author : Noah Knegt
|
|
|
|
|
# @email : personal@noahknegt.com
|
|
|
|
|
# @repo : https://git.noahknegt.com/noah.knegt/ansible-automations
|
|
|
|
|
# @createdOn : 27-03-2023
|
|
|
|
|
# @description : This will make sure that docker is installed on the machine.
|
2023-03-30 14:28:10 +02:00
|
|
|
# ===================================================================================================
|
2023-03-27 16:52:42 +02:00
|
|
|
|
|
|
|
|
---
|
|
|
|
|
- name: Get docker script
|
|
|
|
|
get_url:
|
|
|
|
|
url: https://get.docker.com
|
|
|
|
|
dest: /tmp/get-docker.sh
|
|
|
|
|
mode: 0755
|
|
|
|
|
|
|
|
|
|
- name: Run docker script
|
|
|
|
|
shell: /tmp/get-docker.sh
|
|
|
|
|
|
|
|
|
|
- name: Remove docker script
|
|
|
|
|
file:
|
|
|
|
|
path: /tmp/get-docker.sh
|
|
|
|
|
state: absent
|