I would only run this game once, if you know that you are setting it up for the first time, but if you do not have it, you can use the variable set at runtime only to run when you know it the first time
- name: Import the database shell: ../../vendor/bin/propel up --fake args: chdir: /var/www/project/application/propel when: "first_run | default(false)"
Run it using ansible-playbook main.yml -e 'first_run=1'
If you know that this is not the first setting, just run it without this variable: ansible-playbook main.yml
kzap source share