I want to use my group_vars variable with loops to assign variable value as
argument which i want to run from playbook. for my workaround
group_vars :
-- -------------
app.yml:
clay:
username_ice: admin
password_ice: abc1234
nTurn:
nTurn_AltStunPort: 3479
nTurn_PublicTurnPort: 3478
nTurn_PublicAltStunPort: 3479
nTurn_TurnAddress: "{{ansible_default_ipv4.address}}"
nTurn_PublicTurnAddress: "{{ansible_default_ipv4.address}}"
nTurn_PublicAltStunAddress: "{{ansible_default_ipv4.address}}"
nTurn_AltStunAddress: "{{ansible_default_ipv4.address}}"
nTurn_username: nicevoipuser
nTurn_password: ekzmapxj2016DMnice
nTurn_pkg_path: /clay-2.1.6-p13/nTurn-1.3.4.npkg
following is my playbook tasks:
-----------------------------------------
- name: executing expect script clay_configuration.sh to configure nTurn
shell: ./nTurn_configuration.sh {{item.1}} {{item.2}} {{item.3} }
{{item.4}} {{item.5}}
register: clay_status
with_items:
- { 1: '"{{ clay.username_ice }}"' }
- { 2: '"{{ clay.password_ice }}"' }
- { 3: '"{{ nTurn.nTurn_pkg_path }}"' }
- { 3: '"{{ nTurn.nTurn_TurnAddress }}"' }
- { 4: '"{{ nTurn.nTurn_username }}"' }
- { 5: '"{{ nTurn.nTurn_password }}"' }
i want to pass {{item.1}} {item.2}} {item.3}} {item.4}} -- should be
change as variable value which i populate in loop
Thanks....
--
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/ddda1325-b845-47c2-8028-1e60213a2094%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.