mirror of
https://github.com/iiab/iiab.git
synced 2025-02-12 19:22:24 +00:00
CUPS too: install Apache on demand
This commit is contained in:
parent
b0f0ed5059
commit
42d1f1ba21
2 changed files with 14 additions and 3 deletions
|
@ -3,8 +3,18 @@
|
|||
|
||||
# TO DO:
|
||||
# - validate input vars + prereqs
|
||||
# - move 5 top stanzas into install.yml
|
||||
# - move 5-7 next stanzas into enable-or-disable.yml
|
||||
# - move 7 top stanzas into install.yml
|
||||
# - move 7 next stanzas into enable-or-disable.yml
|
||||
|
||||
|
||||
- name: "Set 'apache_install: True' and 'apache_enabled: True'"
|
||||
set_fact:
|
||||
apache_install: True
|
||||
apache_enabled: True
|
||||
|
||||
- name: APACHE - run 'httpd' role
|
||||
include_role:
|
||||
name: httpd
|
||||
|
||||
|
||||
- name: Install 'cups' package
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
systemd:
|
||||
name: "{{ apache_service }}" # apache2 or httpd, per /opt/iiab/iiab/vars/<OS>.yml
|
||||
state: stopped
|
||||
ignore_errors: yes
|
||||
when: apache_installed | bool
|
||||
#ignore_errors: yes
|
||||
|
||||
- name: Install required and helper packages for NGINX
|
||||
package:
|
||||
|
|
Loading…
Reference in a new issue