Files
a13labs.infra/ansible/roles/windows_containers/handlers/main.yml
T
alexandre.pires 25d3eafa5b 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.
2026-06-07 20:35:59 +02:00

13 lines
346 B
YAML

---
- name: Restart podman machine
ansible.windows.win_shell: podman machine stop; podman machine start
failed_when: false
tags:
- roles::windows_containers
- name: Restart Ubuntu container
ansible.windows.win_shell: podman restart {{ windows_containers_container_name }}
failed_when: false
tags:
- roles::windows_containers