- hosts: topside:rasprime:picamera
  become: yes
  become_method: sudo
  gather_facts: no
  tasks:
    - name: Make opt directory
      file: path=/opt state=directory mode=0755
    - name: Copy Control Software
      unarchive: src=../build/distributions/topside-1.0.0.zip dest=/opt

- hosts: rasprime:picamera
  become: yes
  become_method: sudo
  gather_facts: no
  tasks:
    - name: Copy unit file for systemd
      template: src=files/etc/systemd/system/eer.service dest=/etc/systemd/system/eer.service mode=644
      notify: Reload systemd
  handlers:
    - name: Reload systemd
      command: systemctl daemon-reload

- hosts: topside
  gather_facts: no
  tasks:
    - name: Make a pretty launcher for da NOOBS
      copy: src=files/Launcher.desktop dest=~/Desktop mode=700

- hosts: topside:rasprime:picamera
  become: yes
  become_method: sudo
  gather_facts: no
  tasks:
    - name: Make opt directory
      file: path=/opt state=directory mode=0755
    - name: Copy Control Software
      unarchive: src=../build/distributions/topside-1.0.0.zip dest=/opt

- hosts: rasprime:picamera
  become: yes
  become_method: sudo
  gather_facts: no
  tasks:
    - name: Copy unit file for systemd
      template: src=files/etc/systemd/system/eer.service dest=/etc/systemd/system/eer.service mode=644
      notify:
        - Reload systemd
        - Enable eer service
        - Restart eer service
  handlers:
    - name: Reload systemd
      command: systemctl daemon-reload
    - name: Enable eer service
      command: systemctl enable eer.service
    - name: Restart eer service
      service: name=eer state=restarted

- hosts: topside
  gather_facts: no
  tasks:
    - name: Make a pretty launcher for da NOOBS
      copy: src=files/Launcher.desktop dest=~/Desktop mode=700

Enable and restart eer service
ansible: Enable and restart eer service

Closes #113
