Technology
37 views | +0 today
Follow
 
Scooped by Roopendra Vishwakarma
onto Technology
Scoop.it!

Variable of variable in ansible playbook

Variable of variable in ansible playbook | Technology | Scoop.it
While writing ansible script I need to user variable of variable in ansible playbook.
Problem :-
I am trying to access variables which is defined in `group_vars`group_vars/allparent1:
child1: somevalue1
child2: somevalue2parent2:
child1: somevalue1
child2: somevalue2Now I am passing parent detail from ansible playbook extra vars like
this
ansible-playbook playbook.yml...
more...
No comment yet.
Your new post is loading...
Your new post is loading...
Scooped by Roopendra Vishwakarma
Scoop.it!

Variable of variable in ansible playbook

Variable of variable in ansible playbook | Technology | Scoop.it
While writing ansible script I need to user variable of variable in ansible playbook.
Problem :-
I am trying to access variables which is defined in `group_vars`group_vars/allparent1:
child1: somevalue1
child2: somevalue2parent2:
child1: somevalue1
child2: somevalue2Now I am passing parent detail from ansible playbook extra vars like
this
ansible-playbook playbook.yml...
more...
No comment yet.
Scooped by Roopendra Vishwakarma
Scoop.it!

Writing custom module in ansible

Writing custom module in ansible | Technology | Scoop.it
While Writing custom module in ansible in ansible you need to setup ansible environment.  If you are not aware from it you can follow step by step instruction  in my post 'Getting started with ansible'After successfully setup ansible environment create your module directory inside 'library/'.I have created module directory...
more...
No comment yet.
Scooped by Roopendra Vishwakarma
Scoop.it!

Ansible Playbook validations

Ansible Playbook validations | Technology | Scoop.it
Ansible Playbook validationsWhile writing ansible playbook sometime we need to validate extra vars parameter or tasks. So that we can run ansible playbook without any fatal error or warning.These are few condition you might validate>> If specific extra vars parameter are passed then execute some task.
>> extra vars parameter...
more...
No comment yet.