Swarm operational

This commit is contained in:
lif
2025-10-12 12:30:50 +01:00
parent 6368588bce
commit 0a562d8d01
9 changed files with 233 additions and 63 deletions

View File

@@ -2,6 +2,36 @@
command: free -m
register: memory_info
changed_when: false
- name: Run the equivalent of "apt-get update" as a separate step
- name: apt update
ansible.builtin.apt:
update_cache: yes
- name: Ensure Python pip is installed
package:
name: python3-pip
state: present
- name: Ensure Docker SDK for Python is installed
pip:
name: docker>=5.0.0
executable: pip3
- name: Ensure Docker Compose is installed
pip:
name: docker-compose>=1.29.0
executable: pip3
- name: Install 'jsondiff' Python module
pip:
name: jsondiff
executable: pip3
- name: wait for docker service
service:
name: docker
state: started
register: docker_service
until: docker_service.status.ActiveState == "active"
retries: 10
delay: 20