Install repo rollladensteuerung and compile agents

This commit is contained in:
Stefan Haun 2022-07-23 18:22:04 +02:00
parent ea2dde451a
commit 69cac8f011

View file

@ -20,6 +20,8 @@
- python3-pip
# Regular packages
- tmux
- git-core
- libmosquitto-dev
- name: Set MAC address for proper DHCP recognition
@ -96,3 +98,34 @@
state: present
deb: "/home/{{ gatekeeper_user }}/wiringpi-latest.deb"
when: wiringPi_download.changed
### Rollladensteuerung
- name: Clone netz39_rollladensteuerung initial checkout
# Do this as the gatekeeper user!
become: yes
become_user: "{{ gatekeeper_user }}"
ansible.builtin.git:
repo: https://github.com/netz39/rollladensteuerung.git
dest: "/home/{{ gatekeeper_user }}/netz39_rollladensteuerung"
clone: yes
update: no
- name: Compile dootstate agent
# Do this as the gatekeeper user!
become: yes
become_user: "{{ gatekeeper_user }}"
ansible.builtin.shell:
chdir: "/home/{{ gatekeeper_user }}/netz39_rollladensteuerung/raspberry/doorstate"
cmd: make
creates: "/home/{{ gatekeeper_user }}/netz39_rollladensteuerung/raspberry/doorstate/doorstate"
- name: Compile shuttercontrol
# Do this as the gatekeeper user!
become: yes
become_user: "{{ gatekeeper_user }}"
ansible.builtin.shell:
chdir: "/home/{{ gatekeeper_user }}/netz39_rollladensteuerung/raspberry/shuttercontrol"
cmd: make
creates: "/home/{{ gatekeeper_user }}/netz39_rollladensteuerung/raspberry/shuttercontrol/shuttercontrol"