1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +00:00

Merge pull request #3524 from jvonau/pbx_asterisk_installed

asterisk_installed
This commit is contained in:
A Holt 2023-04-04 11:13:21 -04:00 committed by GitHub
commit c1c3697406
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View file

@ -186,3 +186,13 @@
path: /etc/asterisk/asterisk.conf
regexp: 'rungroup ='
line: 'rungroup = asterisk'
- name: "Set 'asterisk_installed: True'"
set_fact:
asterisk_installed: True
- name: "Add 'asterisk_installed: True' to {{ iiab_state_file }}"
lineinfile:
path: "{{ iiab_state_file }}" # /etc/iiab/iiab_state.yml
regexp: '^asterisk_installed'
line: 'asterisk_installed: True'

View file

@ -36,6 +36,7 @@
- name: Install Asterisk
include_tasks: asterisk.yml
when: asterisk_installed is undefined
- name: Install FreePBX
include_tasks: freepbx.yml