Hi, I'm very new to ansible, my question seems I've created a task that simply deploy phpmyadmin on a given webserver. The selected webserver was targeted by an inventory file. I've an inventory per environment, dev, stage, prod. my directory layout follow the best practices ( http://docs.ansible.com/playbooks_best_practices.html)
# prod inventory [phpmyadmin] admin.myproject.com and # dev inventory [phpmyadmin] localhost That works well ! Now I want to configure phpmyadmin differently according to the environment, trought j2 templates, for example to disable login form on dev environment. But actually the task run the same on both. - name: Web | Configuration for Dev Environment action: template src=config.inc.php.j2 dest=/etc/phpmyadmin/config.inc.php So, how to differentiate this task for each of my two environment ? Regards, David -- 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]. For more options, visit https://groups.google.com/groups/opt_out.
