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
+25
View File
@@ -0,0 +1,25 @@
---
- name: Install and configure Nginx
hosts: targets
become: true
tasks:
- name: Install Nginx
ansible.builtin.apt:
name: nginx
state: present
update_cache: true
- name: Ensure Nginx is running
ansible.builtin.service:
name: nginx
state: started
enabled: true
- name: Deploy index page
ansible.builtin.template:
src: ../templates/index.html.j2
dest: /var/www/html/index.html
owner: root
group: root
mode: '0644'