IBM / ansible-role-infosvr

Ansible role for automating the deployment of IBM InfoSphere Information Server
Apache License 2.0
15 stars 12 forks source link

Getting Syntax error - though i copied from here and made hosts, datastage source file entries in main.yml and inventory file #22

Open wangadae opened 4 years ago

wangadae commented 4 years ago

Hi Folks Need your help on this...!!!! Thanks in advance for your help.

When i run the DataStage ansible playbook getting as below error.

"ERROR! A playbook must be a list of plays, got a <class 'ansible.parsing.yaml.objects.AnsibleMapping'> instead

The error appears to be in '/etc/ansible/roles/ansible-role-infosvr/defaults/main1.yml': line 19, column 1, but may be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

LOCATIONS

ibm_infosvr_install_location: ^ here "

cmgrote commented 4 years ago

Hi @wangadae -- thanks for trying the role!

From your issue, one possible problem I can see is that you have cloned this repository as-is into your /etc/ansible/roles location with the repository name (ansible-role-infosvr). The playbooks all expect the name of the role to be as it would be when installed via Ansible Galaxy, that is: IBM.infosvr. You might be better off installing the role this way, as you'll be sure to get "released" functionality that way rather than what may be an interim state in the latest code in the repository.

You can install it this way using: ansible-galaxy install IBM.infosvr

(This will create the role with the appropriate name for you on your system.)

You'll still want to create an inventory defining your environments' hosts, and will probably want to override some of the variables in the main.yml. Both of these activities can be done without modifying anything in the base role itself. I've written a very brief tutorial on these aspects here which might help: https://cmgrote.github.io/ansible-tutorial/

(ie. to override variables I would suggest making use of a group_vars/all.yml file relative to where your playbook is defined.)

Finally, don't forget that the role is only a role -- not a playbook. You need to define your own playbook that uses the role, like the example provided in the README: https://github.com/IBM/ansible-role-infosvr#example-playbook

wangadae commented 4 years ago

Hi cmgrote

Thanks a lot for your response......

Is it possible to write a DataStage Playbook with response file of DataStage to do silent installation in a every New VM's? because right now i am using sample response file for DS silent installation in a New VM facing many issues....

udaybit45 commented 3 years ago

Hi All,

I am new to IIS and Ansible and would like to Automate ( DevOps ) using this. Can some one please guide me how we can run this playbook and what all configuration/directory, path etc i have to create and where to create and place inside ansible installed directory.

So far i have done below

  1. Created/updated main.yml and all the path ( media and installation ) has been provided correctly.
  2. Created Play book for ansible
  3. Modified hosts for expected inventory which was required

but when i m running the playbook i m getting error and not sure what all path/folder and files where i have to keep. group_vars/all.yml where we can find this and is this inside ansible-role-infosvr-master\tasks\install

A complete setup guide will be highly appreciated.

Thanks

Ramnikov commented 3 years ago

Hi @udaybit45, a bit to late but you need to mention the error that you are getting.

With regards Andrew