Skip to content

Latest commit

 

History

History
66 lines (44 loc) · 1.37 KB

README.md

File metadata and controls

66 lines (44 loc) · 1.37 KB

autoware-github-runner-ansible

Installation

Install ansible

sudo apt update
sudo apt dist-upgrade -y

# Remove apt installed ansible (In Ubuntu 22.04, ansible the version is old)
sudo apt-get purge ansible

# Install pipx
sudo apt-get -y install pipx

# Add pipx to the system PATH
python3 -m pipx ensurepath

# Install ansible
pipx install --include-deps --force ansible

Install ansible collections

ansible-galaxy install -f -r requirements.yaml

Playbooks

Install useful apps

ansible-playbook autoware.github_runner.useful_apps --ask-become-pass

Docker setup

ansible-playbook autoware.github_runner.docker_setup --ask-become-pass

# Restart to apply post-installation changes
sudo reboot

Runner setup

export PERSONAL_ACCESS_TOKEN=<your_personal_access_token>

ansible-playbook autoware.github_runner.runner_setup --ask-become-pass  --extra-vars "runner_name=ovh-runner-01 reinstall_runner=true github_account=xmfcx"

Set up the clean-up script.

ansible-playbook autoware.github_runner.runner_configuration --ask-become-pass

# Restart and check if everything is working
sudo reboot