mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-02-03 14:58:47 +00:00
16 lines
618 B
YAML
Executable File
16 lines
618 B
YAML
Executable File
- hosts: rpi5.home.lan
|
|
name: Sync rpi5
|
|
become: true
|
|
tasks:
|
|
- name: Apt exclude linux-dtb-current-meson64
|
|
ansible.builtin.shell: "docker ps|awk '{print $NF}'"
|
|
register: containers
|
|
- debug:
|
|
msg: "{{ containers.stdout_lines }}"
|
|
- name: Stop containers
|
|
ansible.builtin.shell: "docker stop {{ item }}"
|
|
register: containers
|
|
when: item != "NAMES" and item != "watchtower-watchtower-1"
|
|
with_items: "{{ containers.stdout_lines }}"
|
|
- name: Apt exclude linux-dtb-current-meson64
|
|
ansible.builtin.shell: "/myapps/venv/bin/python3 /myapps/omv_backup.py -r all" |