extra-var should decide about used vars in role

12 views
Skip to first unread message

Mateusz Rumian

unread,
Apr 16, 2015, 8:23:25 AM4/16/15
to ansible...@googlegroups.com
Hello guys,

I'm a "noob" in Ansible. I have some probs with passing extra-vars to my playbook.

My playbook contains few roles to run.

- name: Instal Java etc...
hosts: localhost
connection: local

 roles:
  - java
  - mysql


-------------------------------------------------------------

My problem is:
1.I want to pass only 1 argument/var to the playbook
  this arg/var should decide which VAR_FILE will be used for "- java" role. 

2. Can I use conditions based on provided by extra-vars arg/var in var/main.yml? 

Thank you for all of your help.
 

Kind regards,
Mat
Reply all
Reply to author
Forward
0 new messages