ansible-role-k8s-ci/tasks/main.yml
Adrien f1e4652bba
All checks were successful
continuous-integration/drone/push Build is passing
Update manifest
2020-06-14 22:24:07 +02:00

56 lines
No EOL
1.6 KiB
YAML

- 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
- drone-server
- drone-runner
- name: Drone Server install
k8s:
state: present
context: "{{ my_context }}"
merge_type: merge
resource_definition: "{{ lookup('file', item) | from_yaml }}"
with_items:
- drone/drone-Role.yaml
- drone/drone-RoleBinding.yaml
- drone/drone-ConfigMap.yaml
- drone/drone.yaml
tags:
- drone-server
- name: Drone Runner install
block:
- 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-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
- name: Install Drone Runner static 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
tags:
- drone-runner
tags:
- drone