Add defaults for all relevant host_vars
This commit is contained in:
parent
dba078af88
commit
7b837afa2d
4 changed files with 19 additions and 7 deletions
|
@ -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:
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
name:
|
||||
- brightnessctl
|
||||
- network-manager
|
||||
when: hostvars[ansible_hostname]['mobile_platform']
|
||||
when: "hostvars[ansible_hostname]['mobile_platform'] | default(false)"
|
||||
|
||||
- name: Install brightnessctl udev rules
|
||||
become: yes
|
||||
|
@ -49,7 +49,7 @@
|
|||
owner: root
|
||||
group: root
|
||||
mode: u=rw,g=r,o=r
|
||||
when: hostvars[ansible_hostname]['mobile_platform']
|
||||
when: "hostvars[ansible_hostname]['mobile_platform'] | default(false)"
|
||||
|
||||
- name: Install zsh
|
||||
become: yes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue