mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
add the optiona $hostbase to the cloud setup schtick
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user