--- - name: create backup folder file: path: "/srv/backups/autorestic/" state: directory - name: copy configuration copy: src: .autorestic.yml dest: "/srv/backups/autorestic/.autorestic.yml" - name: Get autorestic installer get_url: url: https://raw.githubusercontent.com/cupcakearmy/autorestic/master/install.sh dest: /tmp/autorestic_install.sh mode: '0755' - name: Install autorestic shell: cmd: /tmp/autorestic_install.sh executable: /bin/sh become: yes