Add nms01/02 hosts

This commit is contained in:
Timo Makinen 2021-03-19 18:21:38 +00:00
parent c7d8c1e677
commit 1c9df4f36f
5 changed files with 95 additions and 0 deletions

36
playbooks/nms.yml Normal file
View file

@ -0,0 +1,36 @@
---
- 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:
- name: install extra tools
package:
name: "{{ item }}"
state: installed
with_items:
- nmap
- scanssh
- sslscan