Skip to content

Commit

Permalink
Add privileges setters for new managed macs
Browse files Browse the repository at this point in the history
RE #62
  • Loading branch information
cailafinn committed May 15, 2023
1 parent b77badf commit 463a0a8
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
# Deploy Jenkins agent on macOS

# Install Requirements

- name: Add user to sudoers on new macs
shell: /Applications/Privileges.app/Contents/Resources/PrivilegesCLI --add
ignore_errors: true # Not all the macs have these, so don't panic if it fails.

- name: Install homebrew
include_role:
Expand Down Expand Up @@ -44,4 +48,8 @@
minute: "*/5"
job: "$HOME/jenkins-slave.sh {{ agent_name }} {{ agent_secret }}"

- name: Remove user from sudoers on new macs
shell: /Applications/Privileges.app/Contents/Resources/PrivilegesCLI --remove
ignore_errors: true # Not all the macs have these, so don't panic if it fails.


0 comments on commit 463a0a8

Please sign in to comment.