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:
相關文章
相關標籤/搜索