First commit

This commit is contained in:
VC
2019-09-04 09:06:55 +02:00
commit dded46ff64
144 changed files with 7495 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
- name: "Add hosts Proxmox style"
template:
src: hosts.j2
dest: /etc/hosts
- name: "Add Proxmox VE 6 GPG key"
apt_key:
url: http://download.proxmox.com/debian/proxmox-ve-release-6.x.gpg
state: present
- name: "Add Proxmox VE 6 Repo"
apt_repository:
repo: "deb http://download.proxmox.com/debian/pve buster pve-no-subscription"
state: present
- name: "Apt upgrade"
apt:
upgrade: dist

View File

@@ -0,0 +1,11 @@
# Default hosts
127.0.0.1 localhost.localdomain localhost
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
# Proxmox specific
{% for host in groups['hypervisors'] %}
{{ hostvars[host]['ansible_default_ipv4']['address'] }} {{ host }} {{ hostvars[host]['ansible_hostname'] }}
{{ hostvars[host]['ansible_default_ipv6']['address'] }} {{ host }} {{ hostvars[host]['ansible_hostname'] }}
{% endfor %}