Files
cosmos_init/tasks/main.yaml
2025-11-28 17:25:38 -08:00

49 lines
1.2 KiB
YAML

---
###############################################
# Cosmos Initialization Tasks
###############################################
- name: show user vars
debug:
msg:
- "User email............ {{ jenkins_user}}"
- "Jenkins Group......... {{ jenkins_group}}"
- "SERVER_SUBNET_GROUP... {{ SERVER_SUBNET_GROUP }}"
- "subnet_group_check.... {{ subnet_group_check }}"
- "Host IP............... {{ ansible_ssh_host }}"
- name: Preboot Re-Initialize
include_tasks: preboot_fix.yaml
when: not gather_only | bool
- name: Set Hostname
include_tasks: set_hostname.yaml
when: rename_host | bool or not gather_only | bool
- name: Gather Facts
include_tasks: gather_facts.yaml
when: not init_light | bool or install_LDAP | bool
- name: Skip when requested
when: not ( gather_only | bool or init_light | bool ) | bool
block:
- name: Install Base Packages
include_tasks: install_base_packages.yaml
when: install_packages | bool
- name: Configure SMB
include_tasks: configure_smb.yaml
when: not smb_configured | bool
- name: Realtek Firmware
include_tasks: realtek.yaml
when: realtek_present | bool
- name: Misc Tasks
include_tasks: misc.yaml
when: not gather_only | bool
...