65 lines
1.3 KiB
YAML
65 lines
1.3 KiB
YAML
---
|
|
- name: Install K3s Kubernetes
|
|
hosts: |-
|
|
{%- if nfc_pb_host is defined -%}
|
|
|
|
{{ nfc_pb_host }}
|
|
|
|
{%- elif nfc_pb_kubernetes_cluster_name is defined -%}
|
|
|
|
kubernetes_cluster_{{ nfc_pb_kubernetes_cluster_name | lower }}
|
|
|
|
{%- else -%}
|
|
|
|
{%- if ansible_limit is defined -%}
|
|
|
|
{{ ansible_limit }}
|
|
|
|
{%- else -%}
|
|
|
|
localhost
|
|
|
|
{%- endif -%}
|
|
|
|
{%- endif %}
|
|
become: false
|
|
gather_facts: false
|
|
|
|
|
|
tasks:
|
|
|
|
|
|
- name: Configure NetBox for Kubernetes Deployment(s)
|
|
ansible.builtin.include_role:
|
|
name: kubernetes_netbox
|
|
tags:
|
|
- always
|
|
|
|
|
|
# vars:
|
|
|
|
#
|
|
# Future feature, add playbook to import to awx
|
|
#
|
|
# nfc_pb_awx_tower_template:
|
|
|
|
|
|
# - name: "Collection/NoFussComputing/Kubernetes/NetBox/Configure"
|
|
# ask_credential_on_launch: true
|
|
# ask_job_type_on_launch: true
|
|
# ask_limit_on_launch: true
|
|
# ask_tags_on_launch: true
|
|
# ask_variables_on_launch: true
|
|
# description: |
|
|
# Playbook to Install/Configure Kubernetes using configuration
|
|
# from code.
|
|
# execution_environment: "No Fuss Computing EE"
|
|
# job_type: "check"
|
|
# labels:
|
|
# - cluster
|
|
# - k3s
|
|
# - kubernetes
|
|
# verbosity: 2
|
|
# use_fact_cache: true
|
|
# survey_enabled: false
|