mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
59 lines
1.7 KiB
YAML
59 lines
1.7 KiB
YAML
---
|
|
# Application tasks to be customized and to run after the main provision
|
|
- name: Install global npm packages
|
|
become: yes
|
|
become_user: vagrant
|
|
shell: export NVM_DIR="$HOME/.nvm" &&. "$NVM_DIR/nvm.sh" && npm install -g bower recess
|
|
|
|
- name: Install Composer dependencies
|
|
shell: make install_composer
|
|
become: yes
|
|
become_user: vagrant
|
|
ignore_errors: yes
|
|
args:
|
|
chdir: /vagrant/
|
|
|
|
- name: Install assets dependencies
|
|
shell: export NVM_DIR="$HOME/.nvm" &&. "$NVM_DIR/nvm.sh" && make install_asset_dependencies
|
|
become: yes
|
|
become_user: vagrant
|
|
ignore_errors: yes
|
|
args:
|
|
chdir: /vagrant/
|
|
|
|
- name: Install assets
|
|
shell: export NVM_DIR="$HOME/.nvm" &&. "$NVM_DIR/nvm.sh" && make install_assets
|
|
become: yes
|
|
become_user: vagrant
|
|
ignore_errors: yes
|
|
args:
|
|
chdir: /vagrant/
|
|
|
|
- name: Run application setup
|
|
become: yes
|
|
become_user: vagrant
|
|
shell: 'bin/setup system:install --email=admin@{{ hostname }}.vb --password=admin --db-host=127.0.0.1 --db-port=3306 --db-user={{ mariadb.user }} --db-password={{ mariadb.password }} --db-template=fr --appbox={{ mariadb.database }} --databox={{ mariadb.databox_db }} --server-name=www.{{ hostname }}.vb --data-path=/vagrant/datas -y'
|
|
args:
|
|
chdir: /vagrant/
|
|
|
|
- name: Enable debugger for host IP addresses
|
|
shell: bin/setup system:config add debugger.allowed-ips "{{ item}}"
|
|
with_items: '{{ host_addresses }}'
|
|
args:
|
|
chdir: /vagrant/
|
|
|
|
- name: Disable API SSL requirement
|
|
shell: bin/setup system:config set main.api_require_ssl false
|
|
args:
|
|
chdir: /vagrant/
|
|
|
|
- name: Enable API routes
|
|
shell: bin/setup system:config set registry.api-clients.api-enable true
|
|
args:
|
|
chdir: /vagrant/
|
|
|
|
- name: Create ElasticSearch indexes
|
|
shell: bin/console s:i:c
|
|
args:
|
|
chdir: /vagrant/
|