Rebase containerimage;Add Rancher helm chart repo
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
8ede7fd1b2
commit
08d4622116
@ -9,7 +9,7 @@ volumes:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Run Ansible playbook
|
- name: Run Ansible playbook
|
||||||
image: bv11-cr01.bessems.eu/library/packer-extended
|
image: bv11-cr01.bessems.eu/library/ansible-extended
|
||||||
pull: always
|
pull: always
|
||||||
commands:
|
commands:
|
||||||
- |
|
- |
|
||||||
@ -38,7 +38,7 @@ steps:
|
|||||||
- name: scratch
|
- name: scratch
|
||||||
path: /scratch
|
path: /scratch
|
||||||
- name: Remove temporary resources
|
- name: Remove temporary resources
|
||||||
image: bv11-cr01.bessems.eu/library/packer-extended
|
image: bv11-cr01.bessems.eu/library/ansible-extended
|
||||||
pull: always
|
pull: always
|
||||||
commands:
|
commands:
|
||||||
- |
|
- |
|
||||||
|
16
playbook.yml
16
playbook.yml
@ -146,8 +146,7 @@
|
|||||||
# seconds: 300
|
# seconds: 300
|
||||||
ansible.builtin.shell:
|
ansible.builtin.shell:
|
||||||
cmd: kubectl get pod -A
|
cmd: kubectl get pod -A
|
||||||
with_sequence:
|
with_sequence: count=5
|
||||||
count: 5
|
|
||||||
delay: 10
|
delay: 10
|
||||||
|
|
||||||
delegate_to: "{{ ansible_play_hosts[0] }}"
|
delegate_to: "{{ ansible_play_hosts[0] }}"
|
||||||
@ -183,3 +182,16 @@
|
|||||||
var: debug.stdout
|
var: debug.stdout
|
||||||
|
|
||||||
when: inventory_hostname != ansible_play_hosts[0]
|
when: inventory_hostname != ansible_play_hosts[0]
|
||||||
|
|
||||||
|
- name: Deploy applications
|
||||||
|
hosts: localhost
|
||||||
|
gather_facts: false
|
||||||
|
vars_files:
|
||||||
|
- applications.k3s.yml
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Add Helm chart repositories
|
||||||
|
kubernetes.core.helm_repository:
|
||||||
|
name: "{{ item.name }}"
|
||||||
|
repo_url: "{{ item.url }}"
|
||||||
|
loop: "{{ helm.repositories }}"
|
||||||
|
@ -2,3 +2,4 @@ collections:
|
|||||||
- ansible.utils
|
- ansible.utils
|
||||||
- community.general
|
- community.general
|
||||||
- community.vmware
|
- community.vmware
|
||||||
|
- kubernetes.core
|
||||||
|
4
vars/applications.k3s.yml
Normal file
4
vars/applications.k3s.yml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
helm:
|
||||||
|
repositories:
|
||||||
|
- name: rancher-stable
|
||||||
|
url: https://releases.rancher.com/server-charts/stable
|
Loading…
Reference in New Issue
Block a user