File tree 1 file changed +48
-0
lines changed
ansible/roles/spatial-service/tasks
1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 120
120
tags :
121
121
- spatial-service
122
122
- spatial-deps
123
+
124
+ - name : Download maxent.zip
125
+ get_url :
126
+ url : ' https://biodiversityinformatics.amnh.org/open_source/maxent/maxent.php?op=download'
127
+ dest : /tmp/maxent.zip
128
+ tags :
129
+ - spatial-service
130
+ - spatial-deps
131
+
132
+ - name : Create directory for maxent
133
+ file : path={{data_dir}}/spatial-data/modelling/maxent owner={{tomcat_user}} group={{tomcat_user}} recurse=true state=directory mode='0755'
134
+ tags :
135
+ - spatial-service
136
+ - spatial-deps
137
+
138
+ - name : Extract maxent.zip
139
+ unarchive :
140
+ src : /tmp/maxent.zip
141
+ dest : /tmp/
142
+ remote_src : true
143
+ tags :
144
+ - spatial-service
145
+ - spatial-deps
146
+
147
+ - name : Copy maxent.jar to the destination directory
148
+ copy :
149
+ src : /tmp/maxent/maxent.jar
150
+ dest : " {{data_dir}}/spatial-data/modelling/maxent/maxent.jar"
151
+ remote_src : true
152
+ tags :
153
+ - spatial-service
154
+ - spatial-deps
155
+
156
+ - name : Remove temporary maxent.zip file
157
+ file :
158
+ path : /tmp/maxent.zip
159
+ state : absent
160
+ tags :
161
+ - spatial-service
162
+ - spatial-deps
163
+
164
+ - name : Remove extracted maxent directory
165
+ file :
166
+ path : /tmp/maxent
167
+ state : absent
168
+ tags :
169
+ - spatial-service
170
+ - spatial-deps
You can’t perform that action at this time.
0 commit comments