Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
@knewell
Latest commit 4af455a Apr 18, 2018 History
1 contributor

Users who have contributed to this file

---
- name: Network Getting Started First Playbook
hosts: vmx
gather_facts: false
tasks:
- name: Backup JunOS config
junos_config:
backup: yes
register: backup_junos_location
when: ansible_network_os == 'junos'
- name: Create backup dir
file:
path: "/tmp/backups/{{ inventory_hostname }}"
state: directory
recurse: yes
- name: Copy backup files into /tmp/backups/ (junos)
copy:
src: "{{ backup_junos_location.backup_path }}"
dest: "/tmp/backups/{{ inventory_hostname }}/{{ inventory_hostname }}.bck"
when: ansible_network_os == 'junos'