Open mamedin opened 3 years ago
As first try I tested using the jinja2 escape or urlencode filters at:
https://github.com/artefactual-labs/ansible-atom/blob/master/tasks/flush.yml#L12
For instance:
shell: "php -d memory_limit=-1 symfony tools:purge --no-confirmation --email='{{ atom_user_email }}' --username='{{ atom_user_username }}' --password='{{ atom_user_password }}' --title='{{ atom_title | escape }}' --description='{{ atom_description | escape }}' --url='http://127.0.0.1'"
It seems a better alternative, at least for the example in this issue:
shell: "php -d memory_limit=-1 symfony tools:purge --no-confirmation --email='{{ atom_user_email }}' --username='{{ atom_user_username }}' --password='{{ atom_user_password }}' --title=\"{{ atom_title }}\" --description=\"{{ atom_description }}\" --url='http://127.0.0.1'"
For instance, when using:
Error when purging the database: