summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeth Vidal <skvidal@fedoraproject.org>2012-10-22 17:47:45 +0000
committerSeth Vidal <skvidal@fedoraproject.org>2012-10-22 17:47:45 +0000
commit00c20b3fe2e072ba95305bfd95115d10f5e4f50e (patch)
tree451cd59d9173f4a86e1c4c5470d3fbd7efe3e16f
parent6794fdc28bfad442810a0e583d9f29668b772877 (diff)
downloadansible-00c20b3fe2e072ba95305bfd95115d10f5e4f50e.tar.gz
ansible-00c20b3fe2e072ba95305bfd95115d10f5e4f50e.tar.xz
ansible-00c20b3fe2e072ba95305bfd95115d10f5e4f50e.zip
add the optiona $hostbase to the cloud setup schtick
-rw-r--r--tasks/cloud_setup_basic.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/tasks/cloud_setup_basic.yml b/tasks/cloud_setup_basic.yml
index 8c6cc5d27..c21b3c8f5 100644
--- a/tasks/cloud_setup_basic.yml
+++ b/tasks/cloud_setup_basic.yml
@@ -21,8 +21,8 @@
- name: sync time - just once
action: command /usr/sbin/ntpdate -s -b 66.187.233.4
-- name: edit hostname to be instance name
- action: shell hostname `curl -s http://169.254.169.254/latest/meta-data/instance-id`
+- name: edit hostname to be instance name - prefix hostbase var if it exists
+ action: shell hostname ${hostbase}`curl -s http://169.254.169.254/latest/meta-data/instance-id`
tags:
- config