Premier commit

This commit is contained in:
“Albert
2023-01-05 11:44:26 +01:00
parent d46e9954ca
commit fb19dc24e5
554 changed files with 46045 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
##Installation de nfs
Ce rôle télécharge NFS puis copie un fichier de configuration pour partager le dossier /home/wordpress.

View File

@@ -0,0 +1,10 @@
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
/home/wordpress 192.168.102.0/255.255.255.0 (rw,no_root_squash,subtree_check)

View File

@@ -0,0 +1,3 @@
---
- name: restart nfs-kernel-server
service: name=nfs-kernel-server state=restarted

View File

@@ -0,0 +1,18 @@
---
- name: installation des paquets
apt:
name:
- nfs-kernel-server
state: latest
- name: copie exports pour partage nfs wordpress
copy:
src: exports
dest: /etc
- name: redemarrage du service rpcbind requis pour le service nfs
shell: service rpcbind restart
- name: redemarrage du service nfs-kernel-server
shell: service nfs-kernel-server restart