--- # The validation and the drift detection only: main.yml would also call the Proxmox API to look # the VM up and fetch its config, which the scenario does not exercise (README, Tests). The fetched # config is seeded instead, as the fact detect_disk.yml sets from the REST lookup. - name: Converge hosts: all gather_facts: false tasks: - name: Validate the inputs ansible.builtin.include_role: name: mortis.kamino.pve_vm tasks_from: validate vars: pve_vm_disk_size: 32G - name: Seed the live VM config the REST lookup would return ansible.builtin.set_fact: __pve_vm_config: "{{ pve_vm_test_config }}" - name: Detect configuration drift ansible.builtin.include_role: name: mortis.kamino.pve_vm tasks_from: detect_drift - name: Assert the seeded config matches the inputs ansible.builtin.assert: that: - not (__pve_vm_needs_update | bool) fail_msg: The seeded config, which matches every input, was reported as drift quiet: true