Skip to main content
Formatting.
Source Link
Stephen Kitt
  • 481.3k
  • 60
  • 1.2k
  • 1.4k

In your script you should enter complete PATH:

In your script you should enter complete PATH:
   #!/bin/bash
   p="/dir/file/create"
   cd "$p" 

don't use sh in front of COMMAND module:

Don't use sh in front of COMMAND module:

   - name: changing dir now..
     command: /dir/file/create/vars.sh  

but 'shell' module is better than 'command' module for your issue.

In your script you should enter complete PATH:
   #!/bin/bash
   p="/dir/file/create"
   cd "$p" 

don't use sh in front of COMMAND module:
   - name: changing dir now..
     command: /dir/file/create/vars.sh  

but 'shell' module is better than 'command' module for your issue.

In your script you should enter complete PATH:

#!/bin/bash
p="/dir/file/create"
cd "$p" 

Don't use sh in front of COMMAND module:

   - name: changing dir now..
     command: /dir/file/create/vars.sh  

but 'shell' module is better than 'command' module for your issue.

added 68 characters in body
Source Link
In your script you should enter complete PATH:
   #!/bin/bash
   p="/dir/file/create"
   cd "$p" 

don't use sh in front of COMMAND module:
   - name: changing dir now..
     command: /dir/file/create/vars.sh  

but 'shell' module is better than 'command' module for your issue.

In your script you should enter complete PATH:
   #!/bin/bash
   p="/dir/file/create"
   cd "$p" 

don't use sh in front of COMMAND module:
   - name: changing dir now..
     command: /dir/file/create/vars.sh  
In your script you should enter complete PATH:
   #!/bin/bash
   p="/dir/file/create"
   cd "$p" 

don't use sh in front of COMMAND module:
   - name: changing dir now..
     command: /dir/file/create/vars.sh  

but 'shell' module is better than 'command' module for your issue.

Source Link

In your script you should enter complete PATH:
   #!/bin/bash
   p="/dir/file/create"
   cd "$p" 

don't use sh in front of COMMAND module:
   - name: changing dir now..
     command: /dir/file/create/vars.sh