diff options
author | Seth Vidal <skvidal@fedoraproject.org> | 2012-10-22 17:47:45 +0000 |
---|---|---|
committer | Seth Vidal <skvidal@fedoraproject.org> | 2012-10-22 17:47:45 +0000 |
commit | 00c20b3fe2e072ba95305bfd95115d10f5e4f50e (patch) | |
tree | 451cd59d9173f4a86e1c4c5470d3fbd7efe3e16f | |
parent | 6794fdc28bfad442810a0e583d9f29668b772877 (diff) | |
download | ansible-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.yml | 4 |
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 |