-
Notifications
You must be signed in to change notification settings - Fork 244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Host not matched #59
Comments
Hello, According to the error message it is an issue with the assert clause in orahost main task file. Concerning the "host not matched" problem, you should either create a group named after hosts key value(orafs) in your inventory file (/etc/ansible/hosts) or change the hosts key value in single-instance-db-on-fs.yml playbook to match the group you're IP belongs. Example: /etc/ansible/hosts:[my group] <<<======= single-instance-db-on-fs.yml:
(DO NOT specifiy a group containing production hosts for tests :p) |
Thank you so much for reply..But I get different issue now... [DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and make sure become_method is 'sudo' (default). This feature will be removed in version 2.6. Deprecation warnings PLAY [Host configuration] ******************************************************************************************************************************************************************* TASK [Gathering Facts] ********************************************************************************************************************************************************************** PLAY RECAP ********************************************************************************************************************************************************************************** real 0m20.043s The below is the one i have added as per suggestion in hosts file But I am able to login to this aws instance via putty ...where i have given ppk file for authentication.. any specific changes we need to in this case ? |
Hi, First of all, thanks for trying this out! Much appreciated. Secondly, you'd also have to change this in |
thank you so much oravit for response.. Now i have done the change to ec2-user in that yml ran it... I still see this issue ... is any specific thing that we need to connect ec2instance from our playbook ? how ever i am running this playbook from from same host 1.2.3.202. The authenticity of host '1.2.3.202 ('1.2.3.202)' can't be established. sorry to trouble you... when i tried different repos, this one i feel to be more robust one...to install |
HI,
and call the playbook like this: Both of these options work fine. |
Hi buddy, Thank you very much ..some luck now.. I followed option 2...connection issue resolved...it started next... but now playbook stopped at below section PLAY RECAP ********************************************************************************************************************************************************************************** "No package matching 'compat-libstdc++-33' found available, installed or updated"]} and also I would like to contribute to make read.md better with steps so that it can help others as well :) |
You don't have to do anything manually, the playbooks will take care of it. Not sure why the package can't be found. You said this was a RHEL system, correct? Do you think you could give me your aws region and the ami-id you're using? It makes it easier to debug. Sorry this didn't work out of the box, I'll fix it though. |
Hi Next, to solve this, again I have installed yum install firewalld from command line. I think we need to add this also to playbook functionality so that it will automatically installed packages which is not available " Again re-ran playbook... I will keep you posted on my progress...what ever the fixes i have done manually, I think play book has to validate based on error message and initiate remedial action...so that we can make this solution a great one. However thanks for your wonderful solution though and thanks a lot for solution.... I am using us-east-2 as region ami id is RHEL-7.5_HVM_GA-20180322-x86_64 any thoughts ? thanks for your help |
Ok - that looks like the same AMI I'm using. So, re the firewalld issue: This is an issue that I've not run into before (or accounted for), where firewalld is not installed (I don't think I've ever come across such a system before). There are 2 options here:
Typically, I test my code on EL systems with a vanilla 'minimal' or 'core' installation-base and then firewalld (and a lot of other packages) are always a part of that installation. Re: The memory error: You need ~3-4GB for Oracle to work reliably, so a bigger instance type should fix that error (t2.medium usually works fine. It will not be a performance beast, but it'll get you a DB at least) Re: Packages, if I added enable-repo=* to the yum module, it also fixed the problem. Will see how to fix this. I have not had to do this for earlier version of EL7, so not sure what has changed.... As for the playbook failing: |
Thank for detailed reply.... concur with your views.. i understand challenges to make it out of box (hopefully possible).. I am waiting for better larger instance to check out...I shall keep you posted... Thanks for answering all the questions I have... ...keep you posted |
- Fixes "No package matching 'compat-libstdc++-33' found available, installed or updated" for RHEL7 - Fixes "Could not find firewalld ", when the firewalld package is not installed
A comment regarding RHEL7. Is it possible that AMI has a similar repository in disabled mode? I think it is expected, that this repo is disabled on AMI, when that OS is comaptible against RHEL7. |
Setting enablerepo=* is how I've solved it. 19cf908 |
Update: |
Fail if user could not be deleted
common: added python3 + python3-pip to packagelist of OL8
Hi Experts,
I am having issues running this play book. As per instruction, by default without chaning any parameters one can install oracle db 12.12
Steps I have followed:
Tried to run playbook I got below issue
[ec2-user@ip-1-2-3-4 ansible-oracle]$ time ansible-playbook single-instance-db-on-fs.yml
[DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and make sure become_method is 'sudo' (default). This feature will be removed in version 2.6. Deprecation warnings
can be disabled by setting deprecation_warnings=False in ansible.cfg.
[WARNING]: While constructing a mapping from /home/ec2-user/ansible-oracle/roles/orahost/tasks/main.yml, line 6, column 7, found a duplicate dict key (that). Using last defined value
only.
[WARNING]: Could not match supplied host pattern, ignoring: orafs
PLAY [Host configuration] *******************************************************************************************************************************************************************
skipping: no hosts matched
PLAY [Database Server Installation & Database Creation] *************************************************************************************************************************************
skipping: no hosts matched
PLAY RECAP **********************************************************************************************************************************************************************************
real 0m0.978s
user 0m0.830s
sys 0m0.144s
can some on help me...i did not change any thing..in any file...but i am getting this error
please help
The text was updated successfully, but these errors were encountered: