Skip to content
Snippets Groups Projects
Commit a5542f26 authored by Jörg Sachse's avatar Jörg Sachse
Browse files

fix: check for unresolved TODOs/FIXMEs before running playbook

parent 495d97ab
No related branches found
No related tags found
No related merge requests found
---
- hosts: localhost
connection: local
post_tasks:
- name: check for FIXMEs
find:
path: "{{ playbook_dir }}"
pattern: "*.yml"
recurse: true
contains: ".*(FIXME|TODO).*"
excludes:
- "site.yml"
register: result_fixmes
- name: CHECK FOR UNRESOLVED ISSUES/TODOs
debug:
msg: "Unresolved FIXME/TODO in {{ item.path }}"
loop: "{{ result_fixmes.files }}"
when: result_fixmes.matched > 0
- hosts: lza_ingest_*
# strategy plugin setting, default: linear, docu: https://docs.ansible.com/ansible/latest/plugins/strategy.html
......@@ -31,22 +49,4 @@
roles:
# - { role: ansible_lza_install_common, become: true }
# - { role: ansible_lza_server_hardening, become: true }
- { role: ansible_lza_ingest, become: true }
- hosts: localhost
connection: local
post_tasks:
- name: check for FIXMEs
find:
path: "{{ playbook_dir }}"
pattern: "*.yml"
recurse: true
contains: ".*(FIXME|TODO).*"
excludes:
- "site.yml"
register: result_fixmes
- name: CHECK FOR UNRESOLVED ISSUES/TODOs
debug:
msg: "Unresolved FIXME/TODO in {{ item.path }}"
loop: "{{ result_fixmes.files }}"
when: result_fixmes.matched > 0
- {role: ansible_lza_ingest, become: true}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment