Merge "Fix issue with /etc/hosts in ansible element"
This commit is contained in:
commit
aa31cbe8c8
@ -1,2 +1,3 @@
|
||||
ironic-agent
|
||||
devuser
|
||||
openssh-server
|
||||
|
@ -1 +0,0 @@
|
||||
openssh-server:
|
@ -20,10 +20,4 @@ echo $ANSIBLE_DEPLOY_HOSTAME > /etc/hostname
|
||||
# Ansible issues #13965 (fixed in 2.0.1.0), #14568, #14714
|
||||
|
||||
# ensure /etc/hosts has hostname in it
|
||||
sed -i "s/127.0.0.1\s*localhost/127.0.0.1 localhost $ANSIBLE_DEPLOY_HOSTAME/g" /etc/hosts
|
||||
|
||||
# ensure SSH host keys exist
|
||||
ssh-keygen -f /etc/ssh/ssh_host_rsa_key -N '' -t rsa
|
||||
ssh-keygen -f /etc/ssh/ssh_host_dsa_key -N '' -t dsa
|
||||
ssh-keygen -f /etc/ssh/ssh_host_ecdsa_key -N '' -t ecdsa
|
||||
ssh-keygen -f /etc/ssh/ssh_host_ed25519_key -N '' -t ed25519
|
||||
echo "127.0.0.1 $ANSIBLE_DEPLOY_HOSTAME" >> /etc/hosts
|
Loading…
Reference in New Issue
Block a user