Install repo rollladensteuerung and compile agents
This commit is contained in:
parent
ea2dde451a
commit
69cac8f011
1 changed files with 33 additions and 0 deletions
33
platon.yml
33
platon.yml
|
@ -20,6 +20,8 @@
|
||||||
- python3-pip
|
- python3-pip
|
||||||
# Regular packages
|
# Regular packages
|
||||||
- tmux
|
- tmux
|
||||||
|
- git-core
|
||||||
|
- libmosquitto-dev
|
||||||
|
|
||||||
|
|
||||||
- name: Set MAC address for proper DHCP recognition
|
- name: Set MAC address for proper DHCP recognition
|
||||||
|
@ -96,3 +98,34 @@
|
||||||
state: present
|
state: present
|
||||||
deb: "/home/{{ gatekeeper_user }}/wiringpi-latest.deb"
|
deb: "/home/{{ gatekeeper_user }}/wiringpi-latest.deb"
|
||||||
when: wiringPi_download.changed
|
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"
|
||||||
|
|
Loading…
Reference in a new issue