title: How to call Ansible through Rundeck using docker container?
body: <p>I am trying to call Ansible through Rundeck. I have created the dockercompose file like this:</p>
  
  <pre><code>version: '3.0'
  services:
    Rundeck:
      stdin_open: true
      tty: true
      image: 'jordan/rundeck'
      ports:
        - '4440:4440/tcp'
      volumes:
       - /root/ansibledemo:/data
  
    ansible:
      stdin_open: true
      tty: true
      image: 'ansible/ansible:default'
      volumes:
       - /root/ansibledemo:/data1
  </code></pre>
  
  <p>With this file I am able to create the 2 services, one is for Rundeck and the other is for Ansible. But my question is: when I try to run the job from Rundeck web interface I am facing the following issue:</p>
  
  <pre><code>/bin/sh: 1: ansible-playbook: not found
  13:10:10            Result: 127
  13:10:10            Failed: NonZeroResultCode: Result code was 127
  13:10:10            Execution failed: 1 in project demo: [Workflow result: , step failures: {1=Dispatch failed on 1 nodes: [localhost: NonZeroResultCode: Result code was 127 + {dataContext=MultiDataContextImpl(map={ContextView(step:1, node:localhost)=BaseDataContext{{exec={exitCode=127}}}, ContextView(node:localhost)=BaseDataContext{{exec={exitCode=127}}}}, base=null)} ]}, Node failures: {localhost=[NonZeroResultCode: Result code was 127 + {dataContext=MultiDataContextImpl(map={ContextView(step:1, node:localhost)=BaseDataContext{{exec={exitCode=127}}}, ContextView(node:localhost)=BaseDataContext{{exec={exitCode=127}}}}, base=null)} ]}, status: failed]
  </code></pre>
  
  <p>How to call Ansible through Rundeck using docker container?</p>