Compare commits
2 commits
1c3b346099
...
39d94671de
Author | SHA1 | Date | |
---|---|---|---|
39d94671de | |||
48d35b39c0 |
4 changed files with 13 additions and 12 deletions
|
@ -7,19 +7,12 @@
|
|||
- name: Install services
|
||||
hosts: all
|
||||
pre_tasks:
|
||||
- name: Update repositories
|
||||
apt:
|
||||
autoremove: true
|
||||
upgrade: yes
|
||||
state: latest
|
||||
update_cache: yes
|
||||
cache_valid_time: 86400 # One day
|
||||
- name: Install packages
|
||||
apt:
|
||||
pkg:
|
||||
- qemu-guest-agent
|
||||
- dnsutils
|
||||
- name: Copy resolv.conf
|
||||
copy:
|
||||
src: resolv.conf
|
||||
dest: /etc/resolv.conf
|
||||
roles:
|
||||
- {role: 'setup-apt', tags: 'setup-apt'}
|
||||
- {role: 'dnsmasq', tags: 'dnsmasq'}
|
||||
- {role: 'nsd', tags: 'nsd'}
|
||||
- {role: 'ssh-ca', tags: 'ssh-ca'}
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
apt_install_packages:
|
||||
- qemu-guest-agent
|
||||
- dnsutils
|
||||
|
||||
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_host_ca_public_key: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAX2IhgHNxC6JTvLu9cej+iWuG+uJFMXn4AiRro9533x Host Certficate Authority for DMZ"
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
- name: setup-apt
|
||||
src: https://github.com/sunscrapers/ansible-role-apt.git
|
||||
scm: git
|
||||
- name: cloudinit-wait
|
||||
src: https://git.pim.kunis.nl/pim/ansible-role-cloudinit-wait
|
||||
scm: git
|
||||
|
|
1
ansible/resolv.conf
Normal file
1
ansible/resolv.conf
Normal file
|
@ -0,0 +1 @@
|
|||
nameserver 192.168.30.1
|
Reference in a new issue