upt playbook

This commit is contained in:
jaydee 2024-07-09 00:29:35 +02:00
parent 362355675f
commit 6a26651b96

View File

@ -6,7 +6,7 @@
ansible.builtin.apt: ansible.builtin.apt:
name: name:
- python3-pip - python3-pip
when: inventory_hostname not in groups['nas','router'] when: inventory_hostname not in groups['nas'] and inventory_hostname not in groups['router']
become: "{{ 'no' if inventory_hostname in groups['nas'] else 'yes' }}" become: "{{ 'no' if inventory_hostname in groups['nas'] else 'yes' }}"