Files
dsfin-ansible/roles/netflows/tasks/main.yaml
Pi 23915d0549 -change hosts file - will maintain hosts file on multipe machines.
for the scope of this type of demo network, this is much simpler
than installing and managing dns.
2019-03-14 12:55:33 -04:00

25 lines
519 B
YAML
Executable File

---
- name: Install fprobe Package
become: yes
apt:
name: ['fprobe']
state: present
update_cache: true
tags: install_fprobe
- lineinfile:
path: /etc/default/fprobe
state: present
backrefs: yes
regexp: '^FLOW_COLLECTOR='
line: 'FLOW_COLLECTOR="192.168.201.53:9996"'
become: true
tags: configure_fprobe
- name: enable fprobe service and ensure it is not masked
systemd:
name: fprobe
enabled: yes
masked: no
state: restarted
tags: enable_fprobe
become: true