Skip to content

Commit

Permalink
update - works locally xcpt for ansible.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
Todd Ruch committed Dec 18, 2024
1 parent 0ba2ae1 commit f99af5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
3 changes: 1 addition & 2 deletions ansible.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[defaults]
#collections_path=./collections
collections_path=./collections
roles_path=./roles
inventory=./inventory

[galaxy]
server_list = certified,validated,galaxy
Expand Down
10 changes: 1 addition & 9 deletions network/backup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@
troubleshooting: true

tasks:
- name: print ansible_network_os
ansible.builtin.debug:
var: ansible_network_os

- name: Network Backup and Resource Manager
ansible.builtin.include_role:
Expand All @@ -49,8 +46,6 @@
# This task removes the Current configuration... from the top of IOS routers show run
- name: Remove non config lines - regexp
delegate_to: localhost
# vars:
# ansible_connection: ansible.builtin.local
ansible.builtin.lineinfile:
path: "/tmp/network_local_backup/{{ inventory_hostname }}.txt"
line: "Building configuration..."
Expand All @@ -59,8 +54,6 @@
- name: List files in /tmp
when: troubleshooting
delegate_to: localhost
# vars:
# ansible_connection: ansible.builtin.local
run_once: true
ansible.builtin.command:
cmd: ls /tmp/network_local_backup
Expand All @@ -69,8 +62,7 @@
- name: Print files in /tmp
when: troubleshooting
delegate_to: localhost
# vars:
# ansible_connection: ansible.builtin.local

run_once: true
ansible.builtin.debug:
msg: "{{ item }}"
Expand Down

0 comments on commit f99af5b

Please sign in to comment.