Compare commits

...

2 commits

Author SHA1 Message Date
39d94671de manage DNS with resolv.conf again 2023-04-24 00:00:28 +02:00
48d35b39c0 use separate role for package management 2023-04-23 23:57:57 +02:00
4 changed files with 13 additions and 12 deletions

View file

@ -7,19 +7,12 @@
- name: Install services - name: Install services
hosts: all hosts: all
pre_tasks: pre_tasks:
- name: Update repositories - name: Copy resolv.conf
apt: copy:
autoremove: true src: resolv.conf
upgrade: yes dest: /etc/resolv.conf
state: latest
update_cache: yes
cache_valid_time: 86400 # One day
- name: Install packages
apt:
pkg:
- qemu-guest-agent
- dnsutils
roles: roles:
- {role: 'setup-apt', tags: 'setup-apt'}
- {role: 'dnsmasq', tags: 'dnsmasq'} - {role: 'dnsmasq', tags: 'dnsmasq'}
- {role: 'nsd', tags: 'nsd'} - {role: 'nsd', tags: 'nsd'}
- {role: 'ssh-ca', tags: 'ssh-ca'} - {role: 'ssh-ca', tags: 'ssh-ca'}

View file

@ -1,3 +1,7 @@
apt_install_packages:
- qemu-guest-agent
- dnsutils
ssh_ca_dir: /root/ssh_ca ssh_ca_dir: /root/ssh_ca
ssh_ca_user_ca_public_key: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGKOClnK6/Hj8INjEgULY/lD2FM/nbiJHqaSXtEw4+Fj User Certificate Authority for DMZ" ssh_ca_user_ca_public_key: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGKOClnK6/Hj8INjEgULY/lD2FM/nbiJHqaSXtEw4+Fj User Certificate Authority for DMZ"
ssh_ca_host_ca_public_key: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAX2IhgHNxC6JTvLu9cej+iWuG+uJFMXn4AiRro9533x Host Certficate Authority for DMZ" ssh_ca_host_ca_public_key: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAX2IhgHNxC6JTvLu9cej+iWuG+uJFMXn4AiRro9533x Host Certficate Authority for DMZ"

View file

@ -1,3 +1,6 @@
- name: setup-apt
src: https://github.com/sunscrapers/ansible-role-apt.git
scm: git
- name: cloudinit-wait - name: cloudinit-wait
src: https://git.pim.kunis.nl/pim/ansible-role-cloudinit-wait src: https://git.pim.kunis.nl/pim/ansible-role-cloudinit-wait
scm: git scm: git

1
ansible/resolv.conf Normal file
View file

@ -0,0 +1 @@
nameserver 192.168.30.1