From 0cd9f1bb4cfae23751e83107791b740f6aac6794 Mon Sep 17 00:00:00 2001
From: Johan Largy <johan.largy@ip-192-168-0-38>
Date: Fri, 20 Jan 2023 09:38:46 +0100
Subject: [PATCH] Correction fichier interface

---
 roles/post/files/interfaces.r-int | 17 +++++------------
 roles/r-int/tasks/main.yml        |  8 ++++----
 2 files changed, 9 insertions(+), 16 deletions(-)

diff --git a/roles/post/files/interfaces.r-int b/roles/post/files/interfaces.r-int
index 8398171..89ab649 100644
--- a/roles/post/files/interfaces.r-int
+++ b/roles/post/files/interfaces.r-int
@@ -8,37 +8,30 @@ iface lo inet loopback
 # Reseau N-adm
 allow-hotplug enp0s3
 iface enp0s3 inet static
-	address 192.168.99.12
-	netmask 255.255.255.0
+	address 192.168.99.12/24
 	
 
 # Reseau liaison avec r-ext
 allow-hotplug enp0s8
 iface enp0s8 inet static
-	address 192.168.200.254
-	netmask 255.255.255.0
+	address 192.168.200.254/24
 	gateway 192.168.200.253
-	up ip route add default via 192.168.200.253
 	
 
 # Reseau wifi
 allow-hotplug enp0s9
 iface enp0s9 inet static
-	address 172.16.65.254
-	netmask 255.255.255.0
+	address 172.16.65.254/24
 	
 
 # Reseau user
 allow-hotplug enp0s10
 iface enp0s10 inet static
-	address 172.16.64.254
-	netmask 255.255.255.0
+	address 172.16.64.254/24
 	
 
 # Reseau infra
 allow-hotplug enp0s16
 iface enp0s16 inet static
-	address 172.16.0.254
-	netmask 255.255.255.0
-        up /root/routagenat
+	address 172.16.0.254/24
 	
diff --git a/roles/r-int/tasks/main.yml b/roles/r-int/tasks/main.yml
index 01356a7..88f86c0 100644
--- a/roles/r-int/tasks/main.yml
+++ b/roles/r-int/tasks/main.yml
@@ -3,11 +3,11 @@
 - name: Copie du fichier sysctl.conf
   copy: src=sysctl.conf dest=/etc/
 
-- name: copier le script de routage
-  copy: src=routagenat dest=/root/
+#- name: copier le script de routage
+#  copy: src=routagenat dest=/root/
 
-- name: rendre executabe le script
-  shell: chmod +x /root/routagenat 
+#- name: rendre executabe le script
+#  shell: chmod +x /root/routagenat 
 
   #- name: exectuer le script
   #  script: /root/routagenat