37 lines
917 B
YAML
37 lines
917 B
YAML
- name: test playbook
|
|
hosts: P01
|
|
|
|
#vars_files:
|
|
# - secret
|
|
vars:
|
|
addr: "192.168.122.245"
|
|
os_environment:
|
|
- key: VITE_MQTT_HOST
|
|
value: polztest.local
|
|
|
|
tasks:
|
|
- name: test things
|
|
when: barco_g62 is defined
|
|
block:
|
|
#- name: ping hosts
|
|
# ansible.builtin.ping:
|
|
|
|
- name: template config.toml
|
|
ansible.builtin.template:
|
|
src: ./conf.j2
|
|
dest: /home/kat/testo/conf.txt
|
|
- name: template barco systemd service
|
|
vars:
|
|
script_file: "/home/kat/pyServices/fri-mm-maline/barco_G62_control.py %i"
|
|
ansible.builtin.template:
|
|
src: ./service.j2
|
|
dest: /home/kat/testo/barc.serv
|
|
- name: enable barcos
|
|
ansible.builtin.ping:
|
|
#itd itd itd
|
|
- name: test second
|
|
when: barco_old is defined
|
|
block:
|
|
- name: pingerino
|
|
ansible.builtin.ping:
|
|
|