ฉันต้องติดตั้งตัวแทน nginx สำหรับ openam โดยใช้ ansible
ในขณะที่ติดตั้ง nginx_agent มันถาม คำถามหลายข้อในขณะที่เรียกใช้สคริปต์ ,
************************************************************************
Welcome to the OpenSSO Policy Agent for NGINX
************************************************************************
Enter the URL where the OpenAM server is running.
Please include the deployment URI also as shown below:
(http://opensso.sample.com:58080/opensso)
**OpenSSO server URL: sss**
Enter the Agent profile name
**Agent Profile Name: sss**
Enter the password to be used for identifying the Agent.
*THIS IS NOT PASSWORD FILE*
**Agent Password:**
-----------------------------------------------
SUMMARY OF YOUR RESPONSES
-----------------------------------------------
OpenSSO server URL : sss
Agent Profile name : sss
Agent Password: sss
**Continue with Installation?
[y/N]: y**
ดังนั้นฉันได้ใช้โมดูลคาดหวังใน ansible:
- expect:
command: sh /opt/nginx_agent/bin/agentadmin.sh
responses:
OpenSSO server URL: "http://openam.test.mobi:8080/openam"
Agent Profile Name: "nginx"
Agent Password: "test.mobi2"
(^Con[^\n]*\n+[^\n]*)+: "y"
แต่มัน ดำเนินการติดตั้งต่อไปหรือไม่ [Y / N]:
ใช้เวลา URL เซิร์ฟเวอร์ OpenSSO: เห็นคุณค่า
อ้างอิง:
"stdout_lines": [
"************************************************************************",
"Welcome to the OpenSSO Policy Agent for NGINX",
"************************************************************************",
"",
"Enter the URL where the OpenAM server is running.",
"Please include the deployment URI also as shown below:",
"(http://opensso.sample.com:58080/opensso)",
"OpenSSO server URL: Enter the Agent profile name",
"Agent Profile Name: Enter the password to be used for identifying the Agent.",
"*THIS IS NOT PASSWORD FILE*",
"Agent Password: ",
"-----------------------------------------------",
"SUMMARY OF YOUR RESPONSES",
"-----------------------------------------------",
"OpenSSO server URL : http://openam.test.mobi:8080/openam",
"Agent Profile name : nginx",
"Agent Password: test.mobi2",
"Continue with Installation?",
"[y/N]: http://openam.test.mobi:8080/openam",
"test.mobi2"
]
แนะนำฉันสิ่งที่ฉันพลาดในการกำหนดค่านี้ วิธีแก้ไขปัญหานี้