feat(ansible): add semaphore docker splash demo with dagster config

This commit is contained in:
Matteo Basile
2026-05-04 11:51:13 +02:00
commit 63aa0658ef
13 changed files with 565 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
---
- name: Undeploy demo container
hosts: webservers
become: yes
vars_files:
- group_vars/all.yml
tasks:
- name: Rimuovi container demo
community.docker.docker_container:
name: "{{ container_name }}"
state: absent
- name: Rimuovi immagine (opzionale)
community.docker.docker_image:
name: "{{ nginx_image }}"
tag: "{{ nginx_version }}"
state: absent
when: remove_image | bool
- name: Rimuovi directory applicazione
ansible.builtin.file:
path: /opt/semaphore-splash
state: absent
- name: Conferma undeploy
ansible.builtin.debug:
msg: "Container {{ container_name }} rimosso con successo"