template引用系统变量(setup)

一、template引用系统变量 ansible websrvs -m setup |grep ‘cpu’ vim templates/nginx.conf.j2 worker_processes {{ ansible_processor_vcpus+2 }};   vim testtemplate.yml — – hosts:os6   remote_user: root     tasks:
相关文章
相关标签/搜索