From 69cac8f01104b7197ec7a36b8ade95a93aa0221a Mon Sep 17 00:00:00 2001 From: Stefan Haun Date: Sat, 23 Jul 2022 18:22:04 +0200 Subject: [PATCH] Install repo rollladensteuerung and compile agents --- platon.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/platon.yml b/platon.yml index 83fc9d9..d066bf3 100644 --- a/platon.yml +++ b/platon.yml @@ -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"