43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
# vim: ft=yaml.ansible
|
|
---
|
|
- name: Restart systemd-resolved
|
|
ansible.builtin.service:
|
|
name: systemd-resolved
|
|
state: restarted
|
|
|
|
- name: Create .env for apt-update-push
|
|
ansible.builtin.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
|
|
ansible.builtin.command: /home/{{ ansible_user }}/apt-update-push/install.sh
|
|
listen: apt-update-push
|
|
|
|
- name: Change GPIO_PIN
|
|
ansible.builtin.lineinfile:
|
|
path: /home/{{ ansible_user }}/pi-fan-controller/fancontrol.py
|
|
regexp: '^GPIO_PIN = '
|
|
line: GPIO_PIN = 14
|
|
state: present
|
|
listen: pi-fan-controller
|
|
|
|
- name: Install requirements for pi-fan-controller
|
|
ansible.builtin.pip:
|
|
requirements: /home/{{ ansible_user }}/pi-fan-controller/requirements.txt
|
|
executable: pip3
|
|
state: present
|
|
listen: pi-fan-controller
|
|
|
|
- name: Install pi-fan-controller
|
|
ansible.builtin.command: /home/{{ ansible_user }}/pi-fan-controller/script/install
|
|
listen: pi-fan-controller
|
|
|
|
- name: Restart sshd
|
|
ansible.builtin.service:
|
|
name: sshd
|
|
state: restarted
|