Skip to content

Commit

Permalink
postgres: fix docker tag validation indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed Sep 30, 2024
1 parent b6b74f3 commit 4deed3f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions roles/postgres/tasks/main2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@
ansible.builtin.debug:
msg: "The current PostgreSQL version is {{ postgres_major_version }}"

- name: Validate Docker tag version
ansible.builtin.assert:
that:
- postgres_docker_tag_major_version is regex("^[0-9]+$")
fail_msg: "Invalid version specified for 'postgres_docker_image_tag': {{ postgres_docker_image_tag }}"
success_msg: "Valid version specified for 'postgres_docker_image_tag': {{ postgres_docker_image_tag }}"
- name: Validate Docker tag version
ansible.builtin.assert:
that:
- postgres_docker_tag_major_version is regex("^[0-9]+$")
fail_msg: "Invalid version specified for 'postgres_docker_image_tag': {{ postgres_docker_image_tag }}"
success_msg: "Valid version specified for 'postgres_docker_image_tag': {{ postgres_docker_image_tag }}"

- name: Upgrade PostgreSQL
when: stat_postgres_path.stat.exists and (postgres_major_version != postgres_docker_tag_major_version)
Expand Down

0 comments on commit 4deed3f

Please sign in to comment.