I like to make a loop for a role , each time he copie each host in file
example:
I like to make a loop for a role , each time he copie each host in file
example:
I like to make a loop for a role , each time he copie each host in file
example:
------------------
hosts filewebserver]
10.10.10.10
20.20.20.20
---------------------
turn 1 for loop: copie 10.10.10.10. in file and send it to distant serverturn 2 for loop: copie 20.20.20.20. in file and send it to distant server
Thank you
So you want to execute the role only for members of webserver group?
If so you can add the following condition:
when: "'webserver' in group_names"
Regards
Racke
i want to copy each host in webservers group in file and send it to ather server distant.
each role execute ---- > copy one host in file
thank you
i want to copy each host in webservers group in file and send it to ather server distant.
each role execute ---- > copy one host in file
It is not clear to me what you want to achieve. How does your role look like?
Regards
Racke
i need to test each time each ip address alone in another server, therefore i need to copy each ip address in webservers group in file and sen this file to server distant for test it
the test treatment = role
1- copy the primary ip and send the file in testing server
2- execute roles for testing
3- copy the seconde in the same file ip and send it in testing server
4- execute the same role for testing
Thank you