Re: [ansible-project] Ansible execute remote shell script with source to other files

2022-02-10 Thread Stefan Hornburg (Racke)
On 10/02/2022 16:15, SysAdmin EM wrote: I changed source by "." inside the shell script and it’s still not running. #!/bin/bash . config-dev.cfg . functions.sh Within the playbook I am already using the parameter "executable: /bin/bash". That's true, but you again calling the shell again

Re: [ansible-project] Ansible execute remote shell script with source to other files

2022-02-10 Thread SysAdmin EM
I changed source by "." inside the shell script and it’s still not running. #!/bin/bash . config-dev.cfg . functions.sh Within the playbook I am already using the parameter "executable: /bin/bash". Playbook --- - name: Test SH hosts: schedule-dev become: yes gather_facts: no tasks:

Re: [ansible-project] Ansible execute remote shell script with source to other files

2022-02-10 Thread Stefan Hornburg (Racke)
On 10/02/2022 14:48, SysAdmin EM wrote: Hello, I’m trying to run a playbook which executes a shell script in a remote instance. Playbook --- - name: Test SH   hosts: schedule-dev   become: yes   gather_facts: no   tasks:     - name: Test Shell Ansible       shell: |         sh

[ansible-project] Ansible execute remote shell script with source to other files

2022-02-10 Thread SysAdmin EM
Hello, I’m trying to run a playbook which executes a shell script in a remote instance. Playbook --- - name: Test SH hosts: schedule-dev become: yes gather_facts: no tasks: - name: Test Shell Ansible shell: | sh create_partition_db.sh {{ carrier }} args: