ansible
binlinuxbin
这个作者很懒,什么都没留下…
展开
-
python ansible api + fastapi写华为网络设备下发api接口
#encoding=utf-8from fastapi import Body,FastAPI,Depends,Queryfrom typing import Optional,Listfrom pydantic import BaseModelfrom ruamel import yaml#参考 https://zhuanlan.zhihu.com/p/118411015import jsonimport shutilfrom ansible.module_utils.common.原创 2022-03-11 23:14:58 · 1075 阅读 · 0 评论 -
ansible playbook 华为网络设备配置保存
test.yml---- name: CloudEngine hosts: route connection: network_cli gather_facts: no vars: cli: hosts: "{{inventory_hostname}}" port: "{{ansible_ssh_port}}" username: "{{ansible_ssh_user}}" password: "{{ansible_ss...原创 2022-03-11 01:11:35 · 555 阅读 · 0 评论 -
ansible playbook 华为网络设备自动下发
test.yml---- name: CloudEngine hosts: route connection: network_cli gather_facts: no vars: cli: hosts: "{{inventory_hostname}}" port: "{{ansible_ssh_port}}" username: "{{ansible_ssh_user}}" password: "{{ansible_s原创 2022-03-11 00:29:48 · 466 阅读 · 0 评论