-
Notifications
You must be signed in to change notification settings - Fork 1
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
Service: Mysql #11
Comments
Password will be set only during first ansible run. On other runs it will fail and will be ignored. Question: |
On Saturday, November 1, 2014, dzydzany [email protected] wrote:
+55 (16) 98138-1582, +1 (415) 568-5854, skype: rxaviers |
All done, please test. |
I ran it. But, it fails.
Please, create PRs for each issue you implement. |
As AppArmor is installed and enabled in almost every Ubuntu installation, I've put a check, so if it is installed, reconfigure it, if not, do nothing. AppArmor in Ubuntu: |
After your update, AppArmor is getting skipped just fine. |
On mysql installation, it should require the password environment variable to be set otherwise to abort. Can that be implemented? |
Currently it works this way: If you enter password as environemnt variable, it set it during run, if you forgot to create variable, it wont setup password. If you run ansible again and enter variable, and pasword is not set up, it will set it during that second run. I can try to check if variable is defined, and abort or ask for password if you wish. |
The way you described it currently works is great. |
- Install MySL server and set password for root user from local environment variable. - Continue ansible run if mysql_user fails. Password is already configured at first run. - Remove debuging from mysql playbook and rename mysql password setup task. - Change mysql data folder setting, move mysql data folder and restart required service. - Cheack if apparmor is installed and reconfigure if it does. - Move mysql playbook to webservers section. - Change password variable to mysql_root_passwd. Fixes #11 Closes #35
Install
Use a password for root from
ENV['mysql_root_passwd']
.OBS: the above is interactive. Can we automate that using default answers?
Update
/etc/mysql/my.cnf
The text was updated successfully, but these errors were encountered: