Ansible for network device management Part 2 for JINJA2 YAML and module understanding

Source: Internet
Author: User

Although I do not want to use the word "should", but it is still written, and indeed I myself now so understand.

So this understanding is that a key point of ansible is the total one playbook is to rely on a lot of elements, like in the beginning of that picture, such as

It's all about it. Whether it is a yml file or a Jinja2 file, the inside of these files must be closely related to ansible, and the reason why I did not understand it before is that it is not clear, and the following is what I understand.

See task: What's down there? Name, yum, service, and file that are frequently used in JINJA2 files (template files, which can be used either with J2 or conf suffixes), and some of the templates that main.yml frequently use under tasks are all SPECIAL module!!! These are all SPECIAL module!!! These are all SPECIAL module!!! Important thing to say three times!!!

None of these people told me. Hello, no wonder I stumbled in the early, do not know why it is to write so, exactly where the rules, well, now know, are the following link in the provisions of the, commonly used several module link I also put under the

All modules:http://docs.ansible.com/ansible/list_of_all_modules.html

File The module:http://docs.ansible.com/ansible/file_module.html

Template The Module:http://docs.ansible.com/ansible/template_module.html

Ah, this explains the way, what each thing is to do what is also a clear explanation of the place, the stick.

Make a note of the current progress, through another reading of Jason's blog http://jedelman.com/home/ansible-for-networking/Let me understand these conceptual things, Look at the contents of the Bin folder in the downloaded Ansible-vsrx-demo, feel Jeremy seems to be solving or have solved the problem of push to the remote device, the following work should be check the Bin folder exactly what is, And the way he used it, and comparing it with Jason's CAPL, fortunately I saved a browser collection on CAPL, but the language is python. object is used juniper, fortunately hand has juniper machine can try. Lucky me! Take time to do meaningful and interesting things before you arrive at the age of 23.

Do not reprint without authorization!

Ansible for network device management Part 2 for JINJA2 YAML and module understanding

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.