Files
ansible-automations/roles/docker/tasks/main.yml

24 lines
788 B
YAML
Raw Normal View History

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