1
0
Fork 0
forked from infra/ansible

forgejo: Create the forgejo runnerhost serviceaccount, rbac etc

Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
This commit is contained in:
David Kirwan 2026-04-01 13:47:04 +01:00
commit 5efffb53b4
Signed by: dkirwan
GPG key ID: A5893AB6474AC37D
2 changed files with 45 additions and 0 deletions

View file

@ -0,0 +1,44 @@
---
- name: Generate the forgejo-runnerhost-serviceaccount.yaml from template
ansible.builtin.template:
src: "forgejo-runnerhost-serviceaccount.yaml.j2"
dest: "/root/ocp4/openshift-apps/forgejo/forgejo-runnerhost-serviceaccount.yaml"
mode: "0770"
- name: Deploy the forgejo-runnerhost-serviceaccount.yaml config
kubernetes.core.k8s:
state: present
src: "/root/ocp4/openshift-apps/forgejo/forgejo-runnerhost-serviceaccount.yaml"
- name: Generate the forgejo-runnerhost-role.yaml from template
ansible.builtin.template:
src: "forgejo-runnerhost-role.yaml.j2"
dest: "/root/ocp4/openshift-apps/forgejo/forgejo-runnerhost-role.yaml"
mode: "0770"
- name: Deploy the forgejo-runnerhost-role.yaml config
kubernetes.core.k8s:
state: present
src: "/root/ocp4/openshift-apps/forgejo/forgejo-runnerhost-role.yaml"
- name: Generate the forgejo-runnerhost-rolebinding.yaml from template
ansible.builtin.template:
src: "forgejo-runnerhost-rolebinding.yaml.j2"
dest: "/root/ocp4/openshift-apps/forgejo/forgejo-runnerhost-rolebinding.yaml"
mode: "0770"
- name: Deploy the forgejo-runnerhost-rolebinding.yaml config
kubernetes.core.k8s:
state: present
src: "/root/ocp4/openshift-apps/forgejo/forgejo-runnerhost-rolebinding.yaml"
- name: Generate the forgejo-runnerhost-sa-token-secret.yaml from template
ansible.builtin.template:
src: "forgejo-runnerhost-sa-token-secret.yaml.j2"
dest: "/root/ocp4/openshift-apps/forgejo/forgejo-runnerhost-sa-token-secret.yaml"
mode: "0770"
- name: Deploy the forgejo-runnerhost-sa-token-secret.yaml config
kubernetes.core.k8s:
state: present
src: "/root/ocp4/openshift-apps/forgejo/forgejo-runnerhost-sa-token-secret.yaml"

View file

@ -59,5 +59,6 @@
- include_tasks: call-helm.yaml
- include_tasks: copy-forgejo-runner-vars.yaml
- include_tasks: create-forgejo-runner-config-secret.yaml
- include_tasks: create-forgejo-runnerhost-sa-rbac.yaml
- include_tasks: create-forgejo-runnerhost-vm.yaml
- include_tasks: register-runners.yaml