The ansible/ directory in this repo contains a playbook that will configure interfaces and bgp peers on a Junos router. See ansible/README.md for details.