ansible-mysql/tasks/install/percona/upstream.yml

22 lines
909 B
YAML
Raw Normal View History

---
# We prevent double include
- name: INCLUDE | Add percona APT repository
include: apt.yml
when: not mysql_use_percona_repository
- name: SET_FACT | We use percona repository
set_fact: mysql_use_percona_repository=true
2015-07-13 17:32:49 +07:00
- name: DEBCONF | Prepare MySQL silent installation (root password)
debconf: name='percona-server-server-{{ percona_version }}' question='percona-server-server/root_password' vtype='password' value='{{ mysql_root_password }}'
when: not mysql_exists.stat.exists
2015-07-13 17:32:49 +07:00
- name: DEBCONF | Prepare MySQL silent installation (root password)
debconf: name='percona-server-server-{{ percona_version }}' question='percona-server-server/root_password_again' vtype='password' value='{{ mysql_root_password }}'
when: not mysql_exists.stat.exists
- name: APT | Install Percona
apt: update_cache=yes cache_valid_time=3600 pkg='percona-server-server-{{ percona_version }}' state=latest