diff --git a/playbooks/install_mqtt_srv.yml b/playbooks/install_mqtt_srv.yml index fb7072c..9d2060a 100644 --- a/playbooks/install_mqtt_srv.yml +++ b/playbooks/install_mqtt_srv.yml @@ -30,7 +30,14 @@ owner: root when: inventory_hostname not in groups['nas'] and inventory_hostname not in groups['router'] become: "{{ 'no' if inventory_hostname in groups['nas'] else 'yes' }}" - + - name: Upload service script config + ansible.builtin.copy: + src: scripts/mqtt_srv.cfg + dest: /etc/mqtt_srv + mode: '755' + owner: root + when: inventory_hostname not in groups['nas'] and inventory_hostname not in groups['router'] + become: "{{ 'no' if inventory_hostname in groups['nas'] else 'yes' }}" - name: Upload service script1 ansible.builtin.copy: src: scripts/mqtt_srv.sh