blob: 68c6ec5b1b7aded79dce0be572c64de8a634dc11 [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'
- name: Create and set permissions on /b
file:
path: /b
state: directory
owner: chrome-bot