Groups
Groups
Sign in
Groups
Groups
Ansible Project
Conversations
About
Send feedback
Help
Update local vars
9 views
Skip to first unread message
Aleksey Ezhov
unread,
Nov 29, 2016, 12:07:56 PM
11/29/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
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
?
Reply all
Reply to author
Forward
0 new messages