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


Le lundi 23 novembre 2020 à 14:47:21 UTC+1, [email protected] a écrit :

> On 11/23/20 2:36 PM, blue fox wrote:
> > 
> > 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
>
> > 
> > thank you
> > Le lundi 23 novembre 2020 à 13:32:38 UTC+1, [email protected] a écrit :
> > 
> > On 11/23/20 1:19 PM, blue fox wrote:
> > > I like to make a loop for a role , each time he copie each host in file
> > >
> > > example:
> > > ------------------
> > > hosts file
> > >
> > > webserver]
> > >
> > > 10.10.10.10
> > >
> > > 20.20.20.20
> > >
> > > ---------------------
> > > turn 1 for loop: copie   10.10.10.10.  in file and send it to distant 
> server
> > >
> > > turn 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
> > 
> > >
> > > --
> > > You received this message because you are subscribed to the Google 
> Groups "Ansible Project" group.
> > > To unsubscribe from this group and stop receiving emails from it, send 
> an email to
> > > [email protected] <mailto:
> [email protected]>.
> > > To view this discussion on the web visit
> > > 
> https://groups.google.com/d/msgid/ansible-project/01483a96-5a98-42d7-ac0b-aed2a60d4593n%40googlegroups.com
> > <
> https://groups.google.com/d/msgid/ansible-project/01483a96-5a98-42d7-ac0b-aed2a60d4593n%40googlegroups.com
> >
> > >
> > <
> https://groups.google.com/d/msgid/ansible-project/01483a96-5a98-42d7-ac0b-aed2a60d4593n%40googlegroups.com?utm_medium=email&utm_source=footer
> > <
> https://groups.google.com/d/msgid/ansible-project/01483a96-5a98-42d7-ac0b-aed2a60d4593n%40googlegroups.com?utm_medium=email&utm_source=footer
> >>.
> > 
> > 
> > 
> > -- 
> > Ecommerce and Linux consulting + Perl and web application programming.
> > Debian and Sympa administration. Provisioning with Ansible.
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "Ansible Project" group.
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to
> > [email protected] <mailto:
> [email protected]>.
> > To view this discussion on the web visit
> > 
> https://groups.google.com/d/msgid/ansible-project/8cbe7244-35a3-42d2-a508-14c6b708e887n%40googlegroups.com
> > <
> https://groups.google.com/d/msgid/ansible-project/8cbe7244-35a3-42d2-a508-14c6b708e887n%40googlegroups.com?utm_medium=email&utm_source=footer
> >.
>
>
> -- 
> Ecommerce and Linux consulting + Perl and web application programming.
> Debian and Sympa administration. Provisioning with Ansible.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/fbf79f97-90e8-4639-9787-b9cc0a560384n%40googlegroups.com.

Reply via email to