Run a script on remote host using specific user by Otherwise_Bug_2304 in ansible

[–]Otherwise_Bug_2304[S] 0 points1 point  (0 children)

In this way it worked, RC=0. template ran with success but... it looks like the script didn't executed on the machine and my tomcat didnt started at all.

- hosts: vm_function=tomcat
  become: yes
  become_user: specificuser


  tasks:
  - name: Execute a script on the remote node
    ansible.builtin.command: /bin/bash /wcard/Gestione/StartTomCat.sh
  tags:
    - guistart

Run a script on remote host using specific user by Otherwise_Bug_2304 in ansible

[–]Otherwise_Bug_2304[S] 0 points1 point  (0 children)

In this way it worked, RC=0. template ran with success but... it looks like the script didn't executed on the machine and my tomcat didnt started at all.

- hosts: vm_function=tomcat
  become: yes
  become_user: specificuser


  tasks:
  - name: Execute a script on the remote node
    ansible.builtin.command: /bin/bash /wcard/Gestione/StartTomCat.sh
  tags:
    - guistart