mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Dont let freepbx take over sessions directory
This commit is contained in:
parent
aa8f6424b9
commit
1f3c88623b
1 changed files with 14 additions and 3 deletions
|
@ -39,7 +39,7 @@
|
||||||
enabled: no
|
enabled: no
|
||||||
state: stopped
|
state: stopped
|
||||||
|
|
||||||
- name: Add mysql user
|
- name: FreePBX - Add mysql user
|
||||||
mysql_user:
|
mysql_user:
|
||||||
name: "{{ asterisk_db_user }}"
|
name: "{{ asterisk_db_user }}"
|
||||||
password: "{{ asterisk_db_password }}"
|
password: "{{ asterisk_db_password }}"
|
||||||
|
@ -48,7 +48,7 @@
|
||||||
host: "{{ (asterisk_db_host == 'localhost') | ternary('localhost', ansible_default_ipv4.address) }}"
|
host: "{{ (asterisk_db_host == 'localhost') | ternary('localhost', ansible_default_ipv4.address) }}"
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Add mysql db
|
- name: FreePBX - Add mysql db
|
||||||
mysql_db:
|
mysql_db:
|
||||||
name: "{{ asterisk_db_dbname }}"
|
name: "{{ asterisk_db_dbname }}"
|
||||||
encoding: utf8
|
encoding: utf8
|
||||||
|
@ -56,7 +56,7 @@
|
||||||
login_host: "{{ asterisk_db_host }}"
|
login_host: "{{ asterisk_db_host }}"
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Add cdr mysql db
|
- name: FreePBX - Add cdr mysql db
|
||||||
mysql_db:
|
mysql_db:
|
||||||
name: "{{ asterisk_db_cdrdbname }}"
|
name: "{{ asterisk_db_cdrdbname }}"
|
||||||
encoding: utf8
|
encoding: utf8
|
||||||
|
@ -64,6 +64,17 @@
|
||||||
login_host: "{{ asterisk_db_host }}"
|
login_host: "{{ asterisk_db_host }}"
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
- name: FreePBX - Don't let freepbx take over the php sessions dir
|
||||||
|
blockinfile:
|
||||||
|
content: |
|
||||||
|
[blacklist]
|
||||||
|
directory = /var/lib/php/sessions
|
||||||
|
marker: "; {mark} ANSIBLE MANAGED BLOCK"
|
||||||
|
dest: /etc/asterisk/freepbx_chown.conf
|
||||||
|
owner: asterisk
|
||||||
|
group: asterisk
|
||||||
|
create: yes
|
||||||
|
|
||||||
- name: FreePBX - Install (just run once)
|
- name: FreePBX - Install (just run once)
|
||||||
command: "{{ item }}"
|
command: "{{ item }}"
|
||||||
args:
|
args:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue