Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add apt_cache_server option without this option machines with apt_cache_server repos will create duplicate sources and cause the apt update module to fail #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
@@ -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.
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
@@ -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
@@ -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