Skip to content

Commit

Permalink
vip-manager: do not install in check mode (#467)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitabaks authored Sep 13, 2023
1 parent 22eb132 commit cb2bae2
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions roles/vip-manager/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@
delay: 5
retries: 3
when: ansible_os_family == "RedHat"
when: installation_method == "repo" and vip_manager_package_repo | length > 0
when:
- installation_method == "repo"
- vip_manager_package_repo | length > 0
- not ansible_check_mode
- not postgresql_cluster_maintenance | default(false) | bool
tags: vip, vip_manager, vip_manager_install

- block: # install vip-manager package from file
Expand Down Expand Up @@ -62,7 +66,11 @@
delay: 5
retries: 3
when: ansible_os_family == "RedHat"
when: installation_method == "file" and vip_manager_package_file | length > 0
when:
- installation_method == "file"
- vip_manager_package_file | length > 0
- not ansible_check_mode
- not postgresql_cluster_maintenance | default(false) | bool
tags: vip, vip_manager, vip_manager_install

- name: Make sure the conf directory "{{ vip_manager_conf | dirname }}" exist
Expand Down

0 comments on commit cb2bae2

Please sign in to comment.