Commit graph

64 commits

Author SHA1 Message Date
shell
29683edf31 Fixed many typos 2024-11-19 19:49:03 +01:00
shell
f224d9227a Create more plays do enable and disable confs. 2024-11-19 18:37:19 +01:00
Jeff Geerling
1093a4609b Add apache_ssl_no_log variable so users can log output for debugging. 2024-03-06 21:22:50 -06:00
Jeff Geerling
18d469dfc5
Merge pull request #230 from dubmarm/no_tag_vhosts_ssl
add no_log to mask vhost_ssl data from output
2024-03-06 21:20:47 -06:00
Jonathan Piron
2ff0b51c05 fix Debian check mode
file module needs force attribute if symlink destination doesn't exist which is the case in check mode.
2024-01-16 09:10:20 +01:00
Fabian Niepelt
841acb1b91
Implement enabling and disabling modules on RedHat systems 2022-05-22 15:43:36 +02:00
dmarm
3dedd6c340 helps to spell, change tag to log 2021-11-09 16:03:26 -08:00
dmarm
f444b0d933 add no_tag to mask vhost_ssl data from output 2021-11-09 11:14:46 -08:00
J. Daniel Ashton
f8970f4a38 Alllow service to be disabled 2021-06-09 11:55:34 -04:00
Jeff Geerling
04600b45f6 Fix linting issues. 2020-08-20 12:22:09 -05:00
Jeff Geerling
f2b91ac840 Fixes #173 again: cast string to int for comparison. 2019-07-23 15:13:10 -05:00
Jeff Geerling
cf6003a500 Fixes #173, gets it working on RHEL 8 and removes deprecated usage of bare variable. 2019-07-23 15:01:49 -05:00
smeek
9a0f04ccb8
Update setup-RedHat.yml
Use the `package` module rather than `yum` so that `package` can delegate to `yum` or `dnf` as needed
2018-10-11 12:33:00 +01:00
Jeff Geerling
2d8e23af5a Fix broken behavior under Ansible 2.7 due to yum module change. 2018-10-08 11:56:04 -05:00
Jeff Geerling
c01aecaa78 Prevent failures on Ansible 2.7 when no repo is set on RedHat. 2018-10-04 16:53:12 -05:00
Jeff Geerling
d579c1497f Be a little less strict about line length. 2018-09-25 22:38:51 -05:00
Jeff Geerling
afb02c39ca Issue #156: Fix some Ansible Lint issues. 2018-09-25 22:19:58 -05:00
Jeff Geerling
71f928b9f1 Fix a few ansible-lint issues. 2018-09-25 21:36:20 -05:00
Jan Sepke
b2745274c0
remove deprecation warning
use include_tasks instead of include + static
2018-01-10 11:49:32 +01:00
Jeff Geerling
7da5582cd8 Switch from deprecated always_run to check_mode. 2017-04-12 10:39:53 -05:00
Maik Glatki
0d8bb6d11f Improve task naming. 2017-04-03 14:46:27 +00:00
Maik Glatki
73bd75f4b4 Add compatibility for AmazonLinux.
Ansible identifies AmazonLinux as:
  ansible_os_family: "RedHat"
  ansible_distribution_major_version == "NA"

But it is seemingly otherwise indistinguishable from RedHat / CentOS.

This sets the correct variables for packages, services, etc, which
differ from RHEL / CentOS.
2017-04-03 10:01:09 +00:00
Oskar Schöldström
4fb372d104 Add apache_packages_state to allow upgrading Apache versions 2017-01-05 16:46:15 -05:00
Jeff Geerling
5817624949 Merge pull request #105 from sysinit/master
make template file configurable
2016-12-09 08:58:59 -06:00
Jeff Geerling
88d910923c Fixes #110: Ansible 2.2 causes 'apache_packages' is undefined. 2016-11-02 15:53:19 -05:00
Steven Spasbo
9e0ac92df1 Removed duplicate tasks 2016-10-11 10:44:34 -07:00
Frank Mueller
f3ac2f17ce make template file configurable 2016-09-02 13:37:41 +02:00
Jeff Geerling
3bb85dbec4 Adjust valid apt cache time. 2016-08-28 20:39:20 -05:00
Christoph Dittmann
ae3a1a6332 Merge the templates for 2.2 and 2.4
The only real difference between apache version 2.2 and 2.4 are the
"Order/Allow" directives which have been replaced with "Require", so
there seems to be no need to maintain two separate templates.

As a side-effect, this merges geerlingguy/ansible-role-apache#69 into
the apache 2.2 config.
2016-04-25 18:29:26 +02:00
Jeff Geerling
1bbf949a9f Fix deprecation warnings in Ansible 2.x. Bump required version. 2016-02-28 23:32:02 -06:00
liquidat
77a766e4fb Fix configuration path in Solaris 2016-02-01 11:29:10 +01:00
liquidat
7aa1f2e0c8 Add Suse configuration and proper service handling
- Suse listen configuration points to listen.conf file
- service handler uses service variable
2016-02-01 11:17:20 +01:00
liquidat
8c39811daa Add distribution to task name 2016-02-01 10:48:41 +01:00
liquidat
170a9c2446 Add Suse support
- set proper package and service name apache2
- configure given packages for Suse
- install packages
- start service
2016-02-01 10:37:57 +01:00
liquidat
80d2a89369 Merge remote-tracking branch 'upstream/master' 2016-01-29 23:53:35 +01:00
Andreas Wolf
097ddd2eb4 Only create vHosts if certificate exists 2016-01-18 17:25:08 +01:00
liquidat
6e5b5bdadb Add configure Solaris part 2016-01-14 10:35:04 +01:00
liquidat
d472d0881d Add Solaris configuration
- add Solaris os family to main role definition
- add Solaris setup file
- add Solaris configuration
2015-12-29 22:10:07 +01:00
liquidat
55a5b2d07f Prepare role when service differs from daemon name
- introduce new apache_service in addition to apache_daemon for systems
  where service name is different from daemon name
- replace apache_daemon by apache_service in service status check
2015-12-29 21:57:25 +01:00
Gilad Peleg
5cee545c8f Make apache start optional at task end
- Closes #45
2015-09-24 18:33:10 +03:00
Jeff Geerling
f98accbb08 PR #24: Clean up default vhost removal options and document the new var. 2015-07-23 12:04:31 -05:00
Jeff Geerling
2597e7380c Merge pull request #24 from ThijsFeryn/removedefaultvhost
PR #24: Allow default vhost file to be removed on Debian/Ubuntu.
2015-07-23 12:00:15 -05:00
Jeff Geerling
cfda9d6dfb PR #26: Fix spacing for variable name. 2015-07-23 11:58:03 -05:00
Jeff Geerling
dc89c2b987 Merge pull request #26 from FlxPeters/master
Fixes #25: Fails to get installed version of Apache.
2015-07-23 11:55:47 -05:00
Jeff Geerling
0424fbcd87 Issue #34: Add ability to 'disable' Apache mods on Ubuntu/Debian. 2015-05-31 16:01:27 -05:00
Felix Peters
e9d5dedc70 Fix #25 Get installed version of Apache. failed
Add absolute path for apache/httpd to avoid command not found error
2015-02-06 13:21:51 +01:00
Thijs Feryn
8e71d656f4 Allowing the default vhost to be removed. Causes issues because it is linked to port 80, even if you change apache_listen_port 2015-01-28 13:54:09 +01:00
Jeff Geerling
36d79e5f26 Revert test and add always_run to solve #20. 2015-01-09 23:46:28 -06:00
Lewis Wright
5eeace69bb Made the vhost.conf filename configurable 2015-01-08 17:29:36 +00:00
Guillaume Dedrie
b13cb7d4ba Prevent task symlink vhost for Debian to failed.
When vhost has not been created (using apache_create_vhosts: no), the
tasks should not be executed, otherwise it'll failed as the vhosts.conf
file has not been created and cannot been linked.
2014-11-04 18:02:42 +01:00