Hi Team!

I am having a big doubt while using Ansible to deploy my wordpress servers.

I am using the wp-cli utility to install wordpress, so I want to use 
ansible roles in order to execute each role to each server with the 
modifications needed.

For example I have three different server names: dev.akme.eus, 
test.akme.eus and www.akme.eus, Ok, that´s quite easy to do using vars 
folder in ansible roles structure. But at the time to define the hosts to 
execute, I don't understand how can I define each host to use different 
vars, Could I define variables in hosts field in a role? As I have seen, 
role playbooks don't use hosts field.

I am a little bit lost with this topic.

Thanks for support!

-- 
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/c734a5bb-e275-4df2-b891-681920f08bc7n%40googlegroups.com.

Reply via email to