Skip to content
Snippets Groups Projects
Commit 24bdf2da authored by nimrod's avatar nimrod
Browse files

Reconfigure when needed.

parent 2f2a847d
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
with_items: with_items:
- mysql-server/root_password - mysql-server/root_password
- mysql-server/root_password_again - mysql-server/root_password_again
register: mysql_debconf
- name: apt install - name: apt install
apt: apt:
...@@ -24,6 +25,10 @@ ...@@ -24,6 +25,10 @@
- python-mysqldb - python-mysqldb
- cron - cron
- name: Reconfigure (if needed)
when: mysql_debconf.changed
command: /usr/sbin/dpkg-reconfigure --frontend noninteractive mysql-server-5.5
- name: Add daily backup job - name: Add daily backup job
copy: copy:
src: backup.sh src: backup.sh
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment