25d3eafa5b
- 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.
13 lines
346 B
YAML
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
|