From fb81c5ce025143d87b7b4e16eb0bfc6439ad4987 Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Thu, 12 Sep 2019 12:00:59 +0200 Subject: [PATCH] common: remove snmp, add acpid (on VMs) --- roles/common/tasks/Debian.yml | 26 +++++--------------------- 1 file changed, 5 insertions(+), 21 deletions(-) diff --git a/roles/common/tasks/Debian.yml b/roles/common/tasks/Debian.yml index c78cef9..55a50b6 100644 --- a/roles/common/tasks/Debian.yml +++ b/roles/common/tasks/Debian.yml @@ -1,24 +1,5 @@ --- -- name: Install snmpd - apt: name=snmpd - -- name: Create snmpd service override directory - file: path=/etc/systemd/system/snmpd.service.d state=directory - -- name: Make snmpd less verbose - copy: src=snmpd dest=/etc/systemd/system/snmpd.service.d/local.conf - notify: - - Reload systemd - - Restart snmpd - -- name: Configure snmpd - template: src=snmpd.conf.j2 dest=/etc/snmp/snmpd.conf - notify: Restart snmpd - -- name: Start the snmpd service - service: name=snmpd state=started enabled=yes - - name: Install misc software apt: name={{ item }} with_items: @@ -34,8 +15,11 @@ - vim-nox - zsh -- name: Install qemu-agent on KVM VMs - apt: name=qemu-guest-agent +- name: Install software on KVM VMs + apt: name={{ item }} + with_items: + - acpid + - qemu-guest-agent when: ansible_virtualization_role == "guest" and ansible_virtualization_type == "kvm" - name: Configure misc software