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