Files
les-06/ansible/main.yml
2025-06-11 15:06:35 +00:00

30 lines
763 B
YAML

- name: Configure Docker all hosts
hosts: all
become: true
roles:
- docker
- geerlingguy.pip
vars:
pip_install_packages:
- name: docker
- name: requests
tasks:
# - name: Ensure Python 3 and pip are installed
# ansible.builtin.raw: |
# sudo apt update && sudo apt install -y python3 python3-pip
# changed_when: false
# - name: Install 'six' module
# ansible.builtin.pip:
# name: six
- name: Delete existing hello world container
community.docker.docker_container:
name: "les-06"
state: absent
- name: Start hello world container
community.docker.docker_container:
name: "les-06"
image: "gitea.ditmarvisser.net/hbo-ict/les-06:latest"