Skip to content

Instantly share code, notes, and snippets.

Created October 19, 2015 09:23
Show Gist options
  • Save anonymous/4be1e29b5ebf14d39b59 to your computer and use it in GitHub Desktop.
Save anonymous/4be1e29b5ebf14d39b59 to your computer and use it in GitHub Desktop.
---
- hosts: all
sudo: true
vars_files:
- vars.yml
tasks:
- uri:
url: "https://api.serverpilot.io/v1/servers"
user: "{{ spclientid }}"
password: "{{ spapikey }}"
return_content: yes
method: POST
force_basic_auth: yes
HEADER_Content-Type: "application/json"
body: '{"name": "www2"}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment