ansible/playbooks/rpi-model.yaml
2024-02-13 18:36:34 +00:00

16 lines
386 B
YAML

---
- name: Gets models for raspberry pies (raspberries)
hosts: raspberries
tasks:
- name: Include the rpi_scripts role
include_role:
name: rpi_scripts
- name: Execute model script
ansible.builtin.command:
chdir: /home/pi/bin
cmd: ./model
register: stdout
- name: Display raspberry models
debug:
var=stdout.stdout