mysql-oracle: Add repo.mysql.com to minifw if needed

This commit is contained in:
Ludovic Poujol 2018-03-02 15:49:47 +01:00
parent 3488ec758d
commit 77cc1cce7d
2 changed files with 11 additions and 0 deletions

View file

@ -17,3 +17,5 @@
- name: reload systemd
command: systemctl daemon-reload
- name: Restart minifirewall
command: /etc/init.d/minifirewall restart

View file

@ -14,6 +14,15 @@
state: installed
register: mysql_apt_config_deb
- name: Open firewall for MySQL.com repository
replace:
name: /etc/default/minifirewall
regexp: "^(HTTPSITES='((?!(repo\\.mysql\\.com|0\\.0\\.0\\.0)).)*)'$"
replace: "\\1 repo.mysql.com'"
notify: Restart minifirewall
- meta: flush_handlers
- name: APT cache is up-to-date
apt:
update_cache: yes