mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-05-06 13:02:37 +00:00
Regen modules. Add tests.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
[defaults]
|
||||
roles_path=../..
|
||||
nocows=1
|
||||
command_warnings = False
|
||||
system_warnings = False
|
||||
deprecation_warnings = False
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
localhost ansible_connection=local
|
||||
@@ -4,6 +4,9 @@
|
||||
display_name: Resource Defn
|
||||
description: Load resources
|
||||
debug: no
|
||||
kubeconfig: '{{ os_kubeconfig }}'
|
||||
host: '{{ os_host }}'
|
||||
verify_ssl: '{{ os_verify_ssl }}'
|
||||
register: create_project
|
||||
|
||||
- debug: var=create_project
|
||||
@@ -37,6 +40,9 @@
|
||||
sessionAffinity: None
|
||||
status:
|
||||
loadBalancer: {}
|
||||
kubeconfig: '{{ os_kubeconfig }}'
|
||||
host: '{{ os_host }}'
|
||||
verify_ssl: '{{ os_verify_ssl }}'
|
||||
register: create_service
|
||||
|
||||
- debug: var=create_service
|
||||
@@ -46,6 +52,9 @@
|
||||
state: present
|
||||
debug: yes
|
||||
src: "{{ role_path }}/files/deployment.yml"
|
||||
kubeconfig: '{{ os_kubeconfig }}'
|
||||
host: '{{ os_host }}'
|
||||
verify_ssl: '{{ os_verify_ssl }}'
|
||||
register: deployment_create
|
||||
|
||||
- debug: var=deployment_create
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
localhost
|
||||
@@ -1,23 +1,13 @@
|
||||
---
|
||||
- hosts: all
|
||||
- name: Load the modules
|
||||
hosts: localhost
|
||||
connection: local
|
||||
gather_facts: no
|
||||
|
||||
vars:
|
||||
kubeconfig: ../konfig.json
|
||||
host: localhost:8443
|
||||
verify_ssl: False
|
||||
|
||||
os_kubeconfig: konfig.json
|
||||
os_host: localhost:8443
|
||||
os_verify_ssl: False
|
||||
roles:
|
||||
- role: ansible-kubernetes-modules
|
||||
install_python_requirements: no
|
||||
|
||||
- role: hello-world
|
||||
os_kubeconfig: '{{ kubeconfig }}'
|
||||
os_host: '{{ host }}'
|
||||
os_verify_ssl: '{{ verify_ssl }}'
|
||||
|
||||
# - role: hello-templates
|
||||
# kubeconfig: '{{ kubeconfig }}'
|
||||
# host: '{{ host }}'
|
||||
# verify_ssl: '{{ verify_ssl }}'
|
||||
|
||||
- role: hello-world
|
||||
- role: hello-templates
|
||||
|
||||
Reference in New Issue
Block a user