Files
les-06/ansible/main.yml
Ditmar Visser 9e76a3716a
Some checks failed
Provision & Configure / Terraform Apply (push) Failing after 1m2s
feat: install six on host machine
2025-06-11 15:03:37 +00:00

30 lines
755 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"