Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure: Improve the use of delegate_to #281

Open
wants to merge 1 commit into
base: qa/1.x
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
chdir: "{{ archivematica_src_ss_app }}"
executable: /bin/bash
environment: "{{ archivematica_src_ss_environment }}"
delegate_to: "{{ archivematica_src_configure_ss_url|urlsplit('hostname') }}"
delegate_to: "{{ archivematica_src_configure_ss_inventory_hostname | default(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
Expand Down Expand Up @@ -201,7 +201,7 @@
home: "/home/archivematica"
createhome: True
shell: "/bin/bash"
delegate_to: "{{ archivematica_src_configure_dashboardsettings['url']|urlsplit('hostname') }}"
delegate_to: "{{ archivematica_src_configure_atom_inventory_hostname | default(archivematica_src_configure_dashboardsettings['url']|urlsplit('hostname')) }}"
remote_user: "{{ archivematica_src_configure_atom_ssh_user | default('artefactual') }}"
when: archivematica_src_configure_dashboardsettings is defined

Expand All @@ -210,7 +210,7 @@
user: "archivematica"
state: "present"
key: "{{ ssh_key.stdout }}"
delegate_to: "{{ archivematica_src_configure_dashboardsettings['url']|urlsplit('hostname') }}"
delegate_to: "{{ archivematica_src_configure_atom_inventory_hostname | default(archivematica_src_configure_dashboardsettings['url']|urlsplit('hostname')) }}"
remote_user: "{{ archivematica_src_configure_atom_ssh_user | default('artefactual') }}"
when: archivematica_src_configure_dashboardsettings is defined

Expand Down