feat(vmagent): add ansible role with docker support

This commit is contained in:
2024-10-10 20:30:00 +02:00
parent 7080d5fd24
commit 0165a03a89
12 changed files with 235 additions and 0 deletions

View File

@ -0,0 +1,9 @@
---
- name: Ensure vmagent container '{{ vmagent_container_name }}' is restarted
community.docker.docker_container:
name: "{{ vmagent_container_name }}"
state: "{{ vmagent_container_state }}"
restart: true
listen: "vmagent-reload"
ignore_errors: "{{ ansible_check_mode }}"
when: vmagent_deployment_method == 'docker'