ansible How To Create A DreamHost Cloud Server From An Ansible Playbook Running the Playbook


Example

Run the Ansible playbook:

$ ansible-playbook launch-server.yaml

You should see output like

PLAY [localhost]
***************************************************************

TASK [setup]
*******************************************************************
ok: [localhost]

TASK [launch an Ubuntu server]
***********************************************
changed: [localhost]

PLAY RECAP
*********************************************************************
localhost                  : ok=2    changed=1    unreachable=0    failed=0

Now if you check the DreamHost Cloud dashboard you should see a new instance named “ansible-vm1”