94

使用Ansible的Playbook修改nginx配置文件-幻夜猫儿-51CTO博客

 6 years ago
source link: http://blog.51cto.com/wymanlee/2069417
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
目录结构:文件内容tasks目录下的“file.yml”文件,内容如下:tasks目录下的“main.yml”templates目录下的“nginx.conf.j2”{%ifnginx_use_proxy%}{%forproxyinnginx_proxies%}upstream{{proxy.name}}{server{{ansible_eth0.ipv4.address}}:{{proxy.po

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK