Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

task not executing #3771

Closed
sinu opened this issue Apr 27, 2019 · 0 comments
Closed

task not executing #3771

sinu opened this issue Apr 27, 2019 · 0 comments

Comments

@sinu
Copy link

sinu commented Apr 27, 2019

ISSUE TYPE
  • help wanted
SUMMARY

team i am trying to launch a template with list of variable_value but task is getting executed only in one target host

sample request

curl -H "Content-Type: application/json" -X POST -s -u admin:admin123 -d '{ "extra_vars": { "domain": "dom-cn-1", "targets": "dev-cn-c1", "targets": "dev-cn-c2", "fwcmd": "fw sam -v -J src 192.168.10.10" }}' -k https://172.16.102.4/api/v2/job_templates/10/launch/

this is working as expected when i run via cli playbook.

##vars file snip

domain: dom-cn-1
targets:
- dev-cn-c1
- dev-cn-c2

###Playbook file

    - name: "Create output file"
      check_point_mgmt:
        command: run-script
        parameters:
          script-name: "Create output file"
          script: "fw sam -v  -J src  192.168.10.10"
          targets: "{{ targets }}"
        session-data: "{{login_response}}"
ENVIRONMENT
  • AWX version: 4.0
  • AWX install method: docker on linux
  • Ansible version: 2.8
  • Operating System:
  • Web Browser:
STEPS TO REPRODUCE
EXPECTED RESULTS

task should run on both target hosts, as per the about request it is getting executed only on dev-cn-c2
targets:
- dev-cn-c1
- dev-cn-c2

ACTUAL RESULTS
ADDITIONAL INFORMATION
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants