--- - hosts: localhost collections: - theforeman.foreman gather_facts: false vars_files: - vars/server.yml tasks: - name: ensure test organization include_tasks: tasks/organization.yml vars: organization_name: "Test Organization" organization_state: "present" - hosts: tests collections: - theforeman.foreman gather_facts: false vars_files: - vars/server.yml roles: - role: convert2rhel vars: foreman_organization: "Test Organization" foreman_validate_certs: false foreman_convert2rhel_manage_subscription: false foreman_content_rhel_wait_for_syncs: false foreman_content_rhel_enable_rhel7: true foreman_content_rhel_enable_rhel8: true foreman_convert2rhel_enable_oracle7: true foreman_convert2rhel_enable_oracle8: true - hosts: localhost collections: - theforeman.foreman gather_facts: false vars_files: - vars/server.yml tasks: - name: remove groups include_tasks: tasks/hostgroup.yml vars: hostgroup_name: "{{ item }}" hostgroup_state: "absent" loop: - CentOS 7 converting - CentOS 8 converting - Oracle Linux 7 converting - Oracle Linux 8 converting - name: remove keys include_tasks: tasks/activation_key.yml vars: activation_key_name: "{{ item }}" activation_key_state: "absent" loop: - convert2rhel_centos7 - convert2rhel_centos8 - convert2rhel_oracle7 - convert2rhel_oracle8 - convert2rhel_rhel7 - convert2rhel_rhel8 - name: remove content views include_tasks: tasks/content_view.yml vars: content_view_name: "{{ item }}" content_view_state: "absent" loop: - convert2rhel_centos7 - convert2rhel_centos8 - name: remove products include_tasks: tasks/product.yml vars: product_name: "{{ item }}" product_state: "absent" loop: - Oracle Linux 8 Convert2RHEL - Oracle Linux 7 Convert2RHEL - Convert2RHEL7 - Convert2RHEL8 - name: remove organization include_tasks: tasks/organization.yml vars: organization_name: "Test Organization" organization_state: "absent"