move stashapp to proper namespace
This commit is contained in:
@@ -36,12 +36,36 @@
|
||||
- name: Install stash Chart
|
||||
local_action:
|
||||
module: kubernetes.core.helm
|
||||
release_state: present
|
||||
release_state: "{{ apps.stash.state }}"
|
||||
name: stash
|
||||
namespace: testing
|
||||
namespace: "{{ apps.stash.namespace }}"
|
||||
create_namespace: yes
|
||||
update_repo_cache: True
|
||||
chart_ref: k8s-at-home/stash
|
||||
values: "{{stash_values}}"
|
||||
wait: true
|
||||
|
||||
- name: Install oauth2-proxy in front of stash app
|
||||
block:
|
||||
- name: Add oauth2-proxy chart helm repo
|
||||
local_action:
|
||||
module: kubernetes.core.helm_repository
|
||||
name: oauth2-proxy
|
||||
repo_url: https://oauth2-proxy.github.io/manifests
|
||||
|
||||
- name: load variables files/stash/proxy-values.yaml
|
||||
ansible.builtin.include_vars:
|
||||
file: files/stash/proxy-values.yaml
|
||||
name: stash_values
|
||||
|
||||
- name: Install oauth2-proxy Release
|
||||
local_action:
|
||||
module: kubernetes.core.helm
|
||||
release_state: absent
|
||||
name: stash-oauth2-proxy
|
||||
namespace: "{{ apps.stash.namespace }}"
|
||||
create_namespace: yes
|
||||
update_repo_cache: True
|
||||
chart_ref: oauth2-proxy/oauth2-proxy
|
||||
values: "{{stash_values}}"
|
||||
wait: true
|
||||
|
||||
Reference in New Issue
Block a user