blob: cc9d472f1ef54fa34546f36aa3cd53ce91a8b829 [file] [log] [blame]
---
# Ensure Swarming can reboot the host.
- hosts: all
remote_user: chrome-bot
become: yes
tasks:
- name: Add shutdown command to sudoers for chrome-bot
lineinfile:
path: /private/etc/sudoers.d/swarming
state: present
create: yes
line: 'chrome-bot ALL=NOPASSWD:/sbin/shutdown -r now'
validate: '/usr/sbin/visudo -cf %s'