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
d1f20ef8
Commit
d1f20ef8
authored
8 years ago
by
Brian Beggs
Committed by
GitHub
8 years ago
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3360 from edx/bbeggs/TE-1497
Add task to take tags from the instance and put them on the AMI
parents
6ad8bddd
67e5804e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
playbooks/continuous_delivery/create_ami.yml
+14
-0
No files found.
playbooks/continuous_delivery/create_ami.yml
View file @
d1f20ef8
...
@@ -52,6 +52,14 @@
...
@@ -52,6 +52,14 @@
gather_facts
:
False
gather_facts
:
False
connection
:
local
connection
:
local
tasks
:
tasks
:
-
name
:
Fetch tags on the instance
ec2_tag
:
region
:
"
{{
ec2_region
}}"
resource
:
"
{{
instance_id
}}"
state
:
list
register
:
instance_tags
-
name
:
Create AMI
-
name
:
Create AMI
ec2_ami_2_0_0_1
:
ec2_ami_2_0_0_1
:
instance_id
:
"
{{
instance_id
}}"
instance_id
:
"
{{
instance_id
}}"
...
@@ -73,6 +81,12 @@
...
@@ -73,6 +81,12 @@
}"
}"
register
:
ami_register
register
:
ami_register
-
name
:
Add any tags that are on the instance to the AMI
ec2_tag
:
region
:
"
{{
ec2_region
}}"
resource
:
"
{{
ami_register.image_id
}}"
tags
:
"
{{
instance_tags.tags
}}"
-
name
:
add optional edx-theme tag
-
name
:
add optional edx-theme tag
ec2_tag
:
ec2_tag
:
region
:
"
{{
ec2_region
}}"
region
:
"
{{
ec2_region
}}"
...
...
This diff is collapsed.
Click to expand it.
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