Add defaults for all relevant host_vars

This commit is contained in:
Oliver Traber 2025-08-06 14:24:02 +02:00
parent dba078af88
commit 7b837afa2d
Signed by: Bluemedia
GPG key ID: C0674B105057136C
4 changed files with 19 additions and 7 deletions

View file

@ -33,7 +33,7 @@
dest: "/etc/systemd/"
- src: "{{ role_path }}/files/systemd/sleep.conf.d"
dest: "/etc/systemd/"
when: hostvars[ansible_hostname]['mobile_platform']
when: "hostvars[ansible_hostname]['mobile_platform'] | default(false)"
- name: Copy static config files
copy: