Ansible role to deploy pakiti should be idempotent and not reinitialise the database at every run:
|
- name: Initalize Pakiti database and create the application user |
|
shell: "php /var/www/pakiti-server/install/initDB.php --reInitialize --user-name={{ mysql_root_name }} --password={{ mysql_root_password }}" |
|
args: |
|
chdir: '/var/www/pakiti-server/install' |