--- - name: Register VM hosts: "{{ vm_name }}" gather_facts: false tasks: - name: Register VM on red hat portal community.general.redhat_subscription: state: present username: "{{ username }}" password: "{{ password }}"