1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to create database by Ansible with PostgreSQL?

Discussion in 'Programming/Internet' started by rawmain, Sep 16, 2020.

  1. rawmain

    rawmain Guest

    Use this task to create a database on CentOS by Ansible

    - name: Create repmgr database
    command: createdb -E UNICODE -l en_US.UTF-8 -T template0 repmgr -O repmgr
    become_user: postgres


    It will pending.

    Sometimes run the command on the server directly will also got pending.

    If restart PostgreSQL service will fix the issue. What's the problem?

    Login To add answer/comment
     

Share This Page