Hello, I would like to use only parameters in my playbook and so to use an external variables file to set the host, user, http parameters etc ... so my playbook would loop on it. Is this possible ?
Here is an explaination of my needs: I would like noone has to modify the playbook to set the parameters, I want all variables to be external variables. I'd like to give the following informations when playing the playbook: host=server1, user=user1, http_port=8080, release=1.2 host=server1, user=user2, http_port=8081, release=2.3 host=server2, user=user1, http_port=8080, release=2.3 etc ... Is using the hosts file a way to do so,are we allowed to set any parameters we want like: [deployed_server] server1 user=user1 http_port=8080 release=1.2 server2 user=user1 http_port=8080 release=2.3 or can we only pass ansible variables in the hosts file ? My purpose would be to allowed a user to create a file in EXcel and to transfer is on the ansible master host and then the playbook would be run with this excel file as an external parameter file. Any clue ? Regards -- 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 post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/c223f318-3f9a-4cce-b2a2-b989e372537c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
