Skip to content
Snippets Groups Projects
Commit 6887a107 authored by Stephane Armanet's avatar Stephane Armanet
Browse files

add mps software repo download

parent dbc8bf09
No related branches found
No related tags found
No related merge requests found
Pipeline #23343 passed
...@@ -16,6 +16,9 @@ pss_nas_ssh_allowusers: ...@@ -16,6 +16,9 @@ pss_nas_ssh_allowusers:
pss_nas_software_repo_url: https://artifactory.esss.lu.se/artifactory/list/PSS-Softwares/ pss_nas_software_repo_url: https://artifactory.esss.lu.se/artifactory/list/PSS-Softwares/
pss_nas_software_files: pss_nas_software_files:
- test.zip - test.zip
mps_nas_software_repo_url: https://artifactory.esss.lu.se/artifactory/list/MPS-Softwares/
mps_nas_software_files:
- test.zip
pss_nas_softs_owner: root pss_nas_softs_owner: root
pss_bastion_host: pss_bastion_01.tn.esss.lu.se pss_bastion_host: pss_bastion_01.tn.esss.lu.se
......
--- ---
- name: add a software folder - name: add a software folder for PSS and MPS
file: file:
path: /softwares path: "/softwares/{{ item }}"
owner: "{{ pss_nas_softs_owner }}" owner: "{{ pss_nas_softs_owner }}"
group: "{{ pss_nas_softs_owner }}" group: "{{ pss_nas_softs_owner }}"
mode: 0755 mode: 0755
state: directory state: directory
with_items:
- mps
- pss
- name: download PSS softwares - name: download PSS softwares
get_url: get_url:
url: "{{ pss_nas_software_repo_url }}/{{ item }}" url: "{{ pss_nas_software_repo_url }}/{{ item }}"
dest: "/softwares/{{ item }}" dest: "/softwares/pss/{{ item }}"
mode: 0444 mode: 0444
url_username: pss-soft-user url_username: pss-soft-user
url_password: "{{ pss_soft_artifactory_password }}" url_password: "{{ pss_soft_artifactory_password }}"
with_items: "{{ pss_nas_software_files }}" with_items: "{{ pss_nas_software_files }}"
- name: download MPS softwares
get_url:
url: "{{ mps_nas_software_repo_url }}/{{ item }}"
dest: "/softwares/mps/{{ item }}"
mode: 0444
url_username: pss-soft-user
url_password: "{{ pss_soft_artifactory_password }}"
with_items: "{{ mps_nas_software_files }}"
- name: add uploads folder - name: add uploads folder
file: file:
path: /uploads path: /uploads
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment