Replaces the minimal project description with a comprehensive README including a component overview table, quick start instructions, common Ansible operations, and links to detailed documentation. Aligns with Red Panda Approval™ standards.
32 lines
866 B
YAML
32 lines
866 B
YAML
---
|
|
- name: Remove Argos from Dev Environment
|
|
hosts: ubuntu
|
|
become: true
|
|
|
|
tasks:
|
|
- name: Check if host has argos service
|
|
ansible.builtin.set_fact:
|
|
has_argos_service: "{{ 'argos' in services | default([]) }}"
|
|
|
|
- name: Skip hosts without argos service
|
|
ansible.builtin.meta: end_host
|
|
when: not has_argos_service
|
|
|
|
- name: Stop and remove Docker containers, volumes, and images
|
|
community.docker.docker_compose_v2:
|
|
project_src: "{{argos_directory}}"
|
|
state: absent
|
|
remove_images: all
|
|
remove_volumes: true
|
|
|
|
- name: Prune Docker images
|
|
ansible.builtin.docker_prune:
|
|
images: true
|
|
images_filters:
|
|
dangling: false
|
|
|
|
- name: Remove Argos directory
|
|
become: true
|
|
ansible.builtin.file:
|
|
path: "{{argos_directory}}"
|
|
state: absent |