Skip to content

Commit

Permalink
* Improved "update_cache" mechanism
Browse files Browse the repository at this point in the history
* Adding additional dependency package (xz-utils)
  • Loading branch information
timorunge committed Sep 25, 2018
1 parent c0fb253 commit f43d9c9
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package:
name: "{{ proxysql_dependency_pkgs }}"
state: present
update_cache: yes
update_cache: "{{ omit if ((ansible_pkg_mgr == 'dnf') and (ansible_version is version('2.7', '<'))) else 'yes' }}"
when: proxysql_dependency_pkgs

- name: Install pip dependency packages
Expand All @@ -17,7 +17,7 @@
package:
name: "{{ proxysql_pkgs }}"
state: present
update_cache: yes
update_cache: "{{ omit if ((ansible_pkg_mgr == 'dnf') and (ansible_version is version('2.7', '<'))) else 'yes' }}"
when: proxysql_use_official_repo

- name: Install ProxySQL from DEB package
Expand Down
1 change: 1 addition & 0 deletions vars/Debian-Debian-8.10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ proxysql_pkg_url: "{{ proxysql_download_url }}/v{{ proxysql_version }}/{{ proxys
proxysql_dependency_pkgs:
- mysql-client
- python-mysqldb
- xz-utils

# Type: List
proxysql_pip_dependency_pkgs: []
1 change: 1 addition & 0 deletions vars/Debian-Debian-9.4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ proxysql_pkg_url: "{{ proxysql_download_url }}/v{{ proxysql_version }}/{{ proxys
proxysql_dependency_pkgs:
- mysql-client
- python-mysqldb
- xz-utils

# Type: List
proxysql_pip_dependency_pkgs: []
1 change: 1 addition & 0 deletions vars/Debian-Ubuntu-14.04.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ proxysql_pkg_url: "{{ proxysql_download_url }}/v{{ proxysql_version }}/{{ proxys
proxysql_dependency_pkgs:
- mysql-client
- python-mysqldb
- xz-utils

# Type: List
proxysql_pip_dependency_pkgs: []
1 change: 1 addition & 0 deletions vars/Debian-Ubuntu-16.04.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ proxysql_dependency_pkgs:
- libmysqlclient-dev
- mysql-client
- python-dev
- xz-utils

# Type: List
proxysql_pip_dependency_pkgs:
Expand Down
1 change: 1 addition & 0 deletions vars/Debian-Ubuntu-17.10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ proxysql_pkg_url: "{{ proxysql_download_url }}/v{{ proxysql_version }}/{{ proxys
proxysql_dependency_pkgs:
- mysql-client
- python-mysqldb
- xz-utils

# Type: List
proxysql_pip_dependency_pkgs: []
1 change: 1 addition & 0 deletions vars/Debian-Ubuntu-18.04.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ proxysql_dependency_pkgs:
- libssl1.0.0
- mysql-client
- python-mysqldb
- xz-utils

# Type: List
proxysql_pip_dependency_pkgs: []
1 change: 1 addition & 0 deletions vars/Debian-Ubuntu-18.10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ proxysql_dependency_pkgs:
- libssl1.0.0
- mysql-client
- python-mysqldb
- xz-utils

# Type: List
proxysql_pip_dependency_pkgs: []

0 comments on commit f43d9c9

Please sign in to comment.