Hi there,

could someone translate me the following playbook into python language?

---
- hosts: "{{ host }}"

  vars:
    static_jobs:
      - templatename: "template1"
        templateextension: "zip"
        templateversion: "1.0.0"
      - templatename: "template2"
        templateextension: "zip"
        templateversion: "2.0.0"
      - templatename: "template3"
        templateextension: "war"
        templateversion: "4.5.0"

  tasks:
  - name: will not start message
    debug: "msg='{{ item.templatename }} und dann {{ item.templateextension }} 
und am Ende {{ item.templateversion }} ...'"
    with_items: "{{ static_jobs }}"
    when: item.templateversion == "2.0.0"



Regards,
Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/06e35e44-a25f-4eeb-9aaf-47adef4f3ad9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to