Hello.
how to update the local vars, after receiving the input parameter
example:

 roles/new/vars/main.yaml
list:
 - name: service1
   pckg: namepckg
   version: trunk

 - name: service2
   pckg: namepckg
   version: trunk

run playbook start.yaml

- hosts: somehost
  remote_user: ansible
  connection: ssh
  become: yes
  gather_facts: nj
  vars:  
   revision: "tags-2.6" 
  roles:
   - new


I want to update vars pckg for service2 and/or service1 (use   
with_subelements) to a value revision

should get
 - name: service1
   pckg: namepckg
   version: tags-2.6 

 - name: service2
   pckg: namepckg
   version: tags-2.6

how to do it?

-- 
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/b5a1c7e4-7c60-4ea5-af7d-56d0afab9ca0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to