--- - debug: var: ansible_run_tags - name: install gallery import_tasks: install.yml vars: git_repo: "https://gitlab.com/cinnaboot/gallery.git" docroot: /var/www/localhost/htdocs folder: '{{ docroot }}/gallery' flask_entry: gallery web_user: lighttpd web_group: lighttpd proxy_port: 3031 - name: backup gallery when: "'backup' in ansible_run_tags" import_tasks: backup.yml tags: backup vars: output_dir: /tmp/ archive: "{{ output_dir }}gallery_backup.tgz" album_path: /var/www/localhost/htdocs/gallery/instance/images