many changes
This commit is contained in:
parent
d4cb32b9c3
commit
dccf8ca00e
22 changed files with 297 additions and 133 deletions
|
@ -8,10 +8,11 @@ users:
|
|||
write_files:
|
||||
- content: |
|
||||
#!/bin/bash
|
||||
# inet6_addr=$(ip a s | grep "inet6 2001:470:6d:22c:" | awk '{print substr($2,0)}')
|
||||
sudo hostnamectl set-hostname {{ item.hostname }}
|
||||
#sudo ip -6 addr add {{ item.ipv6 }}/64 dev eth0
|
||||
sudo hostnamectl set-hostname {{ item.hostname_full }}
|
||||
sudo chown -R {{ ansible_ssh_user }}:{{ ansible_ssh_user }} /home/{{ ansible_ssh_user }}
|
||||
#yum install qemu-guest-agent
|
||||
#systemctl start qemu-guest-agent
|
||||
#systemctl enable qemu-guest-agent
|
||||
path: /home/{{ ansible_ssh_user }}/cloud-init.sh
|
||||
owner: {{ ansible_ssh_user }}:{{ ansible_ssh_user }}
|
||||
permissions: '0744'
|
||||
|
|
|
@ -46,4 +46,3 @@ data "template_file" "user-data-{{ item.hostname }}" {
|
|||
data "template_file" "network-config-{{ item.hostname }}" {
|
||||
template = "${file("${path.module}/{{ item.hostname }}.cloud_init_network.cfg")}"
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue