diff --git a/tasks/main.yml b/tasks/main.yml index 1caec13a452805e19a911644c86dc0d8c91c4fed..bc3f061d24cc4eee5bdc86647bf2654959d1c576 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -11,6 +11,7 @@ with_items: - mysql-server/root_password - mysql-server/root_password_again + register: mysql_debconf - name: apt install apt: @@ -24,6 +25,10 @@ - python-mysqldb - 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 copy: src: backup.sh