Skip to content
Snippets Groups Projects
Commit d5729b6d authored by Corné Lukken's avatar Corné Lukken
Browse files

L2SS-983: Verify dsconfig changes in deploy

parent fd79e578
No related branches found
No related tags found
1 merge request!469L2SS-983: Deployment through environments and ansible
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment