--- - name: Gitea setup block: - name: Install Gitea dynamic files k8s: state: present context: "{{ my_context }}" merge_type: merge resource_definition: "{{ lookup('template', 'gitea/' + item) | from_yaml }}" with_items: - gitea-Namespace.yaml.j2 - gitea-pvc.yml.j2 - gitea-IngressRoute.yml.j2 # - gitea-IngressRouteTCP.yml.j2 - name: Install Gitea static files k8s: state: present context: "{{ my_context }}" merge_type: merge resource_definition: "{{ lookup('file', 'gitea/' + item) | from_yaml }}" with_items: - gitea-ConfigMap.yaml - gitea-Deployment.yaml - gitea-Service.yaml tags: - gitea - name: Drone setup block: - name: Configure environnement k8s: state: present context: "{{ my_context }}" merge_type: merge resource_definition: "{{ lookup('template', item) | from_yaml }}" with_items: - drone-Namespace.yaml.j2 tags: - drone-server - drone-runner - name: Drone Server install block: - name: Install Drone dynamic files k8s: state: present context: "{{ my_context }}" merge_type: merge resource_definition: "{{ lookup('template', item) | from_yaml }}" with_items: - drone/drone-PersistentVolumeClaim.yml.j2 - drone/drone-Secret.yaml.j2 - drone/drone-IngressRoute.yml.j2 - name: Install Drone Static files k8s: state: present context: "{{ my_context }}" merge_type: merge resource_definition: "{{ lookup('file', item) | from_yaml }}" with_items: - drone/drone-ConfigMap.yaml - drone/drone-Deployment.yaml - drone/drone-Service.yaml tags: - drone-server - name: Drone Runner install block: - name: Install Drone Runner dynamic files k8s: state: present context: "{{ my_context }}" merge_type: merge resource_definition: "{{ lookup('template', item) | from_yaml }}" with_items: - drone-runner/drone-runner-Secret.yaml.j2 - name: Install Drone Runner static files k8s: state: present context: "{{ my_context }}" merge_type: merge resource_definition: "{{ lookup('file', item) | from_yaml }}" with_items: - drone-runner/drone-runner-Namespace.yaml - drone-runner/drone-runner-ServiceAccount.yaml - drone-runner/drone-runner-Role.yaml - drone-runner/drone-runner-RoleBinding.yaml - drone-runner/drone-runner-ConfigMap.yaml - drone-runner/drone-runner-Service.yaml - drone-runner/drone-runner.yaml tags: - drone-runner tags: - drone