Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
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
configuration
Commits
c361d39f
Commit
c361d39f
authored
Jun 24, 2016
by
arbabnazar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update the requirement.txt to ansible 2.x
parent
ceab49dc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
playbooks/roles/launch_ec2/tasks/main.yml
+3
-3
No files found.
playbooks/roles/launch_ec2/tasks/main.yml
View file @
c361d39f
...
...
@@ -30,17 +30,17 @@
state
:
'
absent'
region
:
"
{{
region
}}"
instance_ids
:
"
{{tag_lookup.instance_ids}}"
when
:
terminate_instance ==
true
and tag_lookup.instance
_id
s|length == 1
when
:
terminate_instance ==
true
and tag_lookup.instances|length == 1
-
name
:
deregister instance from an an elb if it was in one
local_action
:
module
:
ec2_elb
region
:
"
{{
region
}}"
instance_id
:
"
{{
tag_lookup.instance
_id
s[0]
}}"
instance_id
:
"
{{
tag_lookup.instances[0]
}}"
ec2_elbs
:
-
"
{{
elb
}}"
state
:
absent
when
:
terminate_instance ==
true
and elb and tag_lookup.instance
_id
s|length == 1
when
:
terminate_instance ==
true
and elb and tag_lookup.instances|length == 1
-
name
:
Launch ec2 instance
local_action
:
...
...
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