|
@@ -32,11 +32,22 @@
|
|
|
connect_timeout: 15
|
|
|
timeout: 360
|
|
|
|
|
|
+ - name: Create database fd_session
|
|
|
+ mysql_db:
|
|
|
+ name: fd_session
|
|
|
+ login_password: "{{ lookup('env', 'MYSQL_PASSWORD') }}"
|
|
|
+ state: present
|
|
|
+
|
|
|
+ - copy:
|
|
|
+ src: "{{ playbook_dir }}/mysql_scripts.sql"
|
|
|
+ dest: /tmp/mysql_scripts.sql
|
|
|
+
|
|
|
- name: Run SQL commands against DB to create table
|
|
|
mysql_db:
|
|
|
login_password: "{{ lookup('env', 'MYSQL_PASSWORD') }}"
|
|
|
state: import
|
|
|
- target: "{{ playbook_dir }}/mysql_scripts.sql"
|
|
|
+ name: fd_session
|
|
|
+ target: "/tmp/mysql_scripts.sql"
|
|
|
|
|
|
- name: Create database base
|
|
|
mysql_db:
|
|
@@ -62,6 +73,24 @@
|
|
|
login_password: "{{ lookup('env', 'MYSQL_PASSWORD') }}"
|
|
|
state: present
|
|
|
|
|
|
+ - name: Create database cablemodem
|
|
|
+ mysql_db:
|
|
|
+ name: fd3_cablemodem
|
|
|
+ login_password: "{{ lookup('env', 'MYSQL_PASSWORD') }}"
|
|
|
+ state: present
|
|
|
+
|
|
|
+ - name: Create database Radius
|
|
|
+ mysql_db:
|
|
|
+ name: fd3_radius
|
|
|
+ login_password: "{{ lookup('env', 'MYSQL_PASSWORD') }}"
|
|
|
+ state: present
|
|
|
+
|
|
|
+ - name: Create database dhcp
|
|
|
+ mysql_db:
|
|
|
+ name: fd3_dhcp
|
|
|
+ login_password: "{{ lookup('env', 'MYSQL_PASSWORD') }}"
|
|
|
+ state: present
|
|
|
+
|
|
|
- name: Create user iksop
|
|
|
mysql_user:
|
|
|
name: 'iksop'
|
|
@@ -92,10 +121,6 @@
|
|
|
sleep: 30
|
|
|
timeout: 600
|
|
|
|
|
|
- - name: "Wait for finished the process cache:clear"
|
|
|
- pause:
|
|
|
- minutes: 1
|
|
|
-
|
|
|
- name: Doctrine schema update
|
|
|
shell: "bin/console doctrine:schema:update --force"
|
|
|
|
|
@@ -104,11 +129,6 @@
|
|
|
uris: "{{ uris }} --redirect_uri=http://{{ item }}.{{ lookup('env', 'DOMAIN') }}.flowdat.com/login_check"
|
|
|
with_items: "{{ lookup('env', 'MODULES_INSTALL').split(',') }}"
|
|
|
|
|
|
- - name: Sacar el update de ik, el base no tiene esta version del oauth
|
|
|
- shell: "eval $(ssh-agent);ssh-add /opt/keys/bitbucket.id_rsa;composer update ik/*"
|
|
|
- args:
|
|
|
- executable: /bin/bash
|
|
|
-
|
|
|
- name: Create oauth client
|
|
|
shell: "bin/console oauth:client:createRedirects {{ uris }} > oauth.data.log"
|
|
|
args:
|
|
@@ -124,6 +144,11 @@
|
|
|
args:
|
|
|
executable: /bin/bash
|
|
|
|
|
|
+ - name: Promote users to ADMIN
|
|
|
+ shell: " bin/console fos:user:promote admin ROLE_ADMIN"
|
|
|
+ args:
|
|
|
+ executable: /bin/bash
|
|
|
+
|
|
|
- name: Copy file oauth.data.log to host
|
|
|
fetch:
|
|
|
src: /opt/base/oauth.data.log
|
|
@@ -167,10 +192,6 @@
|
|
|
connection: docker
|
|
|
tags: dsu_modules
|
|
|
tasks:
|
|
|
- - name: "Wait for finished the process cache:clear"
|
|
|
- pause:
|
|
|
- minutes: 1
|
|
|
-
|
|
|
- name: "Doctrine schema update"
|
|
|
shell: "bin/console doctrine:schema:update --force"
|
|
|
|