# Ansible tower awx problem with command shell downtime

**URL:** <https://forum.ansible.com/t/ansible-tower-awx-problem-with-command-shell-downtime/31524>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [October 23, 2019, 9:32am UTC](https://forum.ansible.com/t/ansible-tower-awx-problem-with-command-shell-downtime/31524 "2019-10-23T09:32:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karther](https://avatars.discourse-cdn.com/v4/letter/k/3ec8ea/32.png) [@Karther](https://forum.ansible.com/u/Karther)\
**Post date:** [October 23, 2019, 9:32am UTC](https://forum.ansible.com/t/ansible-tower-awx-problem-with-command-shell-downtime/31524/1 "2019-10-23T09:32:35Z")

</div>

Hey,

I have one problem with ansible tower awx, i don’t understand why when i execut command for downtime, ansible works but not ansible tower awx.

My task is :

- name: “Debut du Downtime”  
shell: /opt/jmsagent/bin/jmsagent.sh -q -U ‘my\_user’ -P ‘{{my\_password}}’ -E PROD --any cmd /MONITORING/centreon\_host\_adddowntime {{inventory\_hostname}} 7200 pause\_appli  
register: adddowntime  
delegate\_to: 127.0.0.1  
run\_once: true

This task works with ansible and not with ansible tower awx … ?

Someone have idea please for solve this problem, please ?? ^^

Thank you very much community ansible !! =)

Regards,

---

<div class="post-metadata">

**Author:** ![Jesse\_Keating1](https://avatars.discourse-cdn.com/v4/letter/j/eb9ed0/32.png) [@Jesse\_Keating1](https://forum.ansible.com/u/Jesse_Keating1)\
**Post date:** [October 23, 2019, 6:06pm UTC](https://forum.ansible.com/t/ansible-tower-awx-problem-with-command-shell-downtime/31524/2 "2019-10-23T18:06:39Z")

</div>

When executing things with AWX the playbooks are executed inside of bubblewrap inside of the awx\_task container on the AWX host (or k8s cluster). They do not execute directly on the host AWX runs on. Your task appears to depend on content on the AWX host. Instead of delegating to localhost you would need to delegate to the host where AWX runs.
