|
@@ -1,17 +1,4 @@
|
|
|
---
|
|
|
-# - name: Implementation parameters
|
|
|
-# hosts: 127.0.0.1
|
|
|
-# connection: local
|
|
|
-# tasks:
|
|
|
-# - name: Parameters for base
|
|
|
-# command: "cp {{ playbook_dir }}/base/app/config/parameters.yml.dist {{ playbook_dir }}/base/app/config/parameters.yml"
|
|
|
-#
|
|
|
-# - name: "Parameters"
|
|
|
-# command: "cp {{ playbook_dir }}/{{ item }}/app/config/parameters.yml.dist {{ playbook_dir }}/{{ item }}/app/config/parameters.yml"
|
|
|
-# with_items: "{{ lookup('env', 'MODULES_INSTALL').split(',') }}"
|
|
|
-#
|
|
|
-# - name: Parameters for base
|
|
|
- # command: "cp {{ playbook_dir }}/kea/conf/kea-dhcp4.conf.dist {{ playbook_dir }}/kea/conf/kea-dhcp4.conf"
|
|
|
|
|
|
- name: Launch docker for mysql database. Tag=start_mysql
|
|
|
hosts: 127.0.0.1
|
|
@@ -169,28 +156,15 @@
|
|
|
state: present
|
|
|
sleep: 30
|
|
|
timeout: 600
|
|
|
- - name: Chmod cache
|
|
|
- file:
|
|
|
- path: /opt/base/var/cache/
|
|
|
- recurse: yes
|
|
|
- mode: 777
|
|
|
-
|
|
|
- - name: Clean cache
|
|
|
- file:
|
|
|
- state: absent
|
|
|
- path: "/opt/base/var/cache/"
|
|
|
-
|
|
|
- - name: Composer install
|
|
|
- shell: "chmod 777 -r /opt/base/var/cache ; eval $(ssh-agent) ; ssh-add /opt/keys/bitbucket.id_rsa ; composer install --no-interaction"
|
|
|
|
|
|
- name: Load redirections
|
|
|
set_fact:
|
|
|
- uris: "{{ uris }} --redirect_uri=https://{{ item }}.{{ lookup('env', 'CLIENT') }}.flowdat.com/login_check"
|
|
|
+ uris: "{{ uris }} --redirect_uri=https://{{ item }}.{{ lookup('env', 'CLIENT') }}.flowdat.net/login_check"
|
|
|
with_items: "{{ lookup('env', 'MODULES_INSTALL').split(',') }}"
|
|
|
|
|
|
- name: Load redirections app_dev
|
|
|
set_fact:
|
|
|
- uris: "{{ uris }} --redirect_uri=https://{{ item }}.{{ lookup('env', 'CLIENT') }}.flowdat.com/app_dev.php/login_check"
|
|
|
+ uris: "{{ uris }} --redirect_uri=https://{{ item }}.{{ lookup('env', 'CLIENT') }}.flowdat.net/app_dev.php/login_check"
|
|
|
with_items: "{{ lookup('env', 'MODULES_INSTALL').split(',') }}"
|
|
|
|
|
|
- name: Create oauth client
|