Skip to content

Commit

Permalink
Debug CI
Browse files Browse the repository at this point in the history
  • Loading branch information
spetrosi committed May 12, 2022
1 parent 9a66932 commit 48127f2
Show file tree
Hide file tree
Showing 12 changed files with 46 additions and 744 deletions.
46 changes: 46 additions & 0 deletions tasks/main.yml
Expand Up @@ -51,11 +51,57 @@
'synchronous', 'witness', 'absent'
when: mssql_ha_configure | bool

- debug:
var: ansible_play_hosts_all

- debug:
var: ansible_play_hosts_all |
map('extract', hostvars, 'mssql_ha_replica_type')

- debug:
var: ansible_play_hosts_all |
map('extract', hostvars, 'mssql_ha_replica_type') |
list

- debug:
var: ansible_play_hosts_all |
map('extract', hostvars, 'mssql_ha_replica_type') |
select('match', '^primary$')

- debug:
var: ansible_play_hosts_all |
map('extract', hostvars, 'mssql_ha_replica_type') |
select('match', '^primary$') |
list

- debug:
var: ansible_play_hosts_all |
map('extract', hostvars, 'mssql_ha_replica_type') |
list |
select('match', '^primary$') |
list

- debug:
var: ansible_play_hosts_all |
map('extract', hostvars, 'mssql_ha_replica_type') |
select('match', '^primary$') |
list |
length == 1

- debug:
var: ansible_play_hosts_all |
map('extract', hostvars, 'mssql_ha_replica_type') |
list |
select('match', '^primary$') |
list |
length == 1

- name: Verify that 'mssql_ha_replica_type = primary' is provided once
assert:
that: ansible_play_hosts_all |
map('extract', hostvars, 'mssql_ha_replica_type') |
select('match', '^primary$') |
list |
length == 1
fail_msg: >-
You must set the mssql_ha_replica_type variable to 'primary' for one of
Expand Down
25 changes: 0 additions & 25 deletions tests/tests_accept_eula_2019.yml

This file was deleted.

20 changes: 0 additions & 20 deletions tests/tests_default_2019.yml

This file was deleted.

99 changes: 0 additions & 99 deletions tests/tests_idempotency_2017.yml

This file was deleted.

97 changes: 0 additions & 97 deletions tests/tests_idempotency_2019.yml

This file was deleted.

47 changes: 0 additions & 47 deletions tests/tests_include_vars_from_parent_2019.yml

This file was deleted.

35 changes: 0 additions & 35 deletions tests/tests_input_sql_file_2019.yml

This file was deleted.

0 comments on commit 48127f2

Please sign in to comment.