user78
(Рабочий Проект)
1
Hello
I use ansible 2.5.2
I have this responses section in my playbook:
(?i)Login: “admin\n\r”
(?i)Password: “admin\n\r”
(?i)#: “password\n\r”
(?i)Enter new password: “admin123\n\r”
(?i)Confirm new password: “admin123\n\r”
(?i)#: “logout\n\r”
As you can see, I use two different answers with same question “#”.
But it is not working:
found a duplicate dict key ((?i)#).
Using last defined value only.
As I understood, you promise to add that functionality: https://groups.google.com/forum/#!topic/ansible-project/850sYU11aO4
Or I made a mistake with my playbook?
I use ansible 2.5.2
I have this responses section in my playbook:
* (?i)Login: "admin\n\r"*
* (?i)Password: "admin\n\r"*
* (?i)#: "password\n\r"*
* (?i)Enter new password: "admin123\n\r"*
* (?i)Confirm new password: "admin123\n\r"*
* (?i)#: "logout\n\r"*
As you can see, I use two different answers with same question "#".
But it is not working:
But the answers as a list under the same question.
found a duplicate dict key ((?i)#).
Using last defined value only.
As I understood, you promise to add that
functionality:
https://groups.google.com/forum/#!topic/ansible-project/850sYU11aO4
Or I made a mistake with my playbook?
As the documentation say
"If the response is a list, successive matches return successive responses. List functionality is new in 2.1."
(?i)#:
- "password\n\r"
- "logout\n\r"