Open mamedin opened 3 years ago
The deploy-pub commits fix the issue for the deploy-pub deploys, but it is a workaround.
The following task doesn't work fine when using vagrant (port 2222 and its ssh key):
- name: "Get SS API Key"
shell: >
echo "select \`key\` from tastypie_apikey where id in (select id from auth_user where username = '{{ archivematica_src_configure_ss_user }}');"
| {{ archivematica_src_ss_virtualenv }}/bin/python manage.py dbshell | tail -n1
args:
chdir: "{{ archivematica_src_ss_app }}"
executable: /bin/bash
environment: "{{ archivematica_src_ss_environment }}"
delegate_to: "{{ archivematica_src_configure_ss_url|urlsplit('hostname') }}"
become: yes
remote_user: "{{ archivematica_src_configure_ss_ssh_user | default('artefactual') }}"
register: archivematica_src_configure_ss_api_key_temp
when:
- "archivematica_src_configure_dashboard|bool or archivematica_src_configure_ss|bool"
- "archivematica_src_configure_ss_api_key is undefined"
So we should check this task, especially the delegate_to
directive. It only should be used when SS is in a separate VM.
Error in vagrant deploy: