Implement fully automated Jenkins HW8 setup with Ansible, JCasC and JJB

This commit is contained in:
2026-04-15 22:56:40 +03:00
parent 9f801e52a4
commit 2aa8a49ee1
46 changed files with 1333 additions and 412 deletions
+16
View File
@@ -0,0 +1,16 @@
---
- name: Destroy OTUS HW8 Jenkins infrastructure
hosts: local
gather_facts: false
vars:
hw8_root: "{{ playbook_dir }}/../.."
compose_dir: "{{ hw8_root }}/compose"
compose_file: "{{ compose_dir }}/docker-compose.yml"
compose_env_file: "{{ compose_dir }}/.env"
tasks:
- name: Stop and remove compose stack
ansible.builtin.command:
cmd: docker compose -f {{ compose_file }} --env-file {{ compose_env_file }} down -v --remove-orphans
args:
chdir: "{{ compose_dir }}"