Skip to content

Commit

Permalink
Remove jinja predicates from barman setup validation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ianvdl committed Apr 18, 2024
1 parent 9cea7dd commit ae141cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/setup_barman/tasks/validate_setup_barman.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
- name: Check if backup server has been configured correctly.
ansible.builtin.assert:
that:
- barman_list_server_res.stdout_lines is search('{{ primary_inventory_hostname }}')
- barman_list_server_res.stdout_lines is search(primary_inventory_hostname)
fail_msg: "{{ primary_inventory_hostname }} backup server was not configured correctly."
success_msg: "{{ primary_inventory_hostname }} backup server was configured correctly."
run_once: true
Expand All @@ -64,7 +64,7 @@
- name: Check if barman home directory has been configured correctly
ansible.builtin.assert:
that:
- barman_show_server_res.stdout_lines is search('{{ barman_home }}')
- barman_show_server_res.stdout_lines is search(barman_home)
fail_msg: "{{ barman_home }} directory was not configured correctly"
success_msg: "{{ barman_home }} directory was configured correctly"
run_once: true
Expand Down

0 comments on commit ae141cc

Please sign in to comment.