Add mongodb hosts

This commit is contained in:
Timo Makinen 2022-02-03 21:20:04 +00:00
parent 2cefd6d50d
commit 58eb8c1313
4 changed files with 41 additions and 0 deletions

25
playbooks/mongodb.yml Normal file
View file

@ -0,0 +1,25 @@
---
- import_playbook: "include/deploy-kvm-guest.yml myhosts=mongodb"
- name: configure instance
hosts: mongodb
user: root
gather_facts: true
vars_files:
- "{{ ansible_private }}/vars.yml"
pre_tasks:
- name: mount /export
mount:
name: /export
src: LABEL=/export
fstype: xfs
opts: noatime,noexec,nosuid,nodev
passno: "0"
dump: "0"
state: mounted
roles:
- base
- mongodb