forked from ccchb/ansible
Changes
This commit is contained in:
parent
ca45f138f9
commit
f5a258b9a1
8 changed files with 27 additions and 4 deletions
|
@ -3,6 +3,7 @@
|
||||||
- emma
|
- emma
|
||||||
|
|
||||||
become: yes
|
become: yes
|
||||||
|
tags: bhyve
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- bhyve
|
- bhyve
|
||||||
|
|
|
@ -3,4 +3,3 @@
|
||||||
become: yes
|
become: yes
|
||||||
roles:
|
roles:
|
||||||
- debian
|
- debian
|
||||||
- { role: user_mgmt, tags: [user_mgmt]}
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
ansible_python_interpreter: /usr/bin/python3.7
|
ansible_python_interpreter: /usr/bin/python3
|
||||||
|
|
||||||
dns: 213.133.98.98 8.8.8.8
|
dns: 213.133.98.98 8.8.8.8
|
||||||
ipv6_subnet: '2a01:4f8:150:926f::'
|
ipv6_subnet: '2a01:4f8:150:926f::'
|
||||||
|
@ -8,6 +8,6 @@ ipv4_subnet: 10.0.0.0
|
||||||
ipv6: '{{ ipv6_subnet | ipmath(2 * (vm_index +2)+1) }}/127'
|
ipv6: '{{ ipv6_subnet | ipmath(2 * (vm_index +2)+1) }}/127'
|
||||||
ipv6route: '{{ ipv6_subnet | ipmath(2 * (vm_index +2)) }}'
|
ipv6route: '{{ ipv6_subnet | ipmath(2 * (vm_index +2)) }}'
|
||||||
|
|
||||||
ansible_ssh_host: '{{ ipv4_subnet | ipmath(2 * vm_index +1) }}'
|
#ansible_ssh_host: '{{ ipv4_subnet | ipmath(2 * vm_index +1) }}'
|
||||||
ipv4: '{{ ipv4_subnet | ipmath(2 * vm_index +1) }}/31'
|
ipv4: '{{ ipv4_subnet | ipmath(2 * vm_index +1) }}/31'
|
||||||
ipv4route: '{{ ipv4_subnet | ipmath(2 * vm_index) }}'
|
ipv4route: '{{ ipv4_subnet | ipmath(2 * vm_index) }}'
|
||||||
|
|
|
@ -232,7 +232,6 @@ bhyve_guests:
|
||||||
image: ubuntu-22.04.1-live-server-amd64.iso
|
image: ubuntu-22.04.1-live-server-amd64.iso
|
||||||
password: foobar
|
password: foobar
|
||||||
order:
|
order:
|
||||||
- ISO
|
|
||||||
- DISKS
|
- DISKS
|
||||||
disks:
|
disks:
|
||||||
- name: disk
|
- name: disk
|
||||||
|
|
15
host_vars/frab.emma.ccchb.de.yml
Normal file
15
host_vars/frab.emma.ccchb.de.yml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
vm_index: 9
|
||||||
|
|
||||||
|
user_mgmt:
|
||||||
|
crest:
|
||||||
|
state: present
|
||||||
|
groups: sudo
|
||||||
|
fritz:
|
||||||
|
state: present
|
||||||
|
groups: sudo
|
||||||
|
humm:
|
||||||
|
state: present
|
||||||
|
groups: sudo
|
||||||
|
blazr:
|
||||||
|
state: present
|
||||||
|
groups: sudo
|
2
hosts/10_frab
Normal file
2
hosts/10_frab
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[frab]
|
||||||
|
frab.emma.ccchb.de
|
1
site.yml
1
site.yml
|
@ -7,3 +7,4 @@
|
||||||
- import_playbook: mail.yml
|
- import_playbook: mail.yml
|
||||||
- import_playbook: restic.yml
|
- import_playbook: restic.yml
|
||||||
- import_playbook: wiki.yml
|
- import_playbook: wiki.yml
|
||||||
|
- import_playbook: users.yml
|
||||||
|
|
6
users.yml
Normal file
6
users.yml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
- hosts: debian frab
|
||||||
|
become: yes
|
||||||
|
tags: [user_mgmt]
|
||||||
|
roles:
|
||||||
|
- user_mgmt
|
Loading…
Reference in a new issue