【文件属性】:
文件名称:ansible-nginx:角色扮演。 安装和配置Nginx
文件大小:16KB
文件格式:ZIP
更新时间:2021-05-07 21:29:40
HTML
Nginx的
安装和配置Nginx。
随时。
。
要求
变数
查看vars中的默认值和示例。
工作流程
将shell更改为/ bin / sh
shell> ansible webserver -e 'ansible_shell_type=csh ansible_shell_executable=/bin/csh' -a 'sudo pw usermod freebsd -s /bin/sh'
安装角色
shell> ansible-galaxy install vbotka.nginx
变更变数
查看默认值
在vars / defaults中查看特定于OS的变量
(可选)在vars /中创建特定于操作系统的自定义变量。 参见task / vars.yml
在vars / main.yml中自定义其他变量
在nginx_server_conf_dir中创建主机的特定数据
默认值
【文件预览】:
ansible-nginx-master
----.travis.yml(487B)
----handlers()
--------main.yml(492B)
----.ansible-lint(146B)
----tasks()
--------service.yml(330B)
--------vars.yml(961B)
--------main.yml(412B)
--------packages.yml(352B)
--------assert.yml(368B)
--------fn()
--------conf.yml(2KB)
--------debug.yml(2KB)
----defaults()
--------main.yml(2KB)
----templates()
--------server.conf.j2(67B)
--------server2.conf.j2(58B)
--------nginx.conf.j2(124B)
----tests()
--------inventory(10B)
--------test.yml(72B)
----LICENSE(1KB)
----.yamllint(355B)
----vars()
--------main.yml.sample(249B)
--------defaults()
--------default.yml(0B)
----README.md(3KB)
----files()
--------servers()
----meta()
--------main.yml(452B)