OcNOS Ansible 2.9.6 basic and install
https://docs.ipinfusion.com/service-provider/#page/OcNOS-SP/Ansible-Overview.html
https://github.com/IPInfusion/ocnos-ansible-collection
https://docs.ipinfusion.com/service-provider/index.html#context/Ansible-82c0dea0-6287-466e-bbcb-ab8932ea3936
https://github.com/IPInfusion/OcNOS/tree/master/ansible
https://github.com/IPInfusion/OcNOS/blob/master/ansible/roles/leaf/templates/leaf.j2
Basic | |
---|---|
hosts file | hosts root@ansible /etc/ansible# more /etc/ansible/hosts . . . [vpls] 192.168.0.143 ansible_ssh_user=ocnos ansible_ssh_pass=ocnos |
ping | ansible <group-name-in-hosts> -m ping -u ocnos -k or ansible vpls -m ping |
more | |
ansible-galaxy | create a directory architecture |
vpls is the name of the project | ansible-galaxy init vpls tree vpls |
important files | tasks/main.yml templates/ (jinja2 files ) tests/inventory |
https://docs.ipinfusion.com/service-provider/#page/OcNOS-SP/Ansible-Overview.html#ww519239 | |
ansible --version | |
install ocnos module | /bin/python3 -m pip install --upgrade pip pip list
|