Architecting, installing and maintaining your SAS environment

ansible-playbook -i inventory-name-filesystem-assessment.yml is giving error

Accepted Solution Solved
Reply
Contributor
Posts: 46
Accepted Solution

ansible-playbook -i inventory-name-filesystem-assessment.yml is giving error

Hi,

 

I have started deploying sas viya 3.2.

 

After uploading sas_viya_playbook.tgz and unpacking it, I had run this  ansible-playbook -i inventory-name-filesystem-assessment.yml to make sure that all pre-requisites are satisfied. But, while running this, I am getting error as: must specify the playbook file to run.

 

Could yoy plaese help me on this, I just got stuck here. Thanks!!


Accepted Solutions
Solution
2 weeks ago
SAS Employee
Posts: 318

Re: ansible-playbook -i inventory-name-filesystem-assessment.yml is giving error

Posted in reply to JuanS_OCS

@AmitSri,

 

Yes, I agree with @JuanS_OCS, we are not distributing such YML file in Ansible Playbook for SAS Viya. 

View solution in original post


All Replies
Contributor
Posts: 46

Re: ansible-playbook -i inventory-name-filesystem-assessment.yml is giving error

Can anyone suggest me on this please.
Trusted Advisor
Posts: 1,427

Re: ansible-playbook -i inventory-name-filesystem-assessment.yml is giving error

[ Edited ]

Hello @AmitSri,

 

shall I understand you are running this yml file that is not actually part of the sas-viya-playbook but one customized on your own?

If it is a SAS script, please share. If it is not, it will be harder for us to find the reason, but we can give it a try.

 

However: are you on the right path to this yml file when you call the ansible command?

Solution
2 weeks ago
SAS Employee
Posts: 318

Re: ansible-playbook -i inventory-name-filesystem-assessment.yml is giving error

Posted in reply to JuanS_OCS

@AmitSri,

 

Yes, I agree with @JuanS_OCS, we are not distributing such YML file in Ansible Playbook for SAS Viya. 

Contributor
Posts: 46

Re: ansible-playbook -i inventory-name-filesystem-assessment.yml is giving error

Ohh Great!! even I couldnt find such file in the playbook. strange that, how did it run for the first time.


However, before going to run the deploymant script, Can I run any script that just checks for the pre-rquisites satisfactory. For, eg: can I run system-assessment.yml?
Contributor
Posts: 46

Re: ansible-playbook -i inventory-name-filesystem-assessment.yml is giving error

Posted in reply to JuanS_OCS
Thanks for the response Juan.

I ahve not prepared any customised script for this. I just had run it that was given in the deployment guide. And before running this, I didnot check if such script file is existing in the playbook or not. However, it had run and gave the result as fail due to ansible version is more than 2.3. I have now doen graded ansible to 2.2.1 and trying to run the script. but its asking to provide the playbook file to run. when I search for this file, such file doesnot exist in the playbook. I am just wondering, how did it run for the first time amd why not now. I have not removed any files from the playbook.
SAS Employee
Posts: 318

Re: ansible-playbook -i inventory-name-filesystem-assessment.yml is giving error

[ Edited ]

@AmitSri,

 

I see what you are trying to do. Please use this command:

 

ansible-playbook -i <inventory-file-name> system-assessment.yml

Do not forget to add a space before system-assessment.yml

Trusted Advisor
Posts: 1,427

Re: ansible-playbook -i inventory-name-filesystem-assessment.yml is giving error

Nice @alexal

 

This YML file is being run on the site.yml chain, either way, before any run, correct?

SAS Employee
Posts: 318

Re: ansible-playbook -i inventory-name-filesystem-assessment.yml is giving error

Posted in reply to JuanS_OCS

@JuanS_OCS,

 

 

We recommend running system-assessment.yml before site.yml. This called pre-deployment validation.

Contributor
Posts: 46

Re: ansible-playbook -i inventory-name-filesystem-assessment.yml is giving error

okay.. But, what is an inventory-file-name.
SAS Employee
Posts: 318

Re: ansible-playbook -i inventory-name-filesystem-assessment.yml is giving error

@AmitSri,


host_local or hosts. Depends on the type of your deployment.

Contributor
Posts: 46

Re: ansible-playbook -i inventory-name-filesystem-assessment.yml is giving error

I had run it and got an error as below: (from deployment.log)

TASK [Report if a host participating in the deployment is missing the sas_vars dictionary] ***
fatal: [deployTarget]: FAILED! => {"changed": false, "failed": true, "failed_when_result": true, "msg": "The following host(s) are missing the required sas_vars dictionary: set(). See deployment.log for details."}

NO MORE HOSTS LEFT *************************************************************

PLAY RECAP *********************************************************************
deployTarget : ok=10 changed=0 unreachable=0 failed=1
localhost : ok=4 changed=0 unreachable=0 failed=0
SAS Employee
Posts: 318

Re: ansible-playbook -i inventory-name-filesystem-assessment.yml is giving error

@AmitSri,

 

That's correct. You can't just run playbook using those inventory files. You have to edit them first, please see chapter "Edit the Inventory File" in SAS® Viya™ 3.2: Deployment Guide.

Contributor
Posts: 46

Re: ansible-playbook -i inventory-name-filesystem-assessment.yml is giving error

I have edited them. I only had to edit vars.yml where I have given my odbc config, and cas_cache location. thats it.
Contributor
Posts: 46

Re: ansible-playbook -i inventory-name-filesystem-assessment.yml is giving error

deployment.log

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 22 replies
  • 238 views
  • 9 likes
  • 3 in conversation