Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
8f45b77d
Commit
8f45b77d
authored
Aug 13, 2013
by
asmajlovic
Committed by
James Cammarata
Aug 13, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comparison data type mismatch corrected
parent
0c98c764
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
14 deletions
+18
-14
library/cloud/rax
+18
-14
No files found.
library/cloud/rax
View file @
8f45b77d
...
...
@@ -94,19 +94,23 @@ notes:
'''
EXAMPLES
=
'''
# Create a server
- local_action:
module: rax
credentials: ~/.raxpub
service: cloudservers
name: rax-test1
flavor: 5
image: b11d9567-e412-4255-96b9-bd63ab23bcfe
files:
/root/.ssh/authorized_keys: /home/localuser/.ssh/id_rsa.pub
/root/test.txt: /home/localuser/test.txt
wait: yes
state: present
- name: Build a Cloud Server
gather_facts: False
tasks:
- name: Server build request
local_action:
module: rax
credentials: ~/.raxpub
service: cloudservers
name: rax-test1
flavor: 5
image: b11d9567-e412-4255-96b9-bd63ab23bcfe
files:
/root/.ssh/authorized_keys: /home/localuser/.ssh/id_rsa.pub
/root/test.txt: /home/localuser/test.txt
wait: yes
state: present
'''
import
sys
...
...
@@ -196,7 +200,7 @@ def cloudservers(module, state, name, flavor, image, meta, key_name, files,
# See if we can find a server that matches our credentials
for
server
in
servers
:
if
server
.
name
==
name
:
if
server
.
flavor
[
'id'
]
==
flavor
and
\
if
int
(
server
.
flavor
[
'id'
])
==
int
(
flavor
)
and
\
server
.
image
[
'id'
]
==
image
and
\
server
.
metadata
==
meta
:
try
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment