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

39 lines
1 KiB
YAML
Raw Permalink 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
2023-03-22 18:31:21 +00:00
ansible.builtin.template:
2022-12-31 14:53:24 +00:00
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-03-22 18:31:21 +00:00
ansible.builtin.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
2023-03-22 18:31:21 +00:00
ansible.builtin.lineinfile:
path: /home/{{ ansible_user }}/pi-fan-controller/fancontrol.py
2022-12-31 14:53:24 +00:00
regexp: '^GPIO_PIN = '
line: GPIO_PIN = 14
state: present
2022-12-31 14:53:24 +00:00
listen: pi-fan-controller
- name: Install requirements for pi-fan-controller
2023-03-22 18:31:21 +00:00
ansible.builtin.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
2023-04-17 14:06:52 +00:00
state: present
2022-12-31 14:53:24 +00:00
listen: pi-fan-controller
- name: Install pi-fan-controller
2023-03-22 18:31:21 +00:00
ansible.builtin.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
2023-03-22 18:31:21 +00:00
ansible.builtin.service:
2022-12-27 18:14:14 +00:00
name: sshd
state: restarted
2022-12-31 14:53:24 +00:00
listen: sshd