Commit 2dcb7c8f by Brian Beggs

Extra optional identifier for CD AMI names

parent 6c4f428d
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
# - hipchat_token - API token to send messages to hipchat # - hipchat_token - API token to send messages to hipchat
# - hipchat_room - ID or name of the room to send the notification # - hipchat_room - ID or name of the room to send the notification
# - hipchat_url - URL of the hipchat API (defaults to v1 of the api) # - hipchat_url - URL of the hipchat API (defaults to v1 of the api)
# - extra_name_identifier - Makes each AMI unique if desired - Default: 0
# #
# Example command line to run this playbook: # Example command line to run this playbook:
# ansible-playbook -vvvv -i "localhost," -c local \ # ansible-playbook -vvvv -i "localhost," -c local \
...@@ -49,6 +50,7 @@ ...@@ -49,6 +50,7 @@
no_reboot: no no_reboot: no
artifact_path: /tmp/ansible-runtime artifact_path: /tmp/ansible-runtime
hipchat_url: https://api.hipchat.com/v2/ hipchat_url: https://api.hipchat.com/v2/
extra_name_identifier: 0
gather_facts: False gather_facts: False
connection: local connection: local
tasks: tasks:
...@@ -63,7 +65,7 @@ ...@@ -63,7 +65,7 @@
- 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 }}"
name: "{{ edx_environment }} -- {{ deployment }} -- {{ play }} -- {{ app_version }}" name: "{{ edx_environment }} -- {{ deployment }} -- {{ play }} -- {{ app_version }} -- {{ extra_name_identifier }}"
region: "{{ ec2_region }}" region: "{{ ec2_region }}"
wait: "{{ ami_wait }}" wait: "{{ ami_wait }}"
wait_timeout: "{{ ami_creation_timeout }}" wait_timeout: "{{ ami_creation_timeout }}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment