Skip to content

Commit 7221005

Browse files
committed
chore(pgsql): update roles/pgsql/tasks/main.yml
move import of pg_hugepage.yml and grace_patroni_restart.yml at bottom
1 parent dff7b3e commit 7221005

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

roles/pgsql/tasks/main.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -55,21 +55,6 @@
5555
tags: [ patroni, pg_launch ]
5656
when: patroni_enabled|bool
5757

58-
#--------------------------------------------------------------#
59-
# pg hugepages [pg_hugepage]
60-
#--------------------------------------------------------------#
61-
- import_tasks: pg_hugepage.yml
62-
when: patroni_enabled|bool
63-
tags: [ patroni, pg_launch, pg_hugepage ]
64-
65-
#--------------------------------------------------------------#
66-
# patroni restart pg_cls gracefully [pt_restart]
67-
#--------------------------------------------------------------#
68-
- name: patroni restart pg_cls gracefully
69-
include_tasks: grace_patroni_restart.yml
70-
when: patroni_enabled|bool and (pt_restart is defined and pt_restart|bool)
71-
tags: [ patroni, pg_launch, pt_restart, pg_hugepage ]
72-
7358
#--------------------------------------------------------------#
7459
# Users [pg_user]
7560
#--------------------------------------------------------------#
@@ -161,6 +146,21 @@
161146
vars: { database: "{{ item }}" }
162147
with_items: "{{ pg_databases }}"
163148

149+
#--------------------------------------------------------------#
150+
# pg hugepages [pg_hugepage]
151+
#--------------------------------------------------------------#
152+
- import_tasks: pg_hugepage.yml
153+
when: patroni_enabled|bool
154+
tags: [ patroni, pg_launch, pg_hugepage ]
155+
156+
#--------------------------------------------------------------#
157+
# patroni restart pg_cls gracefully [pt_restart]
158+
#--------------------------------------------------------------#
159+
- name: patroni restart pg_cls gracefully
160+
include_tasks: grace_patroni_restart.yml
161+
when: patroni_enabled|bool and (pt_restart is defined and pt_restart|bool)
162+
tags: [ patroni, pg_launch, pt_restart, pg_hugepage ]
163+
164164
#--------------------------------------------------------------#
165165
# Summary [pg_done]
166166
#--------------------------------------------------------------#

0 commit comments

Comments
 (0)