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:
parent
27b24d3938
commit
5efffb53b4
2 changed files with 45 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue