Skip to content

Commit 3105cf3

Browse files
committed
optimized playbooks
1 parent 64251c7 commit 3105cf3

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

Ansible/percona-pmm/pmm_postgresql.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -118,16 +118,13 @@
118118

119119
# Add PostgreSQL service to PMM
120120
- name: Add PostgreSQL to PMM
121-
ansible.builtin.command: >
122-
pmm-admin add postgresql
123-
--username={{ pmm_postgresql_user }}
124-
--password={{ pmm_postgresql_password }}
125-
--server-url=https://{{ pmm_server_username }}:{{ admin_password }}@{{ pmm_server_address }}
126-
--server-insecure-tls
121+
ansible.builtin.shell: |
122+
pmm-admin add postgresql \
123+
--username={{ pmm_postgresql_user }} \
124+
--password={{ pmm_postgresql_password }} \
125+
--server-url=https://{{ pmm_server_username }}:{{ admin_password }}@{{ pmm_server_address }} \
126+
--server-insecure-tls \
127127
--service-name={{ inventory_hostname }}-postgresql
128-
--host={{ ansible_host }}
129-
--port=5432
130-
--force
131128
args:
132129
executable: /bin/bash
133130
register: pmm_add_service_output

0 commit comments

Comments
 (0)