common: remove snmp, add acpid (on VMs)

This commit is contained in:
Markus 2019-09-12 12:00:59 +02:00
parent ef7177f0ec
commit fb81c5ce02

View File

@ -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 - name: Install misc software
apt: name={{ item }} apt: name={{ item }}
with_items: with_items:
@ -34,8 +15,11 @@
- vim-nox - vim-nox
- zsh - zsh
- name: Install qemu-agent on KVM VMs - name: Install software on KVM VMs
apt: name=qemu-guest-agent apt: name={{ item }}
with_items:
- acpid
- qemu-guest-agent
when: ansible_virtualization_role == "guest" and ansible_virtualization_type == "kvm" when: ansible_virtualization_role == "guest" and ansible_virtualization_type == "kvm"
- name: Configure misc software - name: Configure misc software