Hi, 

I'm trying to install ansible tower version of 3.2.3-1.el7.x86_64 on a 
redhat 7.4 OS. 

i'm getting error as 

TASK [postgres : create the postgres user and set the password] 
*****************************************************************************************************
********************************************************************************************
fatal: [localhost]: FAILED! => {"censored": "the output has been hidden due 
to the fact that 'no_log: true' was specified for this result"}
to retry, use: --limit @/root/ansible-tower-setup-3.2.3/install.retry


if i commented no_log under roles/postgres/tasks/conf.yml then it thows an 
error as 

TASK [postgres : create the postgres user and set the password] 
*******************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "Sorry, 
user root is not allowed to execute '/bin/sh -c echo 
BECOME-SUCCESS-hqgjipvuthznqdqntxibmxnvjefrifob; /usr/bin/python 
/tmp/ansible-tmp-1519939005.94-29424015426397/postgresql_user.py' as 
postgres on nke-lnx-dis-d108.\n", "module_stdout": "", "msg": "MODULE 
FAILURE", "rc": 1}
to retry, use: --limit @/root/ansible-tower-setup-3.2.3/install.retry


in roles/postgres/tasks/conf.yml file i have commented no_log and rerun the 
setup.sh script.

- name: create the postgres user and set the password
  postgresql_user:
    name: "{{ postgres_username }}"
    password: "{{ postgres_password }}"
  become: True
  become_user: postgres
  when: "postgres_username is defined and postgres_username != '' and 
postgres_password is defined and postgres_password != ''"
  #no_log: True


Kindly help me how to fix this

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/cf79bcf4-ae80-41a6-946d-c043ab0382db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to