[nfs_mount] Fix configuration

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
certbot_on_virtu
Yohann D'ANELLO 2021-06-24 21:39:42 +02:00
parent 7f8a41ce1d
commit 20ba82fa4e
Signed by: _ynerant
GPG Key ID: 3A75C55819C8CF85
5 changed files with 13 additions and 10 deletions

View File

@ -0,0 +1,3 @@
---
glob_nfs_mount:
mounts: []

View File

@ -12,7 +12,7 @@ loc_nfs_mount:
name: mirror
owner: root
group: root
mode: '0750'
mode: '0755'
loc_ftpsync: {}
loc_rsync_mirror: {}

View File

@ -7,12 +7,12 @@ interfaces:
loc_nfs_mount:
mounts:
- ip: 172.16.4.1
mountpoint: /pool/mirror
target: /mirror
name: mirror
mountpoint: /pool/ftp
target: /ftp
name: ftp
owner: root
group: root
mode: '0750'
mode: '0755'
loc_nginx:
service_name: ptf

View File

@ -28,12 +28,12 @@ loc_nfs_mount:
target: /home
name: home
owner: root
group: user
mode: '0750'
group: root
mode: '0755'
- ip: 172.16.4.2
mountpoint: /pool/mail
target: /var/mail
name: var-mail
owner: root
group: user
mode: '0750'
group: mail
mode: '0755'

View File

@ -1,7 +1,7 @@
#!/usr/bin/env ansible-playbook
---
# Deploy nfs_mount server
- hosts: server
- hosts: crans_server
vars:
nfs_mount: "{{ glob_nfs_mount | default({}) | combine(loc_nfs_mount | default({})) }}"
roles: