erreur yml dans role nlb-web

This commit is contained in:
Elam Monnot 2023-01-30 11:51:44 +01:00
parent e328a1e13c
commit b04ae4302b

View File

@ -1,26 +1,26 @@
--- ---
- name: - name:
- apache2 - apache2
- php - php
- php-mbstring - php-mbstring
- php-mysql - php-mysql
- mariadb-client - mariadb-client
state: present state: present
- name: install nfs-common - name: install nfs-common
apt: apt:
name: nfs-common name: nfs-common
state: present state: present
- name: montage nfs pour word press - name: montage nfs pour word press
blockinfile: blockinfile:
path: /etc/fstab path: /etc/fstab
block: | block: |
192.168.56.6:/exports/wordpress /var/www/html nfs soft,timeo=5,intr,rsize=8192,wsize=8192,wsize=8192 0 0 192.168.56.6:/exports/wordpress /var/www/html nfs soft,timeo=5,intr,rsize=8192,wsize=8192,wsize=8192 0 0
- name: monte export wordpress - name: monte export wordpress
ansible.posix.mount: ansible.posix.mount:
path: /var/www/html path: /var/www/html
state: mounted state: mounted
fstype: nfs fstype: nfs
src: 192.168.56.6:/exports/wordpress src: 192.168.56.6:/exports/wordpress