Skip to content

Commit a5db23b

Browse files
committed
fix extra playbook run condition
1 parent 474d35d commit a5db23b

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

pgsql-createdb.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# Ctime : 2021-02-27
66
# Mtime : 2021-02-27
77
# Desc : create database on running cluster
8+
# Deps : templates/pg-db.sql
89
# Path : pgsql-createdb.yml
910
# Copyright (C) 2018-2021 Ruohang Feng
1011
#==============================================================#
@@ -37,7 +38,6 @@
3738
# pre-flight check: validate pg_database and database definition
3839
# ------------------------------------------------------------------------------
3940
- name: Preflight
40-
when: pg_role == 'primary'
4141
block:
4242
- name: Check parameter pg_database
4343
connection: local

pgsql-createuser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# Mtime : 2021-02-27
77
# Desc : create user on running cluster
88
# Path : pgsql-createuser.yml
9+
# Deps : templates/pg-user.sql
910
# Copyright (C) 2018-2021 Ruohang Feng
1011
#==============================================================#
1112

@@ -38,7 +39,6 @@
3839
# pre-flight check: validate pg_user and user definition
3940
# ------------------------------------------------------------------------------
4041
- name: Preflight
41-
when: pg_role == 'primary'
4242
block:
4343
- name: Check parameter pg_user
4444
connection: local

pgsql-monitor.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
# File : pgsql-monitor.yml
55
# Ctime : 2021-02-23
66
# Mtime : 2021-02-27
7-
# Desc : monitor-only mode init
7+
# Desc : deploy monitor components only
88
# Path : pgsql-monitor.yml
9+
# Deps : templates/{target,targets}.sql
910
# Copyright (C) 2018-2021 Ruohang Feng
1011
#==============================================================#
1112

0 commit comments

Comments
 (0)