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"