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
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:
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
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: