Add support for Ubuntu containers and WSL verification
- Implemented tasks for managing Ubuntu containers using Podman, including inspection, creation, starting, and SSH setup. - Added verification tasks for WSL and Podman installation, machine existence, and NSSM service status. - Created PowerShell scripts for Podman auto-start on Windows boot. - Introduced Prometheus role with default configurations and installation tasks. - Updated Windows SSH role to improve authorized_keys management and permissions handling. - Modified inventory to include Windows containers host. - Updated Grafana datasource configurations with direct IP addresses for Prometheus instances.
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
---
|
||||
# ── Phase 1: WSL2 prerequisites ─────────────────────────────────────────
|
||||
- name: Bootstrap WSL2 prerequisites
|
||||
ansible.builtin.include_tasks: bootstrap_wsl.yml
|
||||
tags:
|
||||
- roles::windows_containers
|
||||
- roles::windows_containers::wsl_bootstrap
|
||||
|
||||
# ── Phase 0: Docker Engine (Windows Server) ──────────────────────────────
|
||||
- name: Install Docker Engine for Windows Server (Mirantis Container Runtime)
|
||||
ansible.builtin.include_tasks: containers_install.yml
|
||||
tags:
|
||||
- roles::windows_containers
|
||||
- roles::windows_containers::install
|
||||
|
||||
# ── Phase 2: Podman install, user, NSSM service ─────────────────────────
|
||||
- name: Install Podman
|
||||
ansible.builtin.include_tasks: podman_install.yml
|
||||
tags:
|
||||
- roles::windows_containers
|
||||
- roles::windows_containers::podman_install
|
||||
|
||||
# ── Phase 2: Ubuntu container ────────────────────────────────────────────
|
||||
- name: Setup Ubuntu container
|
||||
ansible.builtin.include_tasks: ubuntu_container.yml
|
||||
tags:
|
||||
- roles::windows_containers
|
||||
- roles::windows_containers::ubuntu_container
|
||||
when: ansible_facts.os_product_type == "workstation"
|
||||
|
||||
# ── Phase 3: Verification ────────────────────────────────────────────────
|
||||
- name: Verify installation
|
||||
ansible.builtin.include_tasks: verify.yml
|
||||
tags:
|
||||
- roles::windows_containers
|
||||
- roles::windows_containers::verify
|
||||
when: ansible_facts.os_product_type == "workstation"
|
||||
Reference in New Issue
Block a user