ansible/roles/hdmi/tasks/main.yml

61 lines
1.4 KiB
YAML
Raw Normal View History

2020-08-04 23:33:01 +00:00
---
- name: Gather instance facts
2020-08-04 23:33:40 +00:00
setup:
2020-08-04 23:33:01 +00:00
- block:
- name: Generate screen-off.service
template:
src: screen-off.service
dest: "/etc/systemd/system/screen-off.service"
owner: root
group: root
mode: 0644
tags:
- hdmi-config
- name: Generate screen-off.timer
template:
src: screen-off.timer
dest: "/etc/systemd/system/screen-off.timer"
owner: root
group: root
mode: 0644
tags:
- hdmi-config
- name: Generate screen-on.service
template:
src: screen-on.service
dest: "/etc/systemd/system/screen-on.service"
owner: root
group: root
mode: 0644
2020-08-04 23:35:47 +00:00
tags:
- hdmi-config
2020-08-04 23:33:01 +00:00
- name: Generate screen-on.timer
template:
src: screen-on.timer
dest: "/etc/systemd/system/screen-on.timer"
owner: root
group: root
mode: 0644
2020-08-04 23:35:47 +00:00
tags:
- hdmi-config
2020-08-04 23:33:01 +00:00
- block:
- name: Refresh systemd
systemd:
daemon_reload: yes
2020-08-04 23:35:47 +00:00
tags:
- hdmi-config
2020-08-04 23:33:01 +00:00
- name: Enable screen-off.timer
systemd:
name: screen-off.timer
state: started
enabled: yes
2020-08-04 23:35:47 +00:00
tags:
- hdmi-config
2020-08-04 23:33:01 +00:00
- name: Enable screen-on.timer
systemd:
name: screen-on.timer
state: started
enabled: yes
2020-08-04 23:35:47 +00:00
tags:
- hdmi-config