- hosts: "borg-backup" tasks: - name: Setup db backup streaming job block: - name: Create backup streaming config dir file: path: /etc/borg-streams state: directory - name: Create sample streaming file copy: content: >- dd if=/dev/urandom bs=1M count=5 dest: /etc/borg-streams/random