tuer: Make installed binaries executable
[noc.git] / ansible / tuer.yml
index 9989e0d..1ed9f12 100644 (file)
         openwrt_mixin:
           # Go binaries
           /usr/local/bin/door_client:
+            mode: 0755
             file: "{{ playbook_dir }}/.cache/openwrt/tuer/door_and_sensors/door_client/door_client"
           /usr/local/bin/door_daemon:
+            mode: 0755
             file: "{{ playbook_dir }}/.cache/openwrt/tuer/door_and_sensors/door_daemon/door_daemon"
           /usr/local/bin/update-keys:
+            mode: 0755
             file: "{{ playbook_dir }}/.cache/openwrt/tuer/door_and_sensors/update-keys/update-keys"
 
           /etc/config/network:
                option RootPasswordAuth 'off'
                option Port '22000'
 
-          # TODO: mode needs to be 0600
           /etc/dropbear/authorized_keys:
+            mode: 0600
             content: |-
               {% for key in noc_ssh_keys %}
               {{ key }}