blob: 2efa0e7338639dfa3a17b0354507e83dbeba3584 [file] [log] [blame]
# Installs test_machine_monitor.
#
# To push a test/debug version of test_machine_monitor to a machine you can
# provide a value for the test_machine_monitor_version via the
# --extra-vars command line parameter. See README.md for an example.
- hosts: switchboard_rpis,gapid_test_machines,all_linux,all_mac,all_win
user: chrome-bot
gather_facts: true
vars:
restart: false
roles:
- install_test_machine_monitor
tasks:
- name: Reboot Windows host.
win_reboot:
when: restart and ansible_facts['system']|lower in ['win32nt']
- name: Reboot non-Windows host.
reboot:
when: restart and ansible_facts['system']|lower not in ['win32nt']