--- - hosts: localhost collections: - theforeman.foreman gather_facts: false vars_files: - vars/server.yml tasks: - include_tasks: tasks/snapshot.yml vars: snapshot_state: absent - hosts: tests collections: - theforeman.foreman gather_facts: false vars_files: - vars/server.yml tasks: - include_tasks: tasks/snapshot.yml vars: snapshot_state: present expected_change: true - include_tasks: tasks/snapshot.yml vars: snapshot_state: present expected_change: false - include_tasks: tasks/snapshot.yml vars: snapshot_description: "alpha" snapshot_state: present expected_change: true - include_tasks: tasks/snapshot.yml vars: snapshot_description: "alpha" snapshot_state: present expected_change: false - include_tasks: tasks/snapshot.yml vars: snapshot_state: reverted expected_change: true - include_tasks: tasks/snapshot.yml vars: snapshot_state: absent expected_change: true - include_tasks: tasks/snapshot.yml vars: snapshot_state: absent expected_change: false ...