Commit aba286b7 by arbabnazar

check the mysql 5.6 experiment is installed or not

parent 660c8256
--- ---
- name: Look for mysql 5.6 - name: Look for mysql 5.6
shell: dpkg -L mysql-server-5.6 shell: "dpkg -s mysql-server"
ignore_errors: yes ignore_errors: yes
register: mysql_56_installed register: mysql_56_installed
changed_when: no
- fail:
msg: "You have already installed the experimental MySQL 5.6 repo, Please first remove that"
when: "'5.6.14' in mysql_56_installed.stdout"
- include: mysql.yml - include: mysql.yml
when: mysql_56_installed.rc == 1 when: mysql_56_installed.rc == 1
\ No newline at end of file
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
apt: apt:
name: "{{ item }}" name: "{{ item }}"
install_recommends: yes install_recommends: yes
update_cache: yes
state: present state: present
with_items: mysql_debian_pkgs with_items: mysql_debian_pkgs
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment