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 88
88
- spatial-service
89
89
- spatial-service-config
90
90
- properties
91
+
92
+ - name : Download maxent.zip
93
+ get_url :
94
+ url : ' https://biodiversityinformatics.amnh.org/open_source/maxent/maxent.php?op=download'
95
+ dest : /tmp/maxent.zip
96
+ tags :
97
+ - spatial-service
98
+ - spatial-deps
99
+
100
+ - name : Create directory for maxent
101
+ file : path={{data_dir}}/spatial-data/modelling/maxent owner={{tomcat_user}} group={{tomcat_user}} recurse=true state=directory mode='0755'
102
+ tags :
103
+ - spatial-service
104
+ - spatial-deps
105
+
106
+ - name : Extract maxent.zip
107
+ unarchive :
108
+ src : /tmp/maxent.zip
109
+ dest : /tmp/
110
+ remote_src : true
111
+ tags :
112
+ - spatial-service
113
+ - spatial-deps
114
+
115
+ - name : Copy maxent.jar to the destination directory
116
+ copy :
117
+ src : /tmp/maxent/maxent.jar
118
+ dest : " {{data_dir}}/spatial-data/modelling/maxent/maxent.jar"
119
+ remote_src : true
120
+ tags :
121
+ - spatial-service
122
+ - spatial-deps
123
+
124
+ - name : Remove temporary maxent.zip file
125
+ file :
126
+ path : /tmp/maxent.zip
127
+ state : absent
128
+ tags :
129
+ - spatial-service
130
+ - spatial-deps
131
+
132
+ - name : Remove extracted maxent directory
133
+ file :
134
+ path : /tmp/maxent
135
+ state : absent
136
+ tags :
137
+ - spatial-service
138
+ - spatial-deps
You can’t perform that action at this time.
0 commit comments