摘要:
Playbook模板(jinja2 语法渲染) 将jinja2语法的文件,生成对应的生产文本。 [root@centos7 demo-jinjia2]# cat f.j2 {% set list=['one','two','three'] %} {% for i in list %} {{i}} { 阅读全文
posted @ 2020-11-18 08:50
pwcc
阅读(111)
评论(0)
推荐(0)
摘要:
当主机为12时,才执行debug [root@es1 playbook-demo]# cat demo10.yml - hosts: webservers tasks: - name: Host 192.168.0.12 run this task debug: msg="{{ansible_def 阅读全文
posted @ 2020-11-18 08:49
pwcc
阅读(129)
评论(0)
推荐(0)

浙公网安备 33010602011771号