File tree 1 file changed +7
-21
lines changed
1 file changed +7
-21
lines changed Original file line number Diff line number Diff line change 6
6
backup : true
7
7
mode : 0644
8
8
notify :
9
- - Restart squid
9
+ - restart squid
10
10
11
11
- name : Fix cache directory permission
12
12
ansible.builtin.file :
18
18
setype : squid_cache_t
19
19
when : cvmfs_stratum1_cache_dir is defined
20
20
21
- - name : Check whether the cache directories exist
22
- ansible.builtin.stat :
23
- path : " {{ cvmfs_stratum1_cache_dir.dir }}/00"
24
- register : cvmfs_stratum1_cache_dir_stat
25
- when : cvmfs_stratum1_cache_dir is defined
26
-
27
21
- name : Create the cache directories for the first time
28
- when : cvmfs_stratum1_cache_dir is defined and not cvmfs_stratum1_cache_dir_stat.stat.exists
29
- block :
30
-
31
- - name : Ensure squid is stopped
32
- ansible.builtin.service :
33
- name : " {{ cvmfs_squid_service_name }}"
34
- state : stopped
35
-
36
- - name : Create the cache directories
37
- become : true
38
- become_user : " {{ cvmfs_squid_user }}"
39
- ansible.builtin.command : squid -z
40
- args :
41
- creates : " {{ cvmfs_stratum1_cache_dir.dir }}/00"
22
+ become : true
23
+ become_user : " {{ cvmfs_squid_user }}"
24
+ ansible.builtin.command : squid -z
25
+ args :
26
+ creates : " {{ cvmfs_stratum1_cache_dir }}/00"
27
+ when : cvmfs_stratum1_cache_dir is defined
42
28
43
29
- name : Ensure squid is enabled and started
44
30
ansible.builtin.service :
You can’t perform that action at this time.
0 commit comments