|
@@ -44,6 +44,27 @@
|
|
|
shell: echo "LoadModule wsgi_module modules/mod_wsgi_python3.so" >/etc/apache2/conf.d/wsgi.conf
|
|
|
changed_when: false
|
|
|
|
|
|
+ - name: Change http port to 8000
|
|
|
+ replace:
|
|
|
+ path: "/etc/apache2/listen.conf"
|
|
|
+ regexp: '^Listen 80'
|
|
|
+ replace: 'Listen 8000'
|
|
|
+ changed_when: false
|
|
|
+
|
|
|
+ - name: Change https port to 8008
|
|
|
+ replace:
|
|
|
+ path: "/etc/apache2/listen.conf"
|
|
|
+ regexp: '^\s.*Listen 443'
|
|
|
+ replace: ' Listen 8008'
|
|
|
+ changed_when: false
|
|
|
+
|
|
|
+ - name: Change http port to 8000
|
|
|
+ replace:
|
|
|
+ path: "/etc/apache2/vhosts.d/cobbler.conf"
|
|
|
+ regexp: '^<VirtualHost.*'
|
|
|
+ replace: '<VirtualHost *:8000>'
|
|
|
+ changed_when: false
|
|
|
+
|
|
|
- name: Add interface to the /etc/sysconfig/dhcpd
|
|
|
replace:
|
|
|
path: "/etc/sysconfig/dhcpd"
|
|
@@ -55,6 +76,7 @@
|
|
|
with_items:
|
|
|
- cobblerd
|
|
|
- tftp
|
|
|
+ - apache2
|
|
|
changed_when: false
|
|
|
|
|
|
- name: Restart httpd
|