摘要:
ansible 2.7调用 程序 import json from collections import namedtuple from ansible.parsing.dataloader import DataLoader from ansible.vars.manager import Var 阅读全文
摘要:
mcw_str=''' wo shi {{ name }} ''' import re class myclass(): def inithtml(self): ret1 = re.search('{{ (?P<mcw1>.*) }}', mcw_str) #在模板文件中匹配包含{{ 变量 }}的。 阅读全文