mysql-oracle: Add repo.mysql.com to minifw if needed
This commit is contained in:
parent
3488ec758d
commit
77cc1cce7d
|
@ -17,3 +17,5 @@
|
|||
- name: reload systemd
|
||||
command: systemctl daemon-reload
|
||||
|
||||
- name: Restart minifirewall
|
||||
command: /etc/init.d/minifirewall restart
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue