File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 4
4
msg : Set uyuni_server to a valid server hostname/FQDN
5
5
when : uyuni_server is undefined
6
6
7
+ - name : Check if the uyuni_repo_file exists
8
+ ansible.builtin.stat :
9
+ path : " {{ uyuni_repo_file }}"
10
+ register : stat_uyuni_repo_file
11
+
7
12
- name : Download Uyuni bootstrap script
13
+ when : stat_uyuni_repo_file.stat.exists == false
8
14
ansible.builtin.get_url :
9
15
url : " http://{{ uyuni_server }}/pub/bootstrap/{{ uyuni_bootstrap_filename }}"
10
16
dest : " {{ uyuni_bootstrap_folder }}/bootstrap.sh"
20
26
creates : " {{ uyuni_repo_file }}"
21
27
become : true
22
28
23
- - name : Remove downloded bootsrap script
29
+ - name : Remove downloaded bootstrap script
24
30
ansible.builtin.file :
25
31
path : " {{ uyuni_bootstrap_folder }}/bootstrap.sh"
26
32
state : absent
You can’t perform that action at this time.
0 commit comments