common: Add vm tweaks
This commit is contained in:
parent
fc5913d56b
commit
e3b3ee0eec
5 changed files with 24 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
is_vm: true
|
||||||
|
|
||||||
ansible_user: root
|
ansible_user: root
|
||||||
ansible_python_interpreter: auto_silent
|
ansible_python_interpreter: auto_silent
|
||||||
notify_email: bestuur@bitlair.nl
|
notify_email: bestuur@bitlair.nl
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
is_vm: false
|
||||||
|
|
||||||
music_domain: music.bitlair.nl
|
music_domain: music.bitlair.nl
|
||||||
acme_san_domains:
|
acme_san_domains:
|
||||||
- [ music.bitlair.nl ]
|
- [ music.bitlair.nl ]
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
ssh_port: "22"
|
ssh_port: "22"
|
||||||
|
is_vm: false
|
||||||
unattended_upgrades_auto_reboot_time: "04:00"
|
unattended_upgrades_auto_reboot_time: "04:00"
|
||||||
unattended_upgrades_extra_origin_patterns: []
|
unattended_upgrades_extra_origin_patterns: []
|
||||||
trusted_ranges:
|
trusted_ranges:
|
||||||
|
|
|
@ -18,6 +18,10 @@
|
||||||
- tags: node-exporter
|
- tags: node-exporter
|
||||||
import_tasks: node-exporter.yaml
|
import_tasks: node-exporter.yaml
|
||||||
|
|
||||||
|
- tags: vm
|
||||||
|
import_tasks: node-exporter.yaml
|
||||||
|
when: is_vm
|
||||||
|
|
||||||
- name: Remove Vim
|
- name: Remove Vim
|
||||||
apt:
|
apt:
|
||||||
name: vim
|
name: vim
|
||||||
|
|
15
roles/common/tasks/vm.yaml
Normal file
15
roles/common/tasks/vm.yaml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
---
|
||||||
|
- name: Install guest agent
|
||||||
|
apt:
|
||||||
|
name: qemu-guest-agent
|
||||||
|
|
||||||
|
- name: Serial Console
|
||||||
|
lineinfile:
|
||||||
|
path: /etc/default/grub
|
||||||
|
regexp: ^GRUB_CMDLINE_LINUX_DEFAULT
|
||||||
|
line: 'GRUB_CMDLINE_LINUX_DEFAULT="quiet console=ttyS0,115200n1 console=tty0"'
|
||||||
|
notify:
|
||||||
|
- update grub
|
||||||
|
- reboot
|
||||||
|
|
||||||
|
- meta: flush_handlers
|
Loading…
Add table
Reference in a new issue