diff --git a/deploy/deploy.yml b/deploy/deploy.yml index 726f0c7a197746c6582c93a8efcbe9fd183d724a..5b525fc1ea0ce523368505508589f726a20e735c 100644 --- a/deploy/deploy.yml +++ b/deploy/deploy.yml @@ -57,11 +57,11 @@ shell: "make stop" args: chdir: "{{ default_install_path }}/docker-compose" - - name: Git Fetch All - changed_when: false - shell: "git fetch --all" - args: - chdir: "{{ default_install_path }}" +# - name: Git Fetch All +# changed_when: false +# shell: "git fetch --all" +# args: +# chdir: "{{ default_install_path }}" - name: Update Sources changed_when: false shell: "git checkout {{ station_version }}" @@ -91,11 +91,29 @@ shell: "./sbin/load_ConfigDb.sh CDB/LOFAR_ConfigDb.json" args: chdir: "{{ default_install_path }}" + - name: Get Base Database Config + changed_when: false + shell: "./sbin/load_ConfigDb.sh CDB/LOFAR_ConfigDb.json 2>&1" + register: base_dsconfig_result + args: + chdir: "{{ default_install_path }}" + - name: Verify Base Database Config + when: '"No changes needed" in base_dsconfig_result.stdout' + debug: msg="Base database changes stored" - name: Update Station Database Config changed_when: false shell: "./sbin/load_ConfigDb.sh CDB/stations/{{ station_config }}" args: chdir: "{{ default_install_path }}" + - name: Get Station Database Config + changed_when: false + shell: "./sbin/load_ConfigDb.sh CDB/stations/{{ station_config }} 2>&1" + register: station_dsconfig_result + args: + chdir: "{{ default_install_path }}" + - name: Verify Station Database Config + when: '"No changes needed" in station_dsconfig_result.stdout' + debug: msg="Station database changes stored" - name: Start Station changed_when: false shell: "make start"