-
Notifications
You must be signed in to change notification settings - Fork 70
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
Root password tasks not working well on localhost #20
Comments
my hosts file is
|
Setting |
Trying to find a better way @ http://stackoverflow.com/questions/26200653/force-ansible-hostname-value-or-check-ansible-target-is-localhost |
seems |
Yeah, inventory_hostname looks like the way to go with the condition to me. |
I have the same problem, what would be the solution?
I've tried it and it didn't help :-( |
HI @rstormsf this is a change for the role itself, setting in the host file isnt it. |
Still not quite understand how to fix it. |
Anything on this, im getting this when trying to run inside a container |
Another discovery... I can ping my |
For those looking for a fix, what I did was add a |
I think the problem really is with ansible_hostname |
Good find, perhaps the role should start using that, might even negate the need to do different things on local... |
Ive changed to inventory_hostname and it reacts better now, but im still getting an error:
|
I've got the same problem where MariaDB has already been installed. Will this create an issue and if so should I remove MariaDB and re-install ./rd-installer? By the way, I cannot remove MariaDB as I get the following error: I'm on Centos 7.3, so I also tried: My .cnf file looks like this: Disabling symbolic-links is recommended to prevent assorted security riskssymbolic-links=0 Settings user and group are ignored when systemd is used.If you need to run mysqld under a different user or group,customize your systemd unit file for mariadb according to theinstructions in http://fedoraproject.org/wiki/Systemd[mysqld_safe] include all files from the config directory!includedir /etc/my.cnf.d sql_mode=IGNORE_SPACE,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION |
This is on LXLE which is based on ubuntu 14.04.1
The first time I run the task, I get
Which means the second time I get
This works fine on a remote system.
As I write this (:P), I notice that the first Item is
"item": "KarthikT-OptiPlex-GX620
which I believe was the name set by the ubuntu/lxle installer..This would mean that it is picking the wrong task of the two tasks
Set the root password.
intasks/secure.yml
. First fix would be to name them differently based on their use (localhost vs remote perhaps). And perhaps a better check is needed rather thanwhen: ansible_hostname != 'localhost'
?This was repeatedly encountered, after purging mysql as shown in http://stackoverflow.com/questions/10853004/removing-mysql-5-5-completely. It is running the ansible galaxy version of the role.
The text was updated successfully, but these errors were encountered: