ansible-training-test/playbooks/report.yml

14 lines
330 B
YAML
Raw Normal View History

2018-07-27 10:39:14 +02:00
- hosts: alpine
2018-07-27 10:01:50 +02:00
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