Skip to content
Snippets Groups Projects
Commit c4cd0279 authored by Kristian Klausen's avatar Kristian Klausen :tada:
Browse files

cleanup libvirt role

parent d1396d25
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !385. Comments created here will be created in the context of that merge request.
......@@ -7,36 +7,9 @@
pacman: name=virt-install state=present
# bridge-utils?
# TODO: autostart network
# reload firewalld for at få libvirt zonen
# cpu model host?
- name: autostart default network on boot
file: src=/etc/libvirt/qemu/networks/default.xml dest=/etc/libvirt/qemu/networks/autostart/default.xml state=link owner=root group=root
- name: install loki configuration
copy: src=loki.yaml dest=/etc/loki/ owner=root group=root mode=0644
notify: restart loki
- name: install python-passlib
pacman: name=python-passlib
- name: create htpasswd for nginx loki endpoint
htpasswd:
path: "{{ loki_nginx_htpasswd }}"
name: "{{ vault_loki_nginx_user }}"
password: "{{ vault_loki_nginx_passwd }}"
owner: root
group: http
mode: 0640
- name: make nginx log dir
file: path=/var/log/nginx/{{ logging_domain }} state=directory owner=root group=root mode=0755
- name: set up nginx
template: src=nginx.d.conf.j2 dest="/etc/nginx/nginx.d/logging.conf" owner=root group=root mode=644
notify: reload nginx
tags: ['nginx']
- name: start and enable libvirtd
systemd: name=libvirtd.service enabled=yes daemon_reload=yes state=started
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment