- hosts: localhost tasks: - name: Restore LXD container snapshot ansible.builtin.shell: lxc restore {{ name }} {{ snapshot }}