Created
May 7, 2013 11:05
-
-
Save tomellis/5531859 to your computer and use it in GitHub Desktop.
Rax Ansible
This file contains 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
- name: Launch a server in rax cloud # playbook name | |
hosts: local # target local host | |
connection: local # run actions locally | |
gather_facts: false # forget gathering facts, this is our local system | |
tasks: | |
- name: Create a server # task name | |
local_action: | |
module: rax # module to use | |
creds_file: /home/trellis/creds # path to your credentials | |
service: cloudservers # rackspace service | |
name: rax-test1 # server name | |
flavor: 2 # server type (512mb) | |
image: e4dbdba7-b2a4-4ee5-8e8f-4595b6d694ce # image id for Ubuntu 12.04 LTS | |
region: LON # London Region | |
wait: no # Wait for server to build | |
state: present # Required state, we want it to launch not delete | |
key_name: test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment