Skip to content
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

Please set execute bit on mysqltuner.pl #531

Closed
Halfwalker opened this issue Jan 27, 2021 · 0 comments · Fixed by #533 or #534
Closed

Please set execute bit on mysqltuner.pl #531

Halfwalker opened this issue Jan 27, 2021 · 0 comments · Fixed by #533 or #534

Comments

@Halfwalker
Copy link

mysqltuner.pl is an awesome tool. I have it as a standard pull in my ansible playbooks that do anything with mysql/mariadb. I git clone it down to /opt and then create a symlink from /usr/local/bin. The only hassle is that from the repo mysqltuner.pl is not executable.

Not a problem, easy enough to set. Except that now ansible barfs, thinking the repo has changed locally. Have to set the ignore_errors: yes on the task, so it always shows a change in a playbook run.

102   - name: Fetch mysqltuner.pl                                                   
103     git:                                                                        
104       repo: https://github.com/rackerhacker/MySQLTuner-perl.git                 
105       dest: /opt/mysqltuner                                                 
106     ignore_errors: yes                                                          
107                                                                                 
108   - name: Link mysqltuner.pl to /usr/local/bin                                  
109     file:                                                                       
110       src: /opt/mysqltuner/mysqltuner.pl                                    
111       path: /usr/local/bin/mysqltuner.pl                                        
112       state: link                                                               
113       mode: u=rwx,g=rx,o=rx                                                     

If it was already mode 755, the mode wouldn't have to set, and things would be ... cleaner :)

grooverdan added a commit to grooverdan/MySQLTuner-perl that referenced this issue Jan 28, 2021
grooverdan added a commit to grooverdan/MySQLTuner-perl that referenced this issue Jan 28, 2021
grooverdan added a commit to grooverdan/MySQLTuner-perl that referenced this issue Jan 28, 2021
grooverdan added a commit to grooverdan/MySQLTuner-perl that referenced this issue Jan 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant