2f88108a8d
Use now() for export timestamps and ansible_facts['system'] for browser detection. Set become: false on the localhost play to avoid sudo on local fact gathering.
19 lines
436 B
YAML
19 lines
436 B
YAML
---
|
|
- name: Install and configure Hysteria2 servers
|
|
hosts: hysteria2_servers
|
|
gather_facts: true
|
|
roles:
|
|
- hysteria2
|
|
|
|
- name: Build global output index
|
|
hosts: localhost
|
|
connection: local
|
|
gather_facts: true
|
|
become: false
|
|
tags: [install, update, export]
|
|
tasks:
|
|
- name: Generate global index.html and open in browser
|
|
ansible.builtin.include_role:
|
|
name: hysteria2
|
|
tasks_from: export_global.yml
|