Files
ansible-automations/roles/docker/tasks/main.yml
Noah Knegt b004c758ae Add docker role
Signed-off-by: Noah Knegt <git@noahknegt.com>
2023-03-27 16:52:42 +02:00

24 lines
786 B
YAML

#===================================================================================================
# ? 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.
#===================================================================================================
---
- 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