# Bash Module - sourcing files in module\_utils

**URL:** <https://forum.ansible.com/t/bash-module-sourcing-files-in-module-utils/35836>\
**Category:** Ansible Project\
**Created:** [October 8, 2021, 3:40am UTC](https://forum.ansible.com/t/bash-module-sourcing-files-in-module-utils/35836 "2021-10-08T03:40:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason\_Masipiquena](https://avatars.discourse-cdn.com/v4/letter/j/6f9a4e/32.png) [@Jason\_Masipiquena](https://forum.ansible.com/u/Jason_Masipiquena)\
**Post date:** [October 8, 2021, 3:40am UTC](https://forum.ansible.com/t/bash-module-sourcing-files-in-module-utils/35836/1 "2021-10-08T03:40:10Z")

</div>

I have a bash module in plugins/modules

```auto
# my_module.sh
function do_something1() {

...
}

source ../module_utils/my_other_source.sh

do_something1
do_something2

```

source file in plugins/module\_utils

```auto
# my_other_source.sh
function do_something2() {
...
}

```

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [October 8, 2021, 5:47pm UTC](https://forum.ansible.com/t/bash-module-sourcing-files-in-module-utils/35836/2 "2021-10-08T17:47:46Z")

</div>

Only Python/powershell has that type of feature. There is no support for module\_utils with a bash module.
