Problem:
I want to use Foreman 2.1 to create new VMs in a VMware site by installing from scratch (not using a template). What is the process?
Foreman and Proxy versions:
Foreman 2.1
Foreman and Proxy plugin versions:
theforeman.foreman 1.3.0
Other relevant data:
This is my ansible to create the host:
---
- name: Create a VM
hosts: localhost
gather_facts: false
tasks:
- theforeman.foreman.host:
username: "admin"
password: "password"
server_url: "https://192.168.33.183"
validate_certs: false
name: 'new-host1.demo.com'
hostgroup: 'CentOS 8 VMs'
organization: 'Default Organization'
location: 'Default Location'
compute_attributes:
cpus: 2
memory_mb: 4096
start: "1"
managed: false
state: present
...
But the host new-host1.demo.com does not appear in vSphere.