diff --git a/play.yml b/play.yml new file mode 100644 index 0000000000000000000000000000000000000000..321ba24611284d20e9c3166dc9073ba6dafa85fd --- /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 + +