Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
ansible_config_notes [2020/02/22 16:13]
matt
ansible_config_notes [2020/02/22 16:14] (current)
matt
Line 8: Line 8:
  
  
-==== Work in Progress/Other Bits: ==== 
-<WRAP prewrap> 
-<code> 
---- 
-- hosts: all 
-  gather_facts: no 
-  connection: local 
-  tasks: 
-    - name: GATHER SWITCH FACTS 
-      ios_facts: 
-    - name: UPGRADE IOS IMAGE IF NOT COMPLIANT 
-      block: 
-      - name: COPY OVER IOS IMAGE 
-        ios_command: 
-           commands: 
-              - command: "copy ftp://anonymous@192.168.0.144/c3750e-universalk9-mz.152-4.E7.bin flash:" 
-                prompt: 'c3750e-universalk9-mz.152-4.E7.bin' 
-                answer: "\r" 
-                 
-  vars: 
-    ansible_command_timeout: 600 
  
- 
- 
-global change in ansible.cfg 
- 
-[ssh_connection] 
-command_timeout = 600 
- 
- 
- 
- 
-#[switches:children] 
-#lab 
- 
-[lab] 
-sw2 ansible_host=192.168.0.2 ansible_connection=local ansible_ssh_user=cisco ansible_ssh_pass=cisco 
- 
-[lab:vars] 
-ansible_user=cisco 
-ansible_ssh_pass=cisco 
-ansible_become_pass=cisco 
-ansible_network_os=ios 
-ansible_connection=network_cli 
-ansible_become_method=enable 
-</code> 
-</WRAP>