Skip to content
Snippets Groups Projects
Commit 7a0d5c2a authored by McConahy, Renee Margaret's avatar McConahy, Renee Margaret
Browse files

http_frontend: Make check mode usable.

parent 7e353257
No related branches found
No related tags found
No related merge requests found
......@@ -17,23 +17,26 @@
changed_when: false
when: tmpdir.path is defined
- name: Register checksum of httpd configuration file.
stat:
path: "{{ tmpdir.path }}/httpd-frontend.conf"
checksum_algorithm: sha256
register: r
- name: Determine name for httpd configuration file.
block:
- name: Register checksum of httpd configuration file.
stat:
path: "{{ tmpdir.path }}/httpd-frontend.conf"
checksum_algorithm: sha256
register: r
- name: Calculate name.
set_fact:
_r2: "{{ http_frontend_name }}_\
httpd_frontend_config-\
{{ r.stat.checksum }}"
- name: Calculate shorter name.
set_fact:
httpd_frontend_config_name: "{{ _r2 | regex_replace('(.{,64}).*',
'\\1') }}"
when: tmpdir.path is defined
- name: Calculate name for configuration.
set_fact:
_r2: "{{ http_frontend_name }}_\
httpd_frontend_config-\
{{ r.stat.checksum }}"
- name: Calculate shorter name for configuration.
set_fact:
httpd_frontend_config_name: "{{ _r2 | regex_replace('(.{,64}).*', '\\1') }}"
- name: Copy landing page.
template:
dest: "{{ tmpdir.path }}/index.html"
......@@ -43,23 +46,25 @@
changed_when: false
when: tmpdir.path is defined
- name: Register checksum of landing page.
stat:
path: "{{ tmpdir.path }}/index.html"
checksum_algorithm: sha256
register: r
- name: Determine name for landing page configuration file.
block:
- name: Register checksum of landing page.
stat:
path: "{{ tmpdir.path }}/index.html"
checksum_algorithm: sha256
register: r
- name: Calculate name.
set_fact:
_r2: "{{ http_frontend_name }}_\
index-\
{{ r.stat.checksum }}"
- name: Calculate shorter name.
set_fact:
index_name: "{{ _r2 | regex_replace('(.{,64}).*', '\\1') }}"
when: tmpdir.path is defined
- name: Calculate name for configuration.
set_fact:
_r2: "{{ http_frontend_name }}_\
index-\
{{ r.stat.checksum }}"
- name: Calculate shorter name for configuration.
set_fact:
index_name: "{{ _r2 | regex_replace('(.{,64}).*', '\\1') }}"
- name: Copy Dockerfile.
copy:
dest: "{{ tmpdir.path }}/Dockerfile"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment