This repository has been archived on 2023-12-29. You can view files and clone it, but cannot push or open issues or pull requests.
pi-ansible/roles/os_config/handlers/main.yml

37 lines
921 B
YAML
Raw Normal View History

2022-12-25 23:26:01 +00:00
# vim: ft=yaml.ansible
---
2022-12-31 14:53:24 +00:00
- name: Create .env for apt-update-push
template:
src: env.j2
2023-01-03 21:30:22 +00:00
dest: /home/{{ ansible_user }}/apt-update-push/.env
2022-12-31 14:53:24 +00:00
owner: root
mode: u=rw,go=
listen: apt-update-push
2022-12-25 23:26:01 +00:00
- name: Install apt-update-push
2023-01-03 21:30:22 +00:00
command: /home/{{ ansible_user }}/apt-update-push/install.sh
2022-12-31 14:53:24 +00:00
listen: apt-update-push
- name: Change GPIO_PIN
lineinfile:
regexp: '^GPIO_PIN = '
line: GPIO_PIN = 14
2023-01-03 21:30:22 +00:00
dest: /home/{{ ansible_user }}/pi-fan-controller/fancontrol.py
2022-12-31 14:53:24 +00:00
listen: pi-fan-controller
- name: Install requirements for pi-fan-controller
pip:
2023-01-03 21:30:22 +00:00
requirements: /home/{{ ansible_user }}/pi-fan-controller/requirements.txt
2022-12-31 14:53:24 +00:00
executable: pip3
listen: pi-fan-controller
- name: Install pi-fan-controller
2023-01-03 21:30:22 +00:00
command: /home/{{ ansible_user }}/pi-fan-controller/script/install
2022-12-31 14:53:24 +00:00
listen: pi-fan-controller
2022-12-27 18:14:14 +00:00
- name: Restart sshd
service:
name: sshd
state: restarted
2022-12-31 14:53:24 +00:00
listen: sshd