Skip to content

Commit

Permalink
use 00_ prefix for tendrl-ssl.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
dahorak committed Feb 18, 2019
1 parent 342a3ae commit 2fabc01
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions roles/tendrl-httpd-ssl/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,23 @@
name: mod_ssl
state: latest

- name: Initialize new tendrl-ssl.conf file based on sample conf file
- name: Initialize new 00_tendrl-ssl.conf file based on sample conf file
copy:
src: /etc/httpd/conf.d/tendrl-ssl.conf.sample
remote_src: True
dest: /etc/httpd/conf.d/tendrl-ssl.conf
dest: /etc/httpd/conf.d/00_tendrl-ssl.conf

- name: Replace ssl_virtualhost_ip with the correct ip address
lineinfile:
path: /etc/httpd/conf.d/tendrl-ssl.conf
path: /etc/httpd/conf.d/00_tendrl-ssl.conf
regexp: '^<VirtualHost .*:443>'
line: "<VirtualHost {{ httpd_ip_address }}:443>"
notify:
- restart httpd

- name: Adjust ServerName
lineinfile:
path: /etc/httpd/conf.d/tendrl-ssl.conf
path: /etc/httpd/conf.d/00_tendrl-ssl.conf
insertafter: '<VirtualHost .*:443>'
regexp: '^ *ServerName .*'
line: " ServerName {{ httpd_server_name }}"
Expand All @@ -41,7 +41,7 @@

- name: Configure SSL certificate files
lineinfile:
path: /etc/httpd/conf.d/ssl.conf
path: /etc/httpd/conf.d/00_tendrl-ssl.conf
regexp: "{{ item.regexp }}"
line: "{{ item.line }}"
with_items:
Expand Down

0 comments on commit 2fabc01

Please sign in to comment.