Skip to content

Commit 2bf0e5e

Browse files
authored
fix: use ansible_facts for runner_name
1 parent 7713b57 commit 2bf0e5e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ runner_download_repository: "actions/runner"
102102
runner_extra_config_args: ""
103103

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

107107
# GitHub Repository user or Organization owner used for Runner registration
108108
# github_account: "youruser"

defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ runner_download_repository: "actions/runner"
4343
runner_extra_config_args: ""
4444

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

4848
# GitHub Repository user or Organization owner used for Runner registration
4949
# github_account: "youruser"

0 commit comments

Comments
 (0)