All checks were successful
Ansible Code Pipeline / Ansible-Development-Pipeline (push) Successful in 15s
14 lines
447 B
YAML
14 lines
447 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+)"
|
|
|
|
motd_day_filter_repl: "\\1 \\2 hours \\3 minutes"
|
|
motd_nonday_filter_repl : "\\1 hours \\2 minutes \\3 seconds"
|
|
|
|
...
|