Skip to content

Commit

Permalink
common: fix
Browse files Browse the repository at this point in the history
Signed-off-by: Gromadzki, Tomasz <tomasz.gromadzki@intel.com>
  • Loading branch information
grom72 committed Jun 26, 2023
1 parent ffd0e91 commit f8b285b
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions utils/ansible/configure-self-hosted-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,34 @@

# This playbook is designed to add a new self-hosted runner to pmem/pmdk.
# Examples below show how to use this file:
# 1) remote
# 1) remotely
# export TARGET_IP= # ip of the target
# export ROOT_PASSWORD= # a password of root on the target
# export GHA_TOKEN= # GitHub token generated for a new self-hosted runner
# export GHA_TOKEN= # a GitHub token generated for a new self-hosted runner
# export HOST_NAME= # host's name that will be visible on GitHub
# export LABELS= #rhel or opensuse
# export LABELS= # rhel or opensuse
# export VARS_GHA= # e.g. proxy settings: http_proxy=http://proxy-dmz.XXX.com:911,https_proxy=http://proxy-dmz.XXX.com:912
# ansible-playbook -i $TARGET_IP, configure-self-hosted-runner.yml --extra-vars \
# "host=all ansible_user=root ansible_password=$ROOT_PASSWORD testUser=pmdkuser \
# runner_name=$HOST_NAME labels=$LABELS token=$GHA_TOKEN vars_gha=$VARS_GHA"
# "host=all ansible_user=root ansible_password=$ROOT_PASSWORD testUser=pmdkuser \
# runner_name=$HOST_NAME labels=$LABELS token=$GHA_TOKEN vars_gha=$VARS_GHA"
#
# 2) locally
# For a playbook to be used on a local server please:
# a) comment the first command: # -hosts: "{{ host }}"
# a) comment out the first command: # -hosts: "{{ host }}"
# b) uncomment the next two lines:
# - hosts: localhost
# connection: local
#
# export GHA_TOKEN= # GitHub token generated for a new self-hosted runner
# export GHA_TOKEN= # a GitHub token generated for a new self-hosted runner
# export HOST_NAME= # Host name that will be visible on GitHub (e.g. `hostname`)
# export LABELS= #rhel or opensuse
# export LABELS= # rhel or opensuse
# export VARS_GHA=http_proxy=http://proxy-dmz.XXX.com:911,https_proxy=http://proxy-dmz.XXX.com:912
# ansible-playbook configure-self-hosted-runner.yml --extra-vars \
# "runner_name=$HOST_NAME labels=$LABELS vars_gha=env1,env2 token=$GHA_TOKEN"
# "runner_name=$HOST_NAME labels=$LABELS vars_gha=env1,env2 token=$GHA_TOKEN"
#

#
# Runner package version may be changed by: --extra-vars package_url=<url_to_package.tar.gz>
# The runner package version may be changed by: --extra-vars package_url=<url_to_package.tar.gz>

- hosts: "{{ host }}"
#- hosts: localhost
Expand All @@ -41,6 +41,9 @@
runner_folder: /home/{{ testUser }}/actions-runner
repo_url: https://github.com/pmem/pmdk
vars_list: "{{ vars_gha.split(',') }}"
# token: # a GitHub token generated for a new self-hosted runner
# label: # rhel or opensuse
# runner_name: # Host name that will be visible on GitHub

tasks:
- name: "Create a runner folder"
Expand Down

0 comments on commit f8b285b

Please sign in to comment.