Skip to content

Commit

Permalink
using --unattended
Browse files Browse the repository at this point in the history
  • Loading branch information
jonpugh committed Mar 21, 2024
1 parent 1eda868 commit 2262782
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions ansible/group_vars/ash_host.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,14 @@ security_sudoers_passwordless: "{{ ash_admin_users }}"

# Replace with your repo information. Get the runner token under Settings > Actions > Runners > New Runner
ash_github_runners:
- repo_url: https://github.com/jonpugh/ash-ops
runner_token: AAAZ7ND5U5YBRA6D5PFS5TTF7R6RY
# - repo_url: https://github.com/jonpugh/ash-ops
# runner_token: AAAZ7ND5U5YBRA6D5PFS5TTF7R6RY
# runner_name: ash_local
# runner_labels: local,ash
# user: platform

- repo_url: https://github.com/WSU-Vancouver/vancouver.wsu.edu
runner_token: AAAZ7NF6QSGGRX34LAMA3N3F7SIJM
runner_name: ash_local
runner_labels: local,ash
user: platform
2 changes: 1 addition & 1 deletion roles/ash.runner/tasks/github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

- name: Configure GitHub Runner
shell:
cmd: "cd {{ ash_github_runner_path }} && ./config.sh remove --token {{ item.runner_token }} && ./config.sh --url {{ item.repo_url }} --token {{ item.runner_token }} --name {{ item.runner_name }} --labels {{ item.runner_labels }}"
cmd: "cd {{ ash_github_runner_path }} && ./config.sh remove --token {{ item.runner_token }} && ./config.sh --unattended --url {{ item.repo_url }} --token {{ item.runner_token }} --name {{ item.runner_name }} --labels {{ item.runner_labels }}"
chdir: "{{ ash_github_runner_path }}"
become: true
become_user: "{{ item.user }}"
Expand Down

0 comments on commit 2262782

Please sign in to comment.