e8716e742e
If we move these into a subdir, it cleans up the number of things we nave to files match on. Stop running disable-puppet-agent in base. We run it in run-puppet which should be fine. Change-Id: Ia16adb96b11d25a097490882c4c59a50a0b7b23d
29 lines
618 B
YAML
29 lines
618 B
YAML
- name: Include OS-specific variables
|
|
include_vars: "{{ lookup('first_found', params) }}"
|
|
vars:
|
|
params:
|
|
files: "{{ distro_lookup_path }}"
|
|
paths:
|
|
- 'vars'
|
|
|
|
- name: Install snmpd
|
|
package:
|
|
state: present
|
|
name: '{{ package }}'
|
|
|
|
- name: Write snmpd config file
|
|
template:
|
|
src: snmpd.conf
|
|
dest: /etc/snmp/snmpd.conf
|
|
mode: 0444
|
|
notify:
|
|
- Restart snmpd
|
|
|
|
# We don't usually ensure services are running, but snmp is generally
|
|
# not public facing and is easy to overlook.
|
|
- name: Enable snmpd
|
|
service:
|
|
name: "{{ service_name }}"
|
|
enabled: true
|
|
state: started
|