1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

allow in the field twiddling of pbx_use_apache post-install

This commit is contained in:
Jerry Vonau 2023-04-02 09:53:28 -05:00
parent 094d66e381
commit f2b1d2293f
3 changed files with 6 additions and 8 deletions

View file

@ -42,10 +42,10 @@
- name: "Set 'pbx_apache_installed: True'"
set_fact:
pbx_apache_installed: True
apache_installed: True
- name: "Add 'pbx_apache_installed: True' to {{ iiab_state_file }}"
lineinfile:
path: "{{ iiab_state_file }}" # /etc/iiab/iiab_state.yml
regexp: '^pbx_apache_installed'
line: 'pbx_apache_installed: True'
regexp: '^apache_installed'
line: 'apache_installed: True'

View file

@ -70,11 +70,6 @@
include_tasks: roles/www_options/tasks/php-settings.yml
when: php_settings_done is undefined
- name: FreePBX - Install and configure Apache - if pbx_use_apache
include_tasks: apache.yml
when: pbx_use_apache
# - name: FreePBX - Download {{ freepbx_url }}/{{ freepbx_src_file }} to {{ downloads_dir }}
# get_url:
# url: "{{ freepbx_url }}/{{ freepbx_src_file }}"

View file

@ -18,6 +18,9 @@
fail_msg: "PLEASE GIVE VARIABLE 'pbx_enabled' A PROPER (UNQUOTED) ANSIBLE BOOLEAN VALUE e.g. IN: /etc/iiab/local_vars.yml"
quiet: yes
- name: FreePBX - Install and configure Apache - if pbx_use_apache
include_tasks: apache.yml
when: pbx_use_apache and apache_installed is undefined
- block: