--- gitea_runner_remove_data: false gitea_runner_remove: false # Set true to force re-registration (e.g. after gitea_runner_instance_url or # gitea_runner_registration_scope changes): mints the token, stops the daemon, removes the # existing .runner file, then re-registers. Refused under CI. The old runner stays in Gitea as # offline: delete it in Site Administration > Actions > Runners. # The old registration is kept as .runner.bak. (0600); only the most recent backup is # kept, previous ones are pruned before each forced run. Rollback: # cp .runner.bak. .runner && systemctl restart gitea-runner gitea_runner_force_register: false # Runner logging gitea_runner_log_level: info # Runner behavior # Jobs run at the same time (`runner.capacity`); size the host's memory and cores for it. gitea_runner_capacity: 1 # Labels exposed to Gitea Actions gitea_runner_labels: - docker - ubuntu-lxc # Container executor settings gitea_runner_container_privileged: false gitea_runner_container_docker_host: unix:///var/run/docker.sock # Weekly Docker prune (systemd timer). Off by default. # The ages filter on creation time of the image, not on when it was pulled. gitea_runner_docker_prune_enabled: false gitea_runner_docker_prune_schedule: "Sun *-*-* 04:30:00" gitea_runner_docker_prune_container_age: 24h gitea_runner_docker_prune_image_age: 168h # Seconds. The prune skips while a container younger than this runs and ignores older ones as # leaked. Keep it above the longest job timeout. gitea_runner_docker_prune_job_max_age: 21600 # Newest image IDs kept per repository by the weekly and pressure prunes; 0 = off. gitea_runner_docker_prune_keep_per_repository: 0 # Use % of the Docker root's filesystem above which the pressure prune runs; 0 = off. Needs the count. gitea_runner_docker_prune_disk_threshold_percent: 0 gitea_runner_docker_prune_disk_check_schedule: hourly gitea_runner_docker_prune_builder_keep_storage: 10GB # Optional extra mounts # gitea_runner_container_volumes: # - /cache:/cache gitea_runner_update: false gitea_runner_version: "6.0.1" # Gitea Runner defaults gitea_runner_user: "gitea-runner" gitea_runner_group: "gitea-runner" gitea_runner_home: "/home/gitea-runner" # Upstream renamed the project (and its release artifacts) from act_runner # to gitea-runner; the old act_runner/... path now 301s to a 404. gitea_runner_download_url: "https://dl.gitea.com/gitea-runner/{{ gitea_runner_version }}/gitea-runner-{{ gitea_runner_version }}-linux-amd64" gitea_runner_checksum_url: "https://dl.gitea.com/gitea-runner/{{ gitea_runner_version }}/gitea-runner-{{ gitea_runner_version }}-linux-amd64.sha256" gitea_runner_install_dir: "/usr/local/bin" gitea_runner_work_dir: "/var/lib/gitea-runner" gitea_runner_service_unit: "/etc/systemd/system/gitea-runner.service" # No role default: set in inventory. Required only when the runner registers (asserted in # tasks/mint_token.yml). gitea_runner_name: "" gitea_runner_instance_url: "" # Inventory host that has Gitea installed and mints the registration token. gitea_runner_token_host: "" # Who the runner takes jobs from: empty = instance-wide, an owner (user or organisation) or # owner/repo. Read only when registering: on an already registered runner a change takes # effect with gitea_runner_force_register. gitea_runner_registration_scope: "" # How the delegated token command runs on gitea_runner_token_host. Keep in step with # the gitea role on that host (separate variables, resolved per play). gitea_runner_gitea_install_dir: "/usr/local/bin" gitea_runner_gitea_user: "git" gitea_runner_gitea_app_dir: "/etc/gitea" # Optional host-executor label for role tests. A job on it runs on this host and brings its # toolchain in an image it runs on this host's Docker daemon, so no job container needs the # Docker socket; the role installs only git and python3, which the job uses on the host. # A job on that label runs as the runner user, who is in the docker group, so it is # root-equivalent on this host: see Notes in the README before enabling it. gitea_runner_molecule_enabled: false gitea_runner_molecule_label: molecule