Skip to content

Commit f98b12c

Browse files
authored
Doc: Remove howto artifacts with destroy sequence (#6532)
1 parent 2a191d2 commit f98b12c

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

  • ansible_collections/arista/avd/extensions/molecule/howto

ansible_collections/arista/avd/extensions/molecule/howto/destroy.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,14 @@
1515
- intended
1616
- config_backup
1717
- reports
18+
19+
- name: Delete howto artifact folders
20+
delegate_to: 127.0.0.1
21+
run_once: true
22+
ansible.builtin.file:
23+
path: "{{ how_to_root_dir }}/{{ item }}"
24+
state: absent
25+
with_items:
26+
- connected_endpoints/artifacts
27+
- network_services/artifacts
28+
- node_types/artifacts
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
---
22
root_dir: '{{ playbook_dir }}/inventory'
3+
how_to_root_dir: "{{ lookup('pipe', 'git rev-parse --show-toplevel') }}/docs/howto"

0 commit comments

Comments
 (0)