mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-01-23 12:38:11 +00:00
upt playbook
This commit is contained in:
parent
fc853ca298
commit
e0945fec05
@ -27,10 +27,19 @@
|
||||
when: inventory_hostname not in groups['nas']
|
||||
become: "{{ 'no' if inventory_hostname in groups['nas'] else 'yes' }}"
|
||||
|
||||
- name: Upload service script
|
||||
- name: Upload service script1
|
||||
ansible.builtin.copy:
|
||||
src: scripts/mqtt_srv.sh
|
||||
dest: /etc/init.d/
|
||||
mode: '755'
|
||||
owner: admin
|
||||
when: inventory_hostname in groups['nas']
|
||||
become: "{{ 'no' if inventory_hostname in groups['nas'] else 'yes' }}"
|
||||
|
||||
- name: Upload service script2
|
||||
ansible.builtin.copy:
|
||||
src: scripts/mqtt_srv.py
|
||||
dest: /share/Data/__GITLAB/mqtt_srv/
|
||||
dest: /usr/bin/
|
||||
mode: '755'
|
||||
owner: admin
|
||||
when: inventory_hostname in groups['nas']
|
||||
@ -63,7 +72,7 @@
|
||||
become: "{{ 'no' if inventory_hostname in groups['nas'] else 'yes' }}"
|
||||
|
||||
- name: Install bottle python package1
|
||||
ansible.builtin.shell: "(/etc/init.d/mqtt restart >/dev/null 2>&1 &)"
|
||||
ansible.builtin.shell: "(/etc/init.d/mqtt_srv.sh restart >/dev/null 2>&1 &)"
|
||||
async: 10
|
||||
poll: 0
|
||||
when: inventory_hostname in groups['nas']
|
||||
|
Loading…
x
Reference in New Issue
Block a user