Closed jbouzekri closed 3 months ago
Hi,
I have just tested your role but I am unable to install postgresql using it in my vagrant box.
I have the following error :
TASK [postgres : Set conf.d include in postgresql.conf] ************************ task path: /home/jobou/workspace/weenect-deployment/roles/postgres/tasks/main.yml:31 <weenect.dev> ESTABLISH SSH CONNECTION FOR USER: vagrant <weenect.dev> SSH: EXEC sshpass -d14 ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o User=vagrant -o ConnectTimeout=10 -o ControlPath=/home/jobou/.ansible/cp/ansible-ssh-%h-%p-%r -tt weenect.dev '( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1455389704.21-41942075870883 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1455389704.21-41942075870883 )" )' <weenect.dev> PUT /tmp/tmpU2yMxB TO /home/vagrant/.ansible/tmp/ansible-tmp-1455389704.21-41942075870883/lineinfile <weenect.dev> SSH: EXEC sshpass -d14 sftp -b - -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o User=vagrant -o ConnectTimeout=10 -o ControlPath=/home/jobou/.ansible/cp/ansible-ssh-%h-%p-%r '[weenect.dev]' <weenect.dev> ESTABLISH SSH CONNECTION FOR USER: vagrant <weenect.dev> SSH: EXEC sshpass -d14 ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o User=vagrant -o ConnectTimeout=10 -o ControlPath=/home/jobou/.ansible/cp/ansible-ssh-%h-%p-%r -tt weenect.dev '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-eavbsmhcbgzykcrtdvvrzikdgcgftlxh; LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /home/vagrant/.ansible/tmp/ansible-tmp-1455389704.21-41942075870883/lineinfile; rm -rf "/home/vagrant/.ansible/tmp/ansible-tmp-1455389704.21-41942075870883/" > /dev/null 2>&1'"'"'"'"'"'"'"'"''"'"'' fatal: [weenect.dev]: FAILED! => {"changed": false, "failed": true, "invocation": {"module_args": {"backrefs": false, "backup": true, "content": null, "create": false, "delimiter": null, "dest": "/etc/postgresql/9.4/main/postgresql.conf", "directory_mode": null, "follow": false, "force": null, "group": null, "insertafter": null, "insertbefore": null, "line": "include_dir 'conf.d'", "mode": null, "owner": null, "regexp": null, "remote_src": null, "selevel": null, "serole": null, "setype": null, "seuser": null, "src": null, "state": "present", "validate": null}, "module_name": "lineinfile"}, "msg": "Destination /etc/postgresql/9.4/main/postgresql.conf does not exist !", "rc": 257}
For information, I am using the debian/jessie64 box.
debian/jessie64
vagrant@debian-jessie:~$ sudo lsb_release -c Codename: jessie
Thanks in advance
Debian Jessie has been out of support since 2018, so I think this issue can be closed.
Hi,
I have just tested your role but I am unable to install postgresql using it in my vagrant box.
I have the following error :
For information, I am using the
debian/jessie64
box.Thanks in advance