work in progress

This commit is contained in:
Adrien Reslinger 2020-06-13 00:06:55 +02:00
commit 5f68c259f5
17 changed files with 994 additions and 0 deletions

54
tasks/main.yml Normal file
View file

@ -0,0 +1,54 @@
- 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-Role.yaml
- drone-runner/drone-runner-RoleBinding.yaml
- drone-runner/drone-runner-ConfigMap.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