Fixes for ansible tasks.

pull/1/head
Vladimir Protsenko 2 years ago
parent cd806af726
commit d8f6d05d45

@ -204,7 +204,7 @@ $ ansible-playbook main.yml -v
---
- hosts: cluster
vars:
- version: "6.0.0"
- version: "6.22.1"
- greenplum_admin_user: "gpadmin"
- greenplum_admin_password: "changeme"
become: yes
@ -255,7 +255,7 @@ $ ansible-playbook 2.yml
---
- hosts: cluster
vars:
- version: "6.0.0"
- version: "6.22.1"
- greenplum_admin_user: "gpadmin"
- greenplum_admin_password: "changeme"
become: yes
@ -278,7 +278,7 @@ $ ansible-playbook 2.yml
recurse: yes
with_items: "{{ installed_dir.files }}"
- name: add bin folder to gpadmin PATH
shell: echo "{{"
shell: echo "PATH={{ item.path }}/bin/:$PATH" >> /home/{{ greenplum_admin_user }}/.bashrc
with_items: "{{ installed_dir.files }}"
```
```
@ -291,7 +291,7 @@ $ ansible-playbook 3.yml
---
- hosts: cluster
vars:
- version: "6.0.0"
- version: "6.22.1"
- greenplum_admin_user: "gpadmin"
- greenplum_admin_password: "changeme"
become: yes
@ -318,11 +318,13 @@ $ ansible-playbook 4.yml
---
- hosts: cluster
vars:
- version: "6.0.0"
- version: "6.22.1"
- greenplum_admin_user: "gpadmin"
become: yes
become_user: {{ greenplum_admin_user }}
tasks:
- name: find installed greenplum version
shell: . /bin/postgres --gp-version
shell: postgres --gp-version
register: postgres_gp_version
- name: fail if the correct greenplum version is not installed
fail:

Loading…
Cancel
Save