[#454] codify LibreNMS network drift report as AWX job
ci / audit (push) Successful in 46s

https://projects.knownelement.com/issues/454
This commit is contained in:
2026-09-06 02:28:58 -05:00
parent e9003721e3
commit a9aef9cf0f
2 changed files with 23 additions and 1 deletions
+22
View File
@@ -0,0 +1,22 @@
---
# librenms_drift_report.yml — network-layer CMDB drift (LibreNMS vs GLPI) [#808/#705]
# Runs on the workstation; report lands in /var/log/glpi-reconcile/.
- name: Network-layer CMDB drift report
hosts: ultix-streaming
gather_facts: false
tasks:
- name: run librenms-glpi drift report as reachableceo
ansible.builtin.command:
cmd: >
bash /home/reachableceo/projects/KNEL/OAM/inventory/scripts/librenms-glpi-drift.sh
--out /var/log/glpi-reconcile/librenms-drift-latest.md
become: true
become_user: reachableceo
become_method: su
register: drift
failed_when: drift.rc not in [0, 3]
changed_when: false
- name: show drift summary
ansible.builtin.debug:
msg: "{{ drift.stdout_lines[:6] }}"