• LastoftheDinosaurs@walledgarden.xyz
    link
    fedilink
    English
    arrow-up
    0
    ·
    6 months ago

    vars.yml is looking for a directory and file that don’t exist, and the readme doesn’t mention creating them. If you set postgres_password manually, it should work.

    • PriorityMotif@lemmy.worldOP
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      6 months ago

      Thank you for the answer. should the password be in quotes?

      postgres_password: "{{ lookup('password', 'inventory/host_vars/{{ domain }}/passwords/postgres.psk chars=ascii_letters,digits') }}" # noqa yaml[line-length]

      postgres_password: "password"

      • asudox@lemmy.asudox.dev
        link
        fedilink
        arrow-up
        0
        ·
        6 months ago

        I’d say prefer single quotes for passwords as your password might have some special characters. Single quotes are raw strings, so nothing is escaped.