File tree Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 11
11
# Basics
12
12
# ###############################
13
13
14
- error_pages_name : error_pages
14
+ error_pages_name : error-pages
15
15
16
16
# ###############################
17
17
# Config
@@ -53,7 +53,7 @@ error_pages_docker_commands: "{{ error_pages_docker_commands_default
53
53
54
54
# Volumes
55
55
error_pages_docker_volumes_default :
56
- - " /opt/error_pages :/opt/html"
56
+ - " /opt/error-pages :/opt/html"
57
57
error_pages_docker_volumes_custom : []
58
58
error_pages_docker_volumes : " {{ error_pages_docker_volumes_default
59
59
+ error_pages_docker_volumes_custom }}"
Original file line number Diff line number Diff line change 7
7
# GNU General Public License v3.0 #
8
8
# #########################################################################
9
9
---
10
- - name : Check if folder already exists
10
+ - name : Check if legacy folder exists
11
11
ansible.builtin.stat :
12
12
path : " /opt/error_pages"
13
+ register : error_pages_legacy_folder
14
+
15
+ - name : Migrate legacy folder if it exists
16
+ ansible.builtin.shell : " mv /opt/error_pages /opt/error-pages"
17
+ when : error_pages_legacy_folder.stat.exists
18
+
19
+ - name : Check if folder already exists
20
+ ansible.builtin.stat :
21
+ path : " /opt/error-pages"
13
22
register : error_pages_folder
14
23
15
24
- name : Create directory
16
25
ansible.builtin.file :
17
- path : " /opt/error_pages "
26
+ path : " /opt/error-pages "
18
27
state : directory
19
28
owner : " {{ user.name }}"
20
29
group : " {{ user.name }}"
23
32
24
33
- name : Export error pages from container
25
34
community.docker.docker_container :
26
- name : error_pages -build
35
+ name : error-pages -build
27
36
image : " tarampampam/error-pages"
28
37
user : " {{ uid }}:{{ gid }}"
29
38
command : " build --config-file ./error-pages.yml /out"
30
39
volumes :
31
- - " /opt/error_pages :/out:rw"
40
+ - " /opt/error-pages :/out:rw"
32
41
networks :
33
42
- name : saltbox
34
43
container_default_behavior : compatibility
You can’t perform that action at this time.
0 commit comments