diff --git a/.travis.yml b/.travis.yml index 17a8f6c..e7b7e53 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,7 @@ python: "2.7" env: - ANSIBLE_VERSION=latest + - ANSIBLE_VERSION=2.5.1 - ANSIBLE_VERSION=2.5.0 - ANSIBLE_VERSION=2.4.4.0 - ANSIBLE_VERSION=2.4.3.0 diff --git a/Vagrantfile b/Vagrantfile index 640b861..0697955 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -39,6 +39,13 @@ boxes = [ :cpu => "50", :ram => "256" }, + { + :name => "debian-9", + :box => "bento/debian-9", + :ip => '10.0.0.16', + :cpu => "50", + :ram => "256" + }, ] Vagrant.configure("2") do |config| diff --git a/meta/main.yml b/meta/main.yml index e2a6fbe..eb7095d 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -16,6 +16,7 @@ galaxy_info: versions: - wheezy - jessie + - stretch galaxy_tags: - system - database diff --git a/tasks/repository.yml b/tasks/repository.yml index 5f0f482..934cf6e 100644 --- a/tasks/repository.yml +++ b/tasks/repository.yml @@ -1,5 +1,18 @@ # tasks file for percona-client --- +- name: repository | install | dependencies + apt: + name: "{{ item }}" + state: "{{ apt_install_state | default('latest') }}" + update_cache: true + cache_valid_time: "{{ apt_update_cache_valid_time | default(3600) }}" + with_items: + - dirmngr + when: ansible_distribution == 'Debian' and ansible_distribution_version | version_compare('9.0', '>=') + tags: + - percona-client-repository-install + - percona-client-repository-install-dependencies + - name: repository | add public key apt_key: id: 9334A25F8507EFA5 diff --git a/vars/main.yml b/vars/main.yml index 401a824..e0efe9a 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -3,6 +3,7 @@ percona_client_versions_supported: - '5.5' - '5.6' + - '5.7' percona_client_repositories: - type: deb