Improve emitter and time stamping.

The emitter failed to keep book on hosts where ansible did not succeed.
This commit is contained in:
Andreas B. Mundt 2024-02-20 16:35:54 +01:00
parent 37e4108021
commit 665109ef55
3 changed files with 171 additions and 169 deletions

View file

@ -87,12 +87,7 @@
- lmn_security
tasks:
- name: Timestamp successfull run
ansible.builtin.shell: date --iso-8601=seconds >> /root/.ansible/stamps
changed_when: False
tags: upgrade
## Temporary fixes and quirks:
## Temporary fixes and quirks:
- name: Fix 8086:4909 external graphics card
replace:
dest: "/etc/default/grub"
@ -244,6 +239,14 @@
line: DefaultTimeoutStopSec=5s
insertafter: '^#DefaultTimeoutStopSec=.*'
#################
- name: Timestamp successfull run and send up-to-date report
ansible.builtin.shell:
cmd: date --iso-8601=seconds >> /root/.ansible/stamps && /usr/local/sbin/reporter
changed_when: False
tags: upgrade
#################
- name: Apply additional laptop configuration