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

Also allow copies on the target machine by honoring remote_src: yes #120

Open
lask79 opened this issue Oct 11, 2023 · 0 comments
Open

Also allow copies on the target machine by honoring remote_src: yes #120

lask79 opened this issue Oct 11, 2023 · 0 comments

Comments

@lask79
Copy link

lask79 commented Oct 11, 2023

- name: Tomcat | Copy local wars to webapps
copy:
src: "{{ item }}"
dest: "{{ tomcat_webapps_path }}"
mode: 0755
owner: "{{ tomcat_user }}"
group: "{{ tomcat_group }}"
with_items: "{{ tomcat_war_to_deploy_path }}"
when: tomcat_local_wars

Hi,

the current implementation allows only to deploy from the control node to the target node. But sometimes the war file might already be available on that target machine so it should be possible to also define if the parameter remote_src should be used or not.

Like this:

- name: Tomcat | Copy local wars to webapps
  copy:
    src: "{{ item }}"
    dest: "{{ tomcat_webapps_path }}"
    mode: 0755
    owner: "{{ tomcat_user }}"
    group: "{{ tomcat_group }}"
    remote_src: "{{ tomcat_war_to_deploy_use_remote_src }}"
  with_items: "{{ tomcat_war_to_deploy_path }}"
  when: tomcat_local_wars
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant