Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ If **sqldebug** is true this playbook will configure Percona MySQL with slow que

If **create_app_db** is true this playbook will configura an application database, you can set a path for a SQL dump file if you want to restore data in the new application database

*apt_cache_server* can be set to an apt-cacher service to change the apt-repository

apt_cache_server: "192.168.1.254:3142/"

## Dependencies

None.
Expand Down
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ db_user: myuser
db_user_password: anotherreallylongpassword
db_host: "%"
db_dump_file: ""
apt_cache_server: ""
4 changes: 2 additions & 2 deletions tasks/repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
state=present

- name: Adding percona repository
apt_repository: repo='deb http://repo.percona.com/apt {{ ansible_distribution_release }} main'
apt_repository: repo='deb http://{{apt_cache_server}}repo.percona.com/apt {{ ansible_distribution_release }} main'
state=present

- name: Adding percona source repository
apt_repository: repo='deb-src http://repo.percona.com/apt {{ ansible_distribution_release }} main'
apt_repository: repo='deb-src http://{{apt_cache_server}}repo.percona.com/apt {{ ansible_distribution_release }} main'
state=present

- name: Update apt cache
Expand Down