many changes

This commit is contained in:
hybris 2019-08-08 21:20:54 +02:00
parent d4cb32b9c3
commit dccf8ca00e
22 changed files with 297 additions and 133 deletions

View file

@ -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'

View file

@ -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")}"
}