Skip to content

Commit

Permalink
fix: use ansible_facts for runner_name
Browse files Browse the repository at this point in the history
  • Loading branch information
jackhodgkiss authored Sep 11, 2023
1 parent 7713b57 commit 2bf0e5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ runner_download_repository: "actions/runner"
runner_extra_config_args: ""

# Name to assign to this runner in GitHub (System hostname as default)
runner_name: "{{ ansible_hostname }}"
runner_name: "{{ ansible_facts.hostname }}"

# GitHub Repository user or Organization owner used for Runner registration
# github_account: "youruser"
Expand Down
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ runner_download_repository: "actions/runner"
runner_extra_config_args: ""

# Name to assign to this runner in GitHub (System hostname as default)
runner_name: "{{ ansible_hostname }}"
runner_name: "{{ ansible_facts.hostname }}"

# GitHub Repository user or Organization owner used for Runner registration
# github_account: "youruser"
Expand Down

0 comments on commit 2bf0e5e

Please sign in to comment.