homeserver/roles/mgrote_proxmox_lxc_profiles/handlers/main.yml
Michael Grote 7a24089031 fix linter errors (#584)
Reviewed-on: #584
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
2023-10-25 22:26:17 +02:00

11 lines
519 B
YAML

---
- name: restart lxc # noqa no-changed-when
become: true
ansible.builtin.command: "pct reboot {{ item }}"
failed_when: false
loop: "{{ lists_merged | unique }}"
# reboote den lxc wenn:
# - er in der Liste "Lists merged" vorhanden ist
# unique Filter sorgt dafür das es keine doppelten Elemente gibt
# https://docs.ansible.com/ansible/latest/user_guide/playbooks_filters.html#set-theory-filters
# https://www.reddit.com/r/ansible/comments/8cp86c/how_do_i_remove_duplicate_items_from_a_variable/