Skip to content

Commit

Permalink
Not ansible_check_mode for import ssh_keys (#650)
Browse files Browse the repository at this point in the history
  • Loading branch information
SDV109 authored May 7, 2024
1 parent afc23b9 commit f59badf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions roles/pgbackrest/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,10 @@

# if 'pgbackrest_repo_host' or 'backup-standby' are specified
- ansible.builtin.import_tasks: ssh_keys.yml
when: (pgbackrest_repo_host is defined and pgbackrest_repo_host | length > 0) or
(pgbackrest_conf.global | selectattr('option', 'equalto', 'backup-standby') | map(attribute='value') | list | last | default('') == 'y')
when:
- (pgbackrest_repo_host is defined and pgbackrest_repo_host | length > 0) or
(pgbackrest_conf.global | selectattr('option', 'equalto', 'backup-standby') | map(attribute='value') | list | last | default('') == 'y')
- not ansible_check_mode
tags: pgbackrest, pgbackrest_ssh_keys

- ansible.builtin.import_tasks: cron.yml
Expand Down

0 comments on commit f59badf

Please sign in to comment.