Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#49: Ensure conflicting web server is not running on remote
- Loading branch information
Showing
4 changed files
with
17 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
--- | ||
- name: Start FPM and add it to boot | ||
service: | ||
name: "php{{ php_version }}-fpm" | ||
state: started | ||
enabled: yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,3 @@ | ||
--- | ||
- name: Eliminate web servers conflicts | ||
service: | ||
name: "{{ item }}" | ||
# Stop conflicting web server. | ||
state: stopped | ||
# Prevent conflicting web server to be started on boot. | ||
enabled: no | ||
# Apply the rule for any web server, except currently selected. | ||
when: web_server != item | ||
with_items: "{{ cikit_webserver.servers }}" | ||
|
||
- include_role: | ||
name: "cikit-{{ web_server }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ | |
|
||
- include_role: | ||
name: cikit-apache2 | ||
when: "'apache2' == web_server" |