37 lines
931 B
YAML
37 lines
931 B
YAML
# vim: ft=yaml.ansible
|
|
---
|
|
- name: Create .env for apt-update-push
|
|
template:
|
|
src: env.j2
|
|
dest: "/home/{{ ansible_user }}/apt-update-push/.env"
|
|
owner: root
|
|
mode: u=rw,go=
|
|
listen: apt-update-push
|
|
|
|
- name: Install apt-update-push
|
|
command: "/home/{{ ansible_user }}/apt-update-push/install.sh"
|
|
listen: apt-update-push
|
|
|
|
- name: Change GPIO_PIN
|
|
lineinfile:
|
|
regexp: '^GPIO_PIN = '
|
|
line: GPIO_PIN = 14
|
|
dest: "/home/{{ ansible_user }}/pi-fan-controller/fancontrol.py"
|
|
listen: pi-fan-controller
|
|
|
|
- name: Install requirements for pi-fan-controller
|
|
pip:
|
|
requirements: "/home/{{ ansible_user }}/pi-fan-controller/requirements.txt"
|
|
executable: pip3
|
|
listen: pi-fan-controller
|
|
|
|
- name: Install pi-fan-controller
|
|
command: "/home/{{ ansible_user }}/pi-fan-controller/script/install"
|
|
listen: pi-fan-controller
|
|
|
|
- name: Restart sshd
|
|
service:
|
|
name: sshd
|
|
state: restarted
|
|
listen: sshd
|