OcNOS-SP : Ansible Guide : Configuring LDP : ldp-playbook.yml
ldp-playbook.yml
The following is the playbook to push the configuration with cli_config module using the template created earlier:
(ansible) osboxes@osboxes:~/playbooks$ cat ldp-playbook.yml
---
 
- hosts: ocnos
gather_facts: no
 
tasks:
 
- name: configure LDP config on OcNOS
cli_config:
config: "{{ lookup('template', 'templates/{{ ansible_network_os }}_ldp.j2') }}"
 
Last modified date: 06/08/2023