ci: deploy application to target via Ansible
CI / smoke-test (push) Failing after 32s

This commit is contained in:
Mikhail Lobanov
2026-10-21 11:59:49 +03:00
parent 5a21852135
commit 7d656c1ae6
9 changed files with 211 additions and 74 deletions
+28
View File
@@ -0,0 +1,28 @@
---
- name: Install Docker Engine
hosts: targets
become: true
tasks:
- name: Update apt cache
ansible.builtin.apt:
update_cache: true
cache_valid_time: 3600
- name: Install Docker and Compose plugin
ansible.builtin.apt:
name:
- docker.io
- docker-compose-v2
state: present
- name: Ensure Docker is running
ansible.builtin.service:
name: docker
state: started
enabled: true
- name: Verify Docker Compose
ansible.builtin.command:
cmd: docker compose version
changed_when: false