Chris Hammer db75e69d99
All checks were successful
continuous-integration/drone/push Build is passing
Update motd role to no longer require Perl dependancy or script
2024-03-01 16:59:32 -05:00

12 lines
350 B
YAML

---
motd_motd_file: /etc/motd
motd_host_ip : "{{ ansible_default_ipv4.address | default('127.0.0.1') }}"
motd_host_uptime : "{{ now().replace(microsecond=0) - now().fromtimestamp(now(fmt='%s') | int - ansible_uptime_seconds) }}"
motd_day_filter : "(.* day[s]?),\\s+(\\d+):(\\d+):(\\d+)"
motd_nonday_filter : "(\\d+):(\\d+):(\\d+)"
...