# command timeout triggered, timeout value is 60 secs - Mikrotik

**URL:** <https://forum.ansible.com/t/command-timeout-triggered-timeout-value-is-60-secs-mikrotik/38679>\
**Category:** Ansible Project\
**Created:** [February 6, 2024, 12:13am UTC](https://forum.ansible.com/t/command-timeout-triggered-timeout-value-is-60-secs-mikrotik/38679 "2024-02-06T00:13:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saurav\_Gupta1](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@Saurav\_Gupta1](https://forum.ansible.com/u/Saurav_Gupta1)\
**Post date:** [February 6, 2024, 12:13am UTC](https://forum.ansible.com/t/command-timeout-triggered-timeout-value-is-60-secs-mikrotik/38679/1 "2024-02-06T00:13:05Z")

</div>

Hi All,

I am trying to configure one line command on Mikoritk but getting below error -

- hosts: routers  
connection: local  
gather\_facts: false  
tasks:
- name: Configure username  
routeros\_command:  
commands:
- user add name=ansible group=full password=test1234
- quit

“command timeout triggered, timeout value is 60 secs”

I can see ssh login to device but it does not run the command.

here the details of ansible  
ansible [core 2.15.9]  
config file = /etc/ansible/ansible.cfg  
configured module search path = [‘/home/saurav/.ansible/plugins/modules’, ‘/usr/share/ansible/plugins/modules’]  
ansible python module location = /usr/lib/python3/dist-packages/ansible  
ansible collection location = /home/saurav/.ansible/collections:/usr/share/ansible/collections  
executable location = /usr/bin/ansible  
python version = 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] (/usr/bin/python3)  
jinja version = 3.0.3  
libyaml = True

---

<div class="post-metadata">

**Author:** ![utoddl](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/utoddl/32/249_2.png) [@utoddl](https://forum.ansible.com/u/utoddl)\
**Post date:** [February 6, 2024, 3:12pm UTC](https://forum.ansible.com/t/command-timeout-triggered-timeout-value-is-60-secs-mikrotik/38679/2 "2024-02-06T15:12:53Z")

</div>

According to [https://docs.ansible.com/ansible/latest/collections/community/routeros/docsite/ssh-guide.html#important-notes](https://docs.ansible.com/ansible/latest/collections/community/routeros/docsite/ssh-guide.html#important-notes)

> The [community.routeros.command module](https://docs.ansible.com/ansible/latest/collections/community/routeros/command_module.html#ansible-collections-community-routeros-command-module) does not support nesting commands and **expects every command to start with a forward slash (`/`)**. Running the following command will produce an error:
> 
> ```auto
> - community.routeros.command:
> commands:
> - /ip
> - print
> 
> ```

It’s the “_… and expects every command to start with a forward slash (/)_” bit that I suspect is your problem.  
While you’re fixing things, use the FQCN: “ **community.routeros.command** ”. “[community.network.]routeros\_command” is deprecated.

---

<div class="post-metadata">

**Author:** ![Saurav\_Gupta1](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@Saurav\_Gupta1](https://forum.ansible.com/u/Saurav_Gupta1)\
**Post date:** [February 7, 2024, 12:23am UTC](https://forum.ansible.com/t/command-timeout-triggered-timeout-value-is-60-secs-mikrotik/38679/3 "2024-02-07T00:23:36Z")

</div>

Hi Todd,  
Thanks for your reply.

I have used the other script with **community.routeros.command and receiving the same error with “/” and without"/"**

hosts: routers  
connection: local  
gather\_facts: false  
tasks:

- name: Configure username  
community.routeros.command:  
commands:
- /user add name=ansible group=full password=test

Any other thought ?
