a-chernykh / railsbox

Fast and easy Ruby on Rails virtual machines
https://railsbox.io
MIT License
320 stars 52 forks source link

Postgres sudo #53

Open elfassy opened 8 years ago

elfassy commented 8 years ago
TASK [postgresql : Create postgresql user] *************************************
fatal: [....]: FAILED! => {"changed": false, "failed": true, "module_stderr": "", "module_stdout": "sudo: a password is required\r\n", "msg": "MODULE FAILURE", "parsed": false}

any idea what i'm missing?

- name: Create postgresql user
  postgresql_user: name={{ postgresql_db_user }} password={{ postgresql_db_password }} role_attr_flags=CREATEDB,SUPERUSER,CREATEROLE
  sudo_user: '{{ postgresql_admin_user }}'

thanks