From 303f1eb0343f34c66153d309ab434bc7c15368b6 Mon Sep 17 00:00:00 2001
From: Carole Merle <carole.merle.etu@univ-lille.fr>
Date: Mon, 11 Oct 2021 17:42:07 +0200
Subject: [PATCH] Upload New File

---
 play.yml | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 play.yml

diff --git a/play.yml b/play.yml
new file mode 100644
index 0000000..321ba24
--- /dev/null
+++ b/play.yml
@@ -0,0 +1,29 @@
+---
+- name: TP2
+  hosts: all
+  become_method: enable
+  
+  tasks:
+  - name: recuperation de la version
+    cisco.ios.ios_command:
+      commands: show version
+    register: version
+  - debug:
+     msg: "The version is {{ version.stdout_lines }}"
+  - name: backup
+    cisco.ios.ios_config:
+      backup: yes
+  - name: Interfaces FastEthernet 0/1
+    cisco.ios.ios_interfaces: 
+      config:
+      - name: FastEthernet 0/1
+        description: inutilisée
+        duplex: full
+  - name: Interfaces FastEthernet 0/1
+    cisco.ios.ios_l3_interfaces:
+      config: 
+      - name: FastEthernet 0/1
+        ipv4: 
+        - address: 10.0.1.2/24
+        
+      
-- 
GitLab