ansible/playbooks/nms.yml

45 lines
927 B
YAML

---
- import_playbook: "include/deploy-kvm-guest.yml myhosts=nms"
- name: configure instance
hosts: nms
user: root
gather_facts: true
pre_tasks:
- name: mount /export
mount:
name: /export
src: LABEL=/export
fstype: xfs
opts: noatime,noexec,nosuid,nodev
passno: "0"
dump: "0"
state: mounted
vars_files:
- "{{ ansible_private }}/vars.yml"
roles:
- base
- mkhomedir
- sssd
tasks:
- import_role:
name: rsyslog
tasks_from: udp-listen
# convert this to role for restart support
- name: enable ntp server for oob network
lineinfile:
path: /etc/chrony.conf
regexp: "^#?allow .*"
line: "allow 172.20.25.0/24"
- name: install extra tools
package:
name: "{{ item }}"
state: installed
with_items:
- nmap
- scanssh
- sslscan