Forked from hagbarddenstore/gist:ccef5d3bf7fd9db0612f
Last active
October 19, 2015 10:38
-
-
Save mgedmin/457dfe5cb1f2b9d8600b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: all | |
sudo: true | |
vars_files: | |
- vars.yml | |
vars: | |
body: | |
name: "{{host_variable}}" | |
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: "{{ body | to_json }}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment