14 lines
330 B
YAML
14 lines
330 B
YAML
|
- hosts: coreos
|
||
|
tasks:
|
||
|
- name: get uptime
|
||
|
shell: uptime
|
||
|
register: uptime
|
||
|
- set_fact:
|
||
|
uptime: "{{uptime['stdout']}}"
|
||
|
- name: Build HTML report
|
||
|
template:
|
||
|
src: "{{playbook_dir}}/../templates/report.html"
|
||
|
dest: /tmp/report.html
|
||
|
delegate_to: localhost
|
||
|
run_once: true
|