· 8 years ago · Jul 16, 2018, 11:56 AM
1ansible-playbook 2.6.1
2 config file = /etc/ansible/ansible.cfg
3 configured module search path = [u'/home/bazz/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
4 ansible python module location = /usr/lib/python2.7/dist-packages/ansible
5 executable location = /usr/bin/ansible-playbook
6 python version = 2.7.12 (default, Dec 4 2017, 14:50:18) [GCC 5.4.0 20160609]
7Using /etc/ansible/ansible.cfg as config file
8Parsed /home/bazz/git/devops/ansible/inventory.yml inventory source with yaml plugin
9statically imported: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.pgbouncer/tasks/install.yml
10statically imported: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.pgbouncer/tasks/configure.yml
11statically imported: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.pgbouncer/tasks/monit.yml
12statically imported: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.pgbouncer/tasks/collectd.yml
13statically imported: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/install_apt.yml
14statically imported: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/install_yum.yml
15statically imported: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/install_dnf.yml
16statically imported: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/extensions.yml
17statically imported: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/extensions/contrib.yml
18statically imported: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/extensions/dev_headers.yml
19statically imported: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/extensions/postgis.yml
20statically imported: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/configure.yml
21statically imported: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/users.yml
22statically imported: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/databases.yml
23statically imported: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/schemas.yml
24statically imported: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/users_privileges.yml
25statically imported: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/monit.yml
26statically imported: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.repmgr/tasks/install.yml
27statically imported: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.repmgr/tasks/configure.yml
28statically imported: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.repmgr/tasks/bootstrap.yml
29statically imported: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.repmgr/tasks/cron_jobs.yml
30
31PLAYBOOK: deploy.yml *************************************************************************************************************************************************************************************************************************
321 plays in deploy.yml
33
34PLAY [pg-preprod-1] **************************************************************************************************************************************************************************************************************************
35
36TASK [Gathering Facts] ***********************************************************************************************************************************************************************************************************************
37task path: /home/bazz/git/devops/ansible/postgres/deploy.yml:22
38<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
39<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
40<192.168.80.32> (0, '/root\n', '')
41<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
42<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531740984.5-21844062972114 `" && echo ansible-tmp-1531740984.5-21844062972114="` echo /root/.ansible/tmp/ansible-tmp-1531740984.5-21844062972114 `" ) && sleep 0'"'"''
43<192.168.80.32> (0, 'ansible-tmp-1531740984.5-21844062972114=/root/.ansible/tmp/ansible-tmp-1531740984.5-21844062972114\n', '')
44Using module file /usr/lib/python2.7/dist-packages/ansible/modules/system/setup.py
45<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpPd_OwO TO /root/.ansible/tmp/ansible-tmp-1531740984.5-21844062972114/setup.py
46<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
47<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpPd_OwO /root/.ansible/tmp/ansible-tmp-1531740984.5-21844062972114/setup.py\n', '')
48<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
49<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531740984.5-21844062972114/ /root/.ansible/tmp/ansible-tmp-1531740984.5-21844062972114/setup.py && sleep 0'"'"''
50<192.168.80.32> (0, '', '')
51<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
52<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531740984.5-21844062972114/setup.py && sleep 0'"'"''
53<192.168.80.32> (0, '\r\n{"ansible_facts": {"ansible_user_shell": "/bin/bash", "ansible_processor": ["0", "GenuineIntel", "QEMU Virtual CPU version 2.5+", "1", "GenuineIntel", "QEMU Virtual CPU version 2.5+"], "ansible_real_group_id": 0, "ansible_swapfree_mb": 974, "ansible_env": {"LC_PAPER": "ru_RU.UTF-8", "SHELL": "/bin/bash", "_": "/bin/sh", "LC_TELEPHONE": "ru_RU.UTF-8", "LC_NAME": "ru_RU.UTF-8", "PWD": "/root", "MAIL": "/var/mail/root", "USER": "root", "LC_MONETARY": "ru_RU.UTF-8", "LC_ADDRESS": "ru_RU.UTF-8", "LANG": "en_US.UTF-8", "SSH_CLIENT": "192.168.80.106 32798 22", "LC_IDENTIFICATION": "ru_RU.UTF-8", "SSH_CONNECTION": "192.168.80.106 32798 192.168.80.32 22", "LOGNAME": "root", "LC_MEASUREMENT": "ru_RU.UTF-8", "TERM": "xterm", "LC_NUMERIC": "ru_RU.UTF-8", "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games", "HOME": "/root", "SHLVL": "1", "SSH_TTY": "/dev/pts/1"}, "ansible_memfree_mb": 357, "ansible_processor_cores": 1, "ansible_effective_user_id": 0, "ansible_devices": {"loop7": {"virtual": 1, "vendor": null, "sectors": "0", "host": "", "support_discard": "0", "sas_device_handle": null, "scheduler_mode": "", "model": null, "removable": "0", "sas_address": null, "links": {"ids": [], "masters": [], "uuids": [], "labels": []}, "partitions": {}, "sectorsize": "512", "rotational": "1", "holders": [], "size": "0.00 Bytes"}, "loop3": {"virtual": 1, "vendor": null, "sectors": "0", "host": "", "support_discard": "0", "sas_device_handle": null, "scheduler_mode": "", "model": null, "removable": "0", "sas_address": null, "links": {"ids": [], "masters": [], "uuids": [], "labels": []}, "partitions": {}, "sectorsize": "512", "rotational": "1", "holders": [], "size": "0.00 Bytes"}, "loop1": {"virtual": 1, "vendor": null, "sectors": "0", "host": "", "support_discard": "0", "sas_device_handle": null, "scheduler_mode": "", "model": null, "removable": "0", "sas_address": null, "links": {"ids": [], "masters": [], "uuids": [], "labels": []}, "partitions": {}, "sectorsize": "512", "rotational": "1", "holders": [], "size": "0.00 Bytes"}, "sda": {"virtual": 1, "vendor": "ATA", "sectors": "23068672", "host": "", "support_discard": "512", "sas_device_handle": null, "scheduler_mode": "deadline", "model": "QEMU HARDDISK", "removable": "0", "sas_address": null, "links": {"ids": ["ata-QEMU_HARDDISK_QM00001"], "masters": [], "uuids": [], "labels": []}, "partitions": {"sda2": {"start": "20000768", "sectors": "1996800", "size": "975.00 MB", "links": {"ids": ["ata-QEMU_HARDDISK_QM00001-part2"], "masters": [], "uuids": ["07569625-497b-447e-823b-9dd4dfa40855"], "labels": []}, "sectorsize": 512, "uuid": "07569625-497b-447e-823b-9dd4dfa40855", "holders": []}, "sda1": {"start": "63", "sectors": "19997984", "size": "9.54 GB", "links": {"ids": ["ata-QEMU_HARDDISK_QM00001-part1"], "masters": [], "uuids": ["e783514f-48ae-4f06-9bad-37196db1bc97"], "labels": []}, "sectorsize": 512, "uuid": "e783514f-48ae-4f06-9bad-37196db1bc97", "holders": []}}, "sectorsize": "512", "rotational": "1", "holders": [], "size": "11.00 GB"}, "loop4": {"virtual": 1, "vendor": null, "sectors": "0", "host": "", "support_discard": "0", "sas_device_handle": null, "scheduler_mode": "", "model": null, "removable": "0", "sas_address": null, "links": {"ids": [], "masters": [], "uuids": [], "labels": []}, "partitions": {}, "sectorsize": "512", "rotational": "1", "holders": [], "size": "0.00 Bytes"}, "loop5": {"virtual": 1, "vendor": null, "sectors": "0", "host": "", "support_discard": "0", "sas_device_handle": null, "scheduler_mode": "", "model": null, "removable": "0", "sas_address": null, "links": {"ids": [], "masters": [], "uuids": [], "labels": []}, "partitions": {}, "sectorsize": "512", "rotational": "1", "holders": [], "size": "0.00 Bytes"}, "loop6": {"virtual": 1, "vendor": null, "sectors": "0", "host": "", "support_discard": "0", "sas_device_handle": null, "scheduler_mode": "", "model": null, "removable": "0", "sas_address": null, "links": {"ids": [], "masters": [], "uuids": [], "labels": []}, "partitions": {}, "sectorsize": "512", "rotational": "1", "holders": [], "size": "0.00 Bytes"}, "loop2": {"virtual": 1, "vendor": null, "sectors": "0", "host": "", "support_discard": "0", "sas_device_handle": null, "scheduler_mode": "", "model": null, "removable": "0", "sas_address": null, "links": {"ids": [], "masters": [], "uuids": [], "labels": []}, "partitions": {}, "sectorsize": "512", "rotational": "1", "holders": [], "size": "0.00 Bytes"}, "loop0": {"virtual": 1, "vendor": null, "sectors": "0", "host": "", "support_discard": "0", "sas_device_handle": null, "scheduler_mode": "", "model": null, "removable": "0", "sas_address": null, "links": {"ids": [], "masters": [], "uuids": [], "labels": []}, "partitions": {}, "sectorsize": "512", "rotational": "1", "holders": [], "size": "0.00 Bytes"}}, "ansible_os_family": "Debian", "ansible_pkg_mgr": "apt", "ansible_ssh_host_key_dsa_public": "AAAAB3NzaC1kc3MAAACBAJLjrGP6qxDIG2fTwzWfziAw4nOxjYleWfokUWjQmJuGQZfJJYOI01CrG5g8V2v/2K9FslULiEXjSrUiDB+O5x32x5kb0cima8Pybzfj/eeZFWLgET1Lg1hJOOF4A1Sd+KtZbOVXt3knlsE6j3auqjC0iiKk/YlGa+Iu4mmGL5mjAAAAFQDzKxNRJLlUEKZqQ/GSuQGgsMFPDwAAAIAjSGaFL4vnIo8FmmOwY28vrliIqx7IE6pe6knd6TrIY8RItYAWpxKkkyNWMXDDyq291+Kmwb5QYPrFM6MXMMD1UR/3RR4iAs7KU+yVVC3uBe26Zzinim90P3yT10SoWV5uBuFWTa0RxvJzcSpG/YZI0akdvRfxtB0tLCCyg3mkTgAAAIEAg+/Tb2qAF7hxeGTpqEWlcDqPN3V/gD3SLwIfTFCjikmQG8SjXO8zxGX0f0G4kwGLWvm6jvuqgU0SPmL2bIfoCAtReGqlgWLhKunAmz1xj3hlHBka7P8oarjLSzH2HogEsvwEWbvl5CWpd5FqZh5n/Cl7DM4c1M/w2MJXT5w89wg=", "ansible_system_capabilities_enforced": "True", "ansible_selinux_python_present": false, "ansible_form_factor": "Other", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQCYvOXRu6Kn7753FEyQ830T+KiEGxDVl0jmQEejBkrxqlHlUTEr6wWfuODDlNeEfDJf4+h3nVWXo0xQxM73J+REpuhTIXkV/UNi9+aU698oK4VNwsRsgDccgXLYWx7hFDPvlL3E3fTguYgtYYR1bcJWQwD32lywHVoz+FyEcBwNi2lQBLdWXpfORRx2bdbHyTkQuqGSBd2rVvqk97z1tqTZGv9Lb0MA1+3KB2T1HNsmoSIDf4WCp0C28+HDWZU7lGIfg2LJkfCcAZVtCKS20mXNCVN0MPrR9/9e1y+/ynTqRGWoOFt1gjIiDM3PUNI+F+QLPPdvgDUbpaLwwpnKwzLj", "ansible_effective_group_id": 0, "ansible_distribution_release": "xenial", "ansible_product_version": "pc-i440fx-xenial", "ansible_userspace_bits": "64", "ansible_is_chroot": false, "ansible_machine": "x86_64", "ansible_user_gecos": "root", "ansible_system": "Linux", "ansible_fips": false, "ansible_selinux": {"status": "Missing selinux Python library"}, "ansible_kernel": "4.4.0-128-generic", "ansible_hostname": "pgmaster-preprod", "ansible_uptime_seconds": 355672, "ansible_processor_count": 2, "ansible_lsb": {"codename": "xenial", "major_release": "16", "id": "Ubuntu", "description": "Ubuntu 16.04.4 LTS", "release": "16.04"}, "ansible_product_serial": "NA", "ansible_system_capabilities": ["cap_chown", "cap_dac_override", "cap_dac_read_search", "cap_fowner", "cap_fsetid", "cap_kill", "cap_setgid", "cap_setuid", "cap_setpcap", "cap_linux_immutable", "cap_net_bind_service", "cap_net_broadcast", "cap_net_admin", "cap_net_raw", "cap_ipc_lock", "cap_ipc_owner", "cap_sys_module", "cap_sys_rawio", "cap_sys_chroot", "cap_sys_ptrace", "cap_sys_pacct", "cap_sys_admin", "cap_sys_boot", "cap_sys_nice", "cap_sys_resource", "cap_sys_time", "cap_sys_tty_config", "cap_mknod", "cap_lease", "cap_audit_write", "cap_audit_control", "cap_setfcap", "cap_mac_override", "cap_mac_admin", "cap_syslog", "cap_wake_alarm", "cap_block_suspend", "37+ep"], "ansible_iscsi_iqn": "", "ansible_domain": "", "ansible_virtualization_role": "guest", "ansible_product_name": "Standard PC (i440FX + PIIX, 1996)", "ansible_real_user_id": 0, "ansible_ens3": {"promisc": false, "ipv6": [{"scope": "link", "address": "fe80::5054:ff:fece:fe7f", "prefix": "64"}], "pciid": "virtio0", "speed": -1, "mtu": 1500, "macaddress": "52:54:00:ce:fe:7f", "ipv4": {"address": "192.168.80.32", "netmask": "255.255.255.0", "network": "192.168.80.0", "broadcast": "192.168.80.255"}, "active": true, "type": "ether", "device": "ens3"}, "ansible_product_uuid": "D7157EDA-E4E8-4AD5-98E6-DAA1A093DA74", "ansible_default_ipv4": {"gateway": "192.168.80.1", "address": "192.168.80.32", "netmask": "255.255.255.0", "broadcast": "192.168.80.255", "mtu": 1500, "macaddress": "52:54:00:ce:fe:7f", "interface": "ens3", "alias": "ens3", "type": "ether", "network": "192.168.80.0"}, "ansible_dns": {"search": ["example.com"], "nameservers": ["8.8.8.8", "192.168.80.250"]}, "ansible_processor_vcpus": 2, "ansible_lo": {"ipv6": [{"scope": "host", "address": "::1", "prefix": "128"}], "mtu": 65536, "type": "loopback", "ipv4": {"address": "127.0.0.1", "netmask": "255.0.0.0", "network": "127.0.0.0", "broadcast": "host"}, "active": true, "promisc": false, "device": "lo"}, "ansible_local": {}, "ansible_fqdn": "pg-preprod-1", "ansible_distribution_version": "16.04", "ansible_user_id": "root", "ansible_device_links": {"ids": {"sda": ["ata-QEMU_HARDDISK_QM00001"], "sda2": ["ata-QEMU_HARDDISK_QM00001-part2"], "sda1": ["ata-QEMU_HARDDISK_QM00001-part1"]}, "masters": {}, "labels": {}, "uuids": {"sda2": ["07569625-497b-447e-823b-9dd4dfa40855"], "sda1": ["e783514f-48ae-4f06-9bad-37196db1bc97"]}}, "ansible_all_ipv4_addresses": ["192.168.80.32"], "ansible_date_time": {"iso8601_basic": "20180716T113628354453", "iso8601_basic_short": "20180716T113628", "weekday_number": "1", "hour": "11", "day": "16", "date": "2018-07-16", "epoch": "1531740988", "iso8601": "2018-07-16T11:36:28Z", "month": "07", "weekday": "Monday", "time": "11:36:28", "iso8601_micro": "2018-07-16T11:36:28.354708Z", "tz": "UTC", "tz_offset": "+0000", "minute": "36", "weeknumber": "29", "second": "28", "year": "2018"}, "ansible_system_vendor": "QEMU", "ansible_nodename": "pgmaster-preprod", "ansible_distribution_file_variety": "Debian", "ansible_service_mgr": "systemd", "ansible_mounts": [{"size_available": 7728549888, "block_available": 1886853, "inode_available": 579602, "fstype": "ext4", "mount": "/", "block_used": 540839, "options": "rw,relatime,data=ordered", "size_total": 9943826432, "inode_used": 46254, "uuid": "e783514f-48ae-4f06-9bad-37196db1bc97", "inode_total": 625856, "block_total": 2427692, "device": "/dev/sda1", "block_size": 4096}], "module_setup": true, "ansible_processor_threads_per_core": 1, "ansible_bios_version": "Ubuntu-1.8.2-1ubuntu1", "ansible_all_ipv6_addresses": ["fe80::5054:ff:fece:fe7f"], "ansible_distribution": "Ubuntu", "ansible_bios_date": "04/01/2014", "ansible_machine_id": "909dfd42060d41ad8524177654e9a902", "ansible_cmdline": {"console": "ttyS0", "quiet": true, "ro": true, "root": "UUID=e783514f-48ae-4f06-9bad-37196db1bc97"}, "ansible_apparmor": {"status": "enabled"}, "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAILd2CRITMdfnJKXKG62BQK9+N2s3gXa3I9IdPQO55F//", "ansible_architecture": "x86_64", "ansible_default_ipv6": {}, "ansible_user_dir": "/root", "ansible_user_uid": 0, "ansible_memory_mb": {"real": {"used": 656, "free": 357, "total": 1013}, "nocache": {"free": 895, "used": 118}, "swap": {"free": 974, "used": 0, "total": 974, "cached": 0}}, "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBAUwxeE3Z3QIuvoBBKxzEg7bsKPPQCtKzzcfbbMsVMhS1azT1IsY0dSaHTDWcgvRsLLne1NQ1fNtV6FBwUmeTUI=", "ansible_python": {"has_sslcontext": true, "executable": "/usr/bin/python3", "version_info": [3, 5, 2, "final", 0], "version": {"minor": 5, "serial": 0, "releaselevel": "final", "micro": 2, "major": 3}, "type": "cpython"}, "ansible_user_gid": 0, "ansible_swaptotal_mb": 974, "ansible_memtotal_mb": 1013, "ansible_distribution_file_parsed": true, "ansible_distribution_file_path": "/etc/os-release", "ansible_userspace_architecture": "x86_64", "ansible_python_version": "3.5.2", "ansible_distribution_major_version": "16", "ansible_virtualization_type": "kvm", "gather_subset": ["all"], "ansible_interfaces": ["ens3", "lo"]}, "invocation": {"module_args": {"gather_timeout": 10, "fact_path": "/etc/ansible/facts.d", "filter": "*", "gather_subset": ["all"]}}}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
54<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
55<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531740984.5-21844062972114/ > /dev/null 2>&1 && sleep 0'"'"''
56<192.168.80.32> (0, '', '')
57ok: [pg-preprod-1]
58META: ran handlers
59
60TASK [indev : hosts file] ********************************************************************************************************************************************************************************************************************
61task path: /home/bazz/git/devops/ansible/indev/tasks/main.yml:2
62<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
63<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
64<192.168.80.32> (0, '/root\n', '')
65<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
66<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531740988.88-279941216358569 `" && echo ansible-tmp-1531740988.88-279941216358569="` echo /root/.ansible/tmp/ansible-tmp-1531740988.88-279941216358569 `" ) && sleep 0'"'"''
67<192.168.80.32> (0, 'ansible-tmp-1531740988.88-279941216358569=/root/.ansible/tmp/ansible-tmp-1531740988.88-279941216358569\n', '')
68Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
69<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpo3tKUF TO /root/.ansible/tmp/ansible-tmp-1531740988.88-279941216358569/stat.py
70<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
71<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpo3tKUF /root/.ansible/tmp/ansible-tmp-1531740988.88-279941216358569/stat.py\n', '')
72<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
73<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531740988.88-279941216358569/ /root/.ansible/tmp/ansible-tmp-1531740988.88-279941216358569/stat.py && sleep 0'"'"''
74<192.168.80.32> (0, '', '')
75<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
76<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531740988.88-279941216358569/stat.py && sleep 0'"'"''
77<192.168.80.32> (0, '\r\n{"changed": false, "stat": {"pw_name": "root", "isreg": true, "path": "/etc/hosts", "inode": 5839, "isuid": false, "gid": 0, "wgrp": false, "executable": false, "isblk": false, "ctime": 1531740561.7431152, "uid": 0, "mode": "0644", "charset": "us-ascii", "writeable": true, "block_size": 4096, "size": 459, "exists": true, "roth": true, "mtime": 1531740561.7391152, "device_type": 0, "issock": false, "blocks": 8, "xgrp": false, "ischr": false, "isfifo": false, "mimetype": "text/plain", "rgrp": true, "xusr": false, "version": "18446744072598296311", "isdir": false, "readable": true, "dev": 2049, "isgid": false, "checksum": "70829a07dc0a75da52afb60ddd006399ea6c0318", "islnk": false, "attr_flags": "e", "atime": 1531740566.1790626, "woth": false, "wusr": true, "gr_name": "root", "rusr": true, "nlink": 1, "xoth": false, "attributes": ["extents"]}, "invocation": {"module_args": {"get_md5": null, "checksum_algorithm": "sha1", "get_checksum": true, "follow": false, "get_attributes": true, "path": "/etc/hosts", "get_mime": true, "checksum_algo": "sha1"}}}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
78<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpMqSS3J/hostsFile.j2 TO /root/.ansible/tmp/ansible-tmp-1531740988.88-279941216358569/source
79<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
80<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpMqSS3J/hostsFile.j2 /root/.ansible/tmp/ansible-tmp-1531740988.88-279941216358569/source\n', '')
81<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
82<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531740988.88-279941216358569/ /root/.ansible/tmp/ansible-tmp-1531740988.88-279941216358569/source && sleep 0'"'"''
83<192.168.80.32> (0, '', '')
84Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/copy.py
85<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpHMXahm TO /root/.ansible/tmp/ansible-tmp-1531740988.88-279941216358569/copy.py
86<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
87<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpHMXahm /root/.ansible/tmp/ansible-tmp-1531740988.88-279941216358569/copy.py\n', '')
88<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
89<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531740988.88-279941216358569/ /root/.ansible/tmp/ansible-tmp-1531740988.88-279941216358569/copy.py && sleep 0'"'"''
90<192.168.80.32> (0, '', '')
91<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
92<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531740988.88-279941216358569/copy.py && sleep 0'"'"''
93<192.168.80.32> (0, '\r\n{"invocation": {"module_args": {"validate": null, "mode": null, "attributes": null, "_original_basename": "hostsFile.j2", "checksum": "c3f7f1fc63aeeb20ac2a9032ee1703809621ec72", "unsafe_writes": null, "force": true, "owner": "root", "seuser": null, "regexp": null, "local_follow": null, "directory_mode": null, "follow": false, "dest": "/etc/hosts", "src": "/root/.ansible/tmp/ansible-tmp-1531740988.88-279941216358569/source", "serole": null, "setype": null, "content": null, "backup": false, "group": "root", "delimiter": null, "remote_src": null, "selevel": null}}, "gid": 0, "state": "file", "owner": "root", "src": "/root/.ansible/tmp/ansible-tmp-1531740988.88-279941216358569/source", "checksum": "c3f7f1fc63aeeb20ac2a9032ee1703809621ec72", "uid": 0, "md5sum": "d46ad58cdf0d16ad7ce4e1af7377c3cb", "mode": "0644", "changed": true, "group": "root", "size": 396, "dest": "/etc/hosts"}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
94<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
95<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531740988.88-279941216358569/ > /dev/null 2>&1 && sleep 0'"'"''
96<192.168.80.32> (0, '', '')
97changed: [pg-preprod-1] => {
98 "changed": true,
99 "checksum": "c3f7f1fc63aeeb20ac2a9032ee1703809621ec72",
100 "dest": "/etc/hosts",
101 "diff": [],
102 "gid": 0,
103 "group": "root",
104 "invocation": {
105 "module_args": {
106 "_original_basename": "hostsFile.j2",
107 "attributes": null,
108 "backup": false,
109 "checksum": "c3f7f1fc63aeeb20ac2a9032ee1703809621ec72",
110 "content": null,
111 "delimiter": null,
112 "dest": "/etc/hosts",
113 "directory_mode": null,
114 "follow": false,
115 "force": true,
116 "group": "root",
117 "local_follow": null,
118 "mode": null,
119 "owner": "root",
120 "regexp": null,
121 "remote_src": null,
122 "selevel": null,
123 "serole": null,
124 "setype": null,
125 "seuser": null,
126 "src": "/root/.ansible/tmp/ansible-tmp-1531740988.88-279941216358569/source",
127 "unsafe_writes": null,
128 "validate": null
129 }
130 },
131 "md5sum": "d46ad58cdf0d16ad7ce4e1af7377c3cb",
132 "mode": "0644",
133 "owner": "root",
134 "size": 396,
135 "src": "/root/.ansible/tmp/ansible-tmp-1531740988.88-279941216358569/source",
136 "state": "file",
137 "uid": 0
138}
139
140TASK [indev : Build hosts file - custom lines] ***********************************************************************************************************************************************************************************************
141task path: /home/bazz/git/devops/ansible/indev/tasks/main.yml:15
142<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
143<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
144<192.168.80.32> (0, '/root\n', '')
145<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
146<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531740991.3-160440886214030 `" && echo ansible-tmp-1531740991.3-160440886214030="` echo /root/.ansible/tmp/ansible-tmp-1531740991.3-160440886214030 `" ) && sleep 0'"'"''
147<192.168.80.32> (0, 'ansible-tmp-1531740991.3-160440886214030=/root/.ansible/tmp/ansible-tmp-1531740991.3-160440886214030\n', '')
148Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/lineinfile.py
149<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpYXP1Ry TO /root/.ansible/tmp/ansible-tmp-1531740991.3-160440886214030/lineinfile.py
150<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
151<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpYXP1Ry /root/.ansible/tmp/ansible-tmp-1531740991.3-160440886214030/lineinfile.py\n', '')
152<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
153<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531740991.3-160440886214030/ /root/.ansible/tmp/ansible-tmp-1531740991.3-160440886214030/lineinfile.py && sleep 0'"'"''
154<192.168.80.32> (0, '', '')
155<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
156<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531740991.3-160440886214030/lineinfile.py && sleep 0'"'"''
157<192.168.80.32> (0, '\r\n{"invocation": {"module_args": {"regexp": ".*192.168.80.32 pgmaster-preprod$", "selevel": null, "attributes": null, "create": false, "mode": null, "follow": false, "directory_mode": null, "state": "present", "backup": false, "setype": null, "force": null, "path": "/etc/hosts", "line": "192.168.80.32 pgmaster-preprod", "owner": null, "serole": null, "insertafter": null, "delimiter": null, "insertbefore": null, "dest": "/etc/hosts", "validate": null, "group": null, "backrefs": false, "seuser": null, "unsafe_writes": null, "content": null, "remote_src": null, "src": null, "firstmatch": false}}, "changed": true, "msg": "line added", "backup": "", "diff": [{"after_header": "/etc/hosts (content)", "before_header": "/etc/hosts (content)", "after": "", "before": ""}, {"before_header": "/etc/hosts (file attributes)", "after_header": "/etc/hosts (file attributes)"}]}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
158<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
159<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531740991.3-160440886214030/ > /dev/null 2>&1 && sleep 0'"'"''
160<192.168.80.32> (0, '', '')
161changed: [pg-preprod-1] => (item=192.168.80.32 pgmaster-preprod) => {
162 "backup": "",
163 "changed": true,
164 "diff": [
165 {
166 "after": "",
167 "after_header": "/etc/hosts (content)",
168 "before": "",
169 "before_header": "/etc/hosts (content)"
170 },
171 {
172 "after_header": "/etc/hosts (file attributes)",
173 "before_header": "/etc/hosts (file attributes)"
174 }
175 ],
176 "invocation": {
177 "module_args": {
178 "attributes": null,
179 "backrefs": false,
180 "backup": false,
181 "content": null,
182 "create": false,
183 "delimiter": null,
184 "dest": "/etc/hosts",
185 "directory_mode": null,
186 "firstmatch": false,
187 "follow": false,
188 "force": null,
189 "group": null,
190 "insertafter": null,
191 "insertbefore": null,
192 "line": "192.168.80.32 pgmaster-preprod",
193 "mode": null,
194 "owner": null,
195 "path": "/etc/hosts",
196 "regexp": ".*192.168.80.32 pgmaster-preprod$",
197 "remote_src": null,
198 "selevel": null,
199 "serole": null,
200 "setype": null,
201 "seuser": null,
202 "src": null,
203 "state": "present",
204 "unsafe_writes": null,
205 "validate": null
206 }
207 },
208 "item": "192.168.80.32 pgmaster-preprod",
209 "msg": "line added"
210}
211<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
212<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
213<192.168.80.32> (0, '/root\n', '')
214<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
215<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531740992.49-241919590436928 `" && echo ansible-tmp-1531740992.49-241919590436928="` echo /root/.ansible/tmp/ansible-tmp-1531740992.49-241919590436928 `" ) && sleep 0'"'"''
216<192.168.80.32> (0, 'ansible-tmp-1531740992.49-241919590436928=/root/.ansible/tmp/ansible-tmp-1531740992.49-241919590436928\n', '')
217Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/lineinfile.py
218<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpZQVUBB TO /root/.ansible/tmp/ansible-tmp-1531740992.49-241919590436928/lineinfile.py
219<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
220<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpZQVUBB /root/.ansible/tmp/ansible-tmp-1531740992.49-241919590436928/lineinfile.py\n', '')
221<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
222<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531740992.49-241919590436928/ /root/.ansible/tmp/ansible-tmp-1531740992.49-241919590436928/lineinfile.py && sleep 0'"'"''
223<192.168.80.32> (0, '', '')
224<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
225<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531740992.49-241919590436928/lineinfile.py && sleep 0'"'"''
226<192.168.80.32> (0, '\r\n{"backup": "", "changed": true, "msg": "line added", "diff": [{"before": "", "after": "", "before_header": "/etc/hosts (content)", "after_header": "/etc/hosts (content)"}, {"after_header": "/etc/hosts (file attributes)", "before_header": "/etc/hosts (file attributes)"}], "invocation": {"module_args": {"group": null, "line": "192.168.80.33 pgstandby-preprod", "create": false, "directory_mode": null, "remote_src": null, "dest": "/etc/hosts", "force": null, "delimiter": null, "path": "/etc/hosts", "owner": null, "mode": null, "unsafe_writes": null, "seuser": null, "validate": null, "insertafter": null, "firstmatch": false, "backrefs": false, "follow": false, "backup": false, "regexp": ".*192.168.80.33 pgstandby-preprod$", "attributes": null, "insertbefore": null, "state": "present", "setype": null, "src": null, "serole": null, "selevel": null, "content": null}}}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
227<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
228<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531740992.49-241919590436928/ > /dev/null 2>&1 && sleep 0'"'"''
229<192.168.80.32> (0, '', '')
230changed: [pg-preprod-1] => (item=192.168.80.33 pgstandby-preprod) => {
231 "backup": "",
232 "changed": true,
233 "diff": [
234 {
235 "after": "",
236 "after_header": "/etc/hosts (content)",
237 "before": "",
238 "before_header": "/etc/hosts (content)"
239 },
240 {
241 "after_header": "/etc/hosts (file attributes)",
242 "before_header": "/etc/hosts (file attributes)"
243 }
244 ],
245 "invocation": {
246 "module_args": {
247 "attributes": null,
248 "backrefs": false,
249 "backup": false,
250 "content": null,
251 "create": false,
252 "delimiter": null,
253 "dest": "/etc/hosts",
254 "directory_mode": null,
255 "firstmatch": false,
256 "follow": false,
257 "force": null,
258 "group": null,
259 "insertafter": null,
260 "insertbefore": null,
261 "line": "192.168.80.33 pgstandby-preprod",
262 "mode": null,
263 "owner": null,
264 "path": "/etc/hosts",
265 "regexp": ".*192.168.80.33 pgstandby-preprod$",
266 "remote_src": null,
267 "selevel": null,
268 "serole": null,
269 "setype": null,
270 "seuser": null,
271 "src": null,
272 "state": "present",
273 "unsafe_writes": null,
274 "validate": null
275 }
276 },
277 "item": "192.168.80.33 pgstandby-preprod",
278 "msg": "line added"
279}
280
281TASK [indev : Display all variables/facts known for a host] **********************************************************************************************************************************************************************************
282task path: /home/bazz/git/devops/ansible/indev/tasks/main.yml:21
283ok: [pg-preprod-1] => {
284 "hostvars[inventory_hostname]": {
285 "agent_hostname": "{{ ansible_fqdn | default(ansible_hostname) }}",
286 "agent_include": "/etc/zabbix/zabbix_agentd.d",
287 "agent_listenip": "{{ ansible_default_ipv4['address'] }}",
288 "agent_logfile": "/var/log/zabbix-agent/zabbix_agentd.log",
289 "agent_server": "zabbix.local",
290 "agent_serveractive": "zabbix.local",
291 "ansible_all_ipv4_addresses": [
292 "192.168.80.32"
293 ],
294 "ansible_all_ipv6_addresses": [
295 "fe80::5054:ff:fece:fe7f"
296 ],
297 "ansible_apparmor": {
298 "status": "enabled"
299 },
300 "ansible_architecture": "x86_64",
301 "ansible_bios_date": "04/01/2014",
302 "ansible_bios_version": "Ubuntu-1.8.2-1ubuntu1",
303 "ansible_check_mode": false,
304 "ansible_cmdline": {
305 "console": "ttyS0",
306 "quiet": true,
307 "ro": true,
308 "root": "UUID=e783514f-48ae-4f06-9bad-37196db1bc97"
309 },
310 "ansible_date_time": {
311 "date": "2018-07-16",
312 "day": "16",
313 "epoch": "1531740988",
314 "hour": "11",
315 "iso8601": "2018-07-16T11:36:28Z",
316 "iso8601_basic": "20180716T113628354453",
317 "iso8601_basic_short": "20180716T113628",
318 "iso8601_micro": "2018-07-16T11:36:28.354708Z",
319 "minute": "36",
320 "month": "07",
321 "second": "28",
322 "time": "11:36:28",
323 "tz": "UTC",
324 "tz_offset": "+0000",
325 "weekday": "Monday",
326 "weekday_number": "1",
327 "weeknumber": "29",
328 "year": "2018"
329 },
330 "ansible_default_ipv4": {
331 "address": "192.168.80.32",
332 "alias": "ens3",
333 "broadcast": "192.168.80.255",
334 "gateway": "192.168.80.1",
335 "interface": "ens3",
336 "macaddress": "52:54:00:ce:fe:7f",
337 "mtu": 1500,
338 "netmask": "255.255.255.0",
339 "network": "192.168.80.0",
340 "type": "ether"
341 },
342 "ansible_default_ipv6": {},
343 "ansible_device_links": {
344 "ids": {
345 "sda": [
346 "ata-QEMU_HARDDISK_QM00001"
347 ],
348 "sda1": [
349 "ata-QEMU_HARDDISK_QM00001-part1"
350 ],
351 "sda2": [
352 "ata-QEMU_HARDDISK_QM00001-part2"
353 ]
354 },
355 "labels": {},
356 "masters": {},
357 "uuids": {
358 "sda1": [
359 "e783514f-48ae-4f06-9bad-37196db1bc97"
360 ],
361 "sda2": [
362 "07569625-497b-447e-823b-9dd4dfa40855"
363 ]
364 }
365 },
366 "ansible_devices": {
367 "loop0": {
368 "holders": [],
369 "host": "",
370 "links": {
371 "ids": [],
372 "labels": [],
373 "masters": [],
374 "uuids": []
375 },
376 "model": null,
377 "partitions": {},
378 "removable": "0",
379 "rotational": "1",
380 "sas_address": null,
381 "sas_device_handle": null,
382 "scheduler_mode": "",
383 "sectors": "0",
384 "sectorsize": "512",
385 "size": "0.00 Bytes",
386 "support_discard": "0",
387 "vendor": null,
388 "virtual": 1
389 },
390 "loop1": {
391 "holders": [],
392 "host": "",
393 "links": {
394 "ids": [],
395 "labels": [],
396 "masters": [],
397 "uuids": []
398 },
399 "model": null,
400 "partitions": {},
401 "removable": "0",
402 "rotational": "1",
403 "sas_address": null,
404 "sas_device_handle": null,
405 "scheduler_mode": "",
406 "sectors": "0",
407 "sectorsize": "512",
408 "size": "0.00 Bytes",
409 "support_discard": "0",
410 "vendor": null,
411 "virtual": 1
412 },
413 "loop2": {
414 "holders": [],
415 "host": "",
416 "links": {
417 "ids": [],
418 "labels": [],
419 "masters": [],
420 "uuids": []
421 },
422 "model": null,
423 "partitions": {},
424 "removable": "0",
425 "rotational": "1",
426 "sas_address": null,
427 "sas_device_handle": null,
428 "scheduler_mode": "",
429 "sectors": "0",
430 "sectorsize": "512",
431 "size": "0.00 Bytes",
432 "support_discard": "0",
433 "vendor": null,
434 "virtual": 1
435 },
436 "loop3": {
437 "holders": [],
438 "host": "",
439 "links": {
440 "ids": [],
441 "labels": [],
442 "masters": [],
443 "uuids": []
444 },
445 "model": null,
446 "partitions": {},
447 "removable": "0",
448 "rotational": "1",
449 "sas_address": null,
450 "sas_device_handle": null,
451 "scheduler_mode": "",
452 "sectors": "0",
453 "sectorsize": "512",
454 "size": "0.00 Bytes",
455 "support_discard": "0",
456 "vendor": null,
457 "virtual": 1
458 },
459 "loop4": {
460 "holders": [],
461 "host": "",
462 "links": {
463 "ids": [],
464 "labels": [],
465 "masters": [],
466 "uuids": []
467 },
468 "model": null,
469 "partitions": {},
470 "removable": "0",
471 "rotational": "1",
472 "sas_address": null,
473 "sas_device_handle": null,
474 "scheduler_mode": "",
475 "sectors": "0",
476 "sectorsize": "512",
477 "size": "0.00 Bytes",
478 "support_discard": "0",
479 "vendor": null,
480 "virtual": 1
481 },
482 "loop5": {
483 "holders": [],
484 "host": "",
485 "links": {
486 "ids": [],
487 "labels": [],
488 "masters": [],
489 "uuids": []
490 },
491 "model": null,
492 "partitions": {},
493 "removable": "0",
494 "rotational": "1",
495 "sas_address": null,
496 "sas_device_handle": null,
497 "scheduler_mode": "",
498 "sectors": "0",
499 "sectorsize": "512",
500 "size": "0.00 Bytes",
501 "support_discard": "0",
502 "vendor": null,
503 "virtual": 1
504 },
505 "loop6": {
506 "holders": [],
507 "host": "",
508 "links": {
509 "ids": [],
510 "labels": [],
511 "masters": [],
512 "uuids": []
513 },
514 "model": null,
515 "partitions": {},
516 "removable": "0",
517 "rotational": "1",
518 "sas_address": null,
519 "sas_device_handle": null,
520 "scheduler_mode": "",
521 "sectors": "0",
522 "sectorsize": "512",
523 "size": "0.00 Bytes",
524 "support_discard": "0",
525 "vendor": null,
526 "virtual": 1
527 },
528 "loop7": {
529 "holders": [],
530 "host": "",
531 "links": {
532 "ids": [],
533 "labels": [],
534 "masters": [],
535 "uuids": []
536 },
537 "model": null,
538 "partitions": {},
539 "removable": "0",
540 "rotational": "1",
541 "sas_address": null,
542 "sas_device_handle": null,
543 "scheduler_mode": "",
544 "sectors": "0",
545 "sectorsize": "512",
546 "size": "0.00 Bytes",
547 "support_discard": "0",
548 "vendor": null,
549 "virtual": 1
550 },
551 "sda": {
552 "holders": [],
553 "host": "",
554 "links": {
555 "ids": [
556 "ata-QEMU_HARDDISK_QM00001"
557 ],
558 "labels": [],
559 "masters": [],
560 "uuids": []
561 },
562 "model": "QEMU HARDDISK",
563 "partitions": {
564 "sda1": {
565 "holders": [],
566 "links": {
567 "ids": [
568 "ata-QEMU_HARDDISK_QM00001-part1"
569 ],
570 "labels": [],
571 "masters": [],
572 "uuids": [
573 "e783514f-48ae-4f06-9bad-37196db1bc97"
574 ]
575 },
576 "sectors": "19997984",
577 "sectorsize": 512,
578 "size": "9.54 GB",
579 "start": "63",
580 "uuid": "e783514f-48ae-4f06-9bad-37196db1bc97"
581 },
582 "sda2": {
583 "holders": [],
584 "links": {
585 "ids": [
586 "ata-QEMU_HARDDISK_QM00001-part2"
587 ],
588 "labels": [],
589 "masters": [],
590 "uuids": [
591 "07569625-497b-447e-823b-9dd4dfa40855"
592 ]
593 },
594 "sectors": "1996800",
595 "sectorsize": 512,
596 "size": "975.00 MB",
597 "start": "20000768",
598 "uuid": "07569625-497b-447e-823b-9dd4dfa40855"
599 }
600 },
601 "removable": "0",
602 "rotational": "1",
603 "sas_address": null,
604 "sas_device_handle": null,
605 "scheduler_mode": "deadline",
606 "sectors": "23068672",
607 "sectorsize": "512",
608 "size": "11.00 GB",
609 "support_discard": "512",
610 "vendor": "ATA",
611 "virtual": 1
612 }
613 },
614 "ansible_diff_mode": false,
615 "ansible_distribution": "Ubuntu",
616 "ansible_distribution_file_parsed": true,
617 "ansible_distribution_file_path": "/etc/os-release",
618 "ansible_distribution_file_variety": "Debian",
619 "ansible_distribution_major_version": "16",
620 "ansible_distribution_release": "xenial",
621 "ansible_distribution_version": "16.04",
622 "ansible_dns": {
623 "nameservers": [
624 "8.8.8.8",
625 "192.168.80.250"
626 ],
627 "search": [
628 "example.com"
629 ]
630 },
631 "ansible_domain": "",
632 "ansible_effective_group_id": 0,
633 "ansible_effective_user_id": 0,
634 "ansible_ens3": {
635 "active": true,
636 "device": "ens3",
637 "ipv4": {
638 "address": "192.168.80.32",
639 "broadcast": "192.168.80.255",
640 "netmask": "255.255.255.0",
641 "network": "192.168.80.0"
642 },
643 "ipv6": [
644 {
645 "address": "fe80::5054:ff:fece:fe7f",
646 "prefix": "64",
647 "scope": "link"
648 }
649 ],
650 "macaddress": "52:54:00:ce:fe:7f",
651 "mtu": 1500,
652 "pciid": "virtio0",
653 "promisc": false,
654 "speed": -1,
655 "type": "ether"
656 },
657 "ansible_env": {
658 "HOME": "/root",
659 "LANG": "en_US.UTF-8",
660 "LC_ADDRESS": "ru_RU.UTF-8",
661 "LC_IDENTIFICATION": "ru_RU.UTF-8",
662 "LC_MEASUREMENT": "ru_RU.UTF-8",
663 "LC_MONETARY": "ru_RU.UTF-8",
664 "LC_NAME": "ru_RU.UTF-8",
665 "LC_NUMERIC": "ru_RU.UTF-8",
666 "LC_PAPER": "ru_RU.UTF-8",
667 "LC_TELEPHONE": "ru_RU.UTF-8",
668 "LOGNAME": "root",
669 "MAIL": "/var/mail/root",
670 "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games",
671 "PWD": "/root",
672 "SHELL": "/bin/bash",
673 "SHLVL": "1",
674 "SSH_CLIENT": "192.168.80.106 32798 22",
675 "SSH_CONNECTION": "192.168.80.106 32798 192.168.80.32 22",
676 "SSH_TTY": "/dev/pts/1",
677 "TERM": "xterm",
678 "USER": "root",
679 "_": "/bin/sh"
680 },
681 "ansible_facts": {
682 "all_ipv4_addresses": [
683 "192.168.80.32"
684 ],
685 "all_ipv6_addresses": [
686 "fe80::5054:ff:fece:fe7f"
687 ],
688 "ansible_local": {},
689 "apparmor": {
690 "status": "enabled"
691 },
692 "architecture": "x86_64",
693 "bios_date": "04/01/2014",
694 "bios_version": "Ubuntu-1.8.2-1ubuntu1",
695 "cmdline": {
696 "console": "ttyS0",
697 "quiet": true,
698 "ro": true,
699 "root": "UUID=e783514f-48ae-4f06-9bad-37196db1bc97"
700 },
701 "date_time": {
702 "date": "2018-07-16",
703 "day": "16",
704 "epoch": "1531740988",
705 "hour": "11",
706 "iso8601": "2018-07-16T11:36:28Z",
707 "iso8601_basic": "20180716T113628354453",
708 "iso8601_basic_short": "20180716T113628",
709 "iso8601_micro": "2018-07-16T11:36:28.354708Z",
710 "minute": "36",
711 "month": "07",
712 "second": "28",
713 "time": "11:36:28",
714 "tz": "UTC",
715 "tz_offset": "+0000",
716 "weekday": "Monday",
717 "weekday_number": "1",
718 "weeknumber": "29",
719 "year": "2018"
720 },
721 "default_ipv4": {
722 "address": "192.168.80.32",
723 "alias": "ens3",
724 "broadcast": "192.168.80.255",
725 "gateway": "192.168.80.1",
726 "interface": "ens3",
727 "macaddress": "52:54:00:ce:fe:7f",
728 "mtu": 1500,
729 "netmask": "255.255.255.0",
730 "network": "192.168.80.0",
731 "type": "ether"
732 },
733 "default_ipv6": {},
734 "device_links": {
735 "ids": {
736 "sda": [
737 "ata-QEMU_HARDDISK_QM00001"
738 ],
739 "sda1": [
740 "ata-QEMU_HARDDISK_QM00001-part1"
741 ],
742 "sda2": [
743 "ata-QEMU_HARDDISK_QM00001-part2"
744 ]
745 },
746 "labels": {},
747 "masters": {},
748 "uuids": {
749 "sda1": [
750 "e783514f-48ae-4f06-9bad-37196db1bc97"
751 ],
752 "sda2": [
753 "07569625-497b-447e-823b-9dd4dfa40855"
754 ]
755 }
756 },
757 "devices": {
758 "loop0": {
759 "holders": [],
760 "host": "",
761 "links": {
762 "ids": [],
763 "labels": [],
764 "masters": [],
765 "uuids": []
766 },
767 "model": null,
768 "partitions": {},
769 "removable": "0",
770 "rotational": "1",
771 "sas_address": null,
772 "sas_device_handle": null,
773 "scheduler_mode": "",
774 "sectors": "0",
775 "sectorsize": "512",
776 "size": "0.00 Bytes",
777 "support_discard": "0",
778 "vendor": null,
779 "virtual": 1
780 },
781 "loop1": {
782 "holders": [],
783 "host": "",
784 "links": {
785 "ids": [],
786 "labels": [],
787 "masters": [],
788 "uuids": []
789 },
790 "model": null,
791 "partitions": {},
792 "removable": "0",
793 "rotational": "1",
794 "sas_address": null,
795 "sas_device_handle": null,
796 "scheduler_mode": "",
797 "sectors": "0",
798 "sectorsize": "512",
799 "size": "0.00 Bytes",
800 "support_discard": "0",
801 "vendor": null,
802 "virtual": 1
803 },
804 "loop2": {
805 "holders": [],
806 "host": "",
807 "links": {
808 "ids": [],
809 "labels": [],
810 "masters": [],
811 "uuids": []
812 },
813 "model": null,
814 "partitions": {},
815 "removable": "0",
816 "rotational": "1",
817 "sas_address": null,
818 "sas_device_handle": null,
819 "scheduler_mode": "",
820 "sectors": "0",
821 "sectorsize": "512",
822 "size": "0.00 Bytes",
823 "support_discard": "0",
824 "vendor": null,
825 "virtual": 1
826 },
827 "loop3": {
828 "holders": [],
829 "host": "",
830 "links": {
831 "ids": [],
832 "labels": [],
833 "masters": [],
834 "uuids": []
835 },
836 "model": null,
837 "partitions": {},
838 "removable": "0",
839 "rotational": "1",
840 "sas_address": null,
841 "sas_device_handle": null,
842 "scheduler_mode": "",
843 "sectors": "0",
844 "sectorsize": "512",
845 "size": "0.00 Bytes",
846 "support_discard": "0",
847 "vendor": null,
848 "virtual": 1
849 },
850 "loop4": {
851 "holders": [],
852 "host": "",
853 "links": {
854 "ids": [],
855 "labels": [],
856 "masters": [],
857 "uuids": []
858 },
859 "model": null,
860 "partitions": {},
861 "removable": "0",
862 "rotational": "1",
863 "sas_address": null,
864 "sas_device_handle": null,
865 "scheduler_mode": "",
866 "sectors": "0",
867 "sectorsize": "512",
868 "size": "0.00 Bytes",
869 "support_discard": "0",
870 "vendor": null,
871 "virtual": 1
872 },
873 "loop5": {
874 "holders": [],
875 "host": "",
876 "links": {
877 "ids": [],
878 "labels": [],
879 "masters": [],
880 "uuids": []
881 },
882 "model": null,
883 "partitions": {},
884 "removable": "0",
885 "rotational": "1",
886 "sas_address": null,
887 "sas_device_handle": null,
888 "scheduler_mode": "",
889 "sectors": "0",
890 "sectorsize": "512",
891 "size": "0.00 Bytes",
892 "support_discard": "0",
893 "vendor": null,
894 "virtual": 1
895 },
896 "loop6": {
897 "holders": [],
898 "host": "",
899 "links": {
900 "ids": [],
901 "labels": [],
902 "masters": [],
903 "uuids": []
904 },
905 "model": null,
906 "partitions": {},
907 "removable": "0",
908 "rotational": "1",
909 "sas_address": null,
910 "sas_device_handle": null,
911 "scheduler_mode": "",
912 "sectors": "0",
913 "sectorsize": "512",
914 "size": "0.00 Bytes",
915 "support_discard": "0",
916 "vendor": null,
917 "virtual": 1
918 },
919 "loop7": {
920 "holders": [],
921 "host": "",
922 "links": {
923 "ids": [],
924 "labels": [],
925 "masters": [],
926 "uuids": []
927 },
928 "model": null,
929 "partitions": {},
930 "removable": "0",
931 "rotational": "1",
932 "sas_address": null,
933 "sas_device_handle": null,
934 "scheduler_mode": "",
935 "sectors": "0",
936 "sectorsize": "512",
937 "size": "0.00 Bytes",
938 "support_discard": "0",
939 "vendor": null,
940 "virtual": 1
941 },
942 "sda": {
943 "holders": [],
944 "host": "",
945 "links": {
946 "ids": [
947 "ata-QEMU_HARDDISK_QM00001"
948 ],
949 "labels": [],
950 "masters": [],
951 "uuids": []
952 },
953 "model": "QEMU HARDDISK",
954 "partitions": {
955 "sda1": {
956 "holders": [],
957 "links": {
958 "ids": [
959 "ata-QEMU_HARDDISK_QM00001-part1"
960 ],
961 "labels": [],
962 "masters": [],
963 "uuids": [
964 "e783514f-48ae-4f06-9bad-37196db1bc97"
965 ]
966 },
967 "sectors": "19997984",
968 "sectorsize": 512,
969 "size": "9.54 GB",
970 "start": "63",
971 "uuid": "e783514f-48ae-4f06-9bad-37196db1bc97"
972 },
973 "sda2": {
974 "holders": [],
975 "links": {
976 "ids": [
977 "ata-QEMU_HARDDISK_QM00001-part2"
978 ],
979 "labels": [],
980 "masters": [],
981 "uuids": [
982 "07569625-497b-447e-823b-9dd4dfa40855"
983 ]
984 },
985 "sectors": "1996800",
986 "sectorsize": 512,
987 "size": "975.00 MB",
988 "start": "20000768",
989 "uuid": "07569625-497b-447e-823b-9dd4dfa40855"
990 }
991 },
992 "removable": "0",
993 "rotational": "1",
994 "sas_address": null,
995 "sas_device_handle": null,
996 "scheduler_mode": "deadline",
997 "sectors": "23068672",
998 "sectorsize": "512",
999 "size": "11.00 GB",
1000 "support_discard": "512",
1001 "vendor": "ATA",
1002 "virtual": 1
1003 }
1004 },
1005 "distribution": "Ubuntu",
1006 "distribution_file_parsed": true,
1007 "distribution_file_path": "/etc/os-release",
1008 "distribution_file_variety": "Debian",
1009 "distribution_major_version": "16",
1010 "distribution_release": "xenial",
1011 "distribution_version": "16.04",
1012 "dns": {
1013 "nameservers": [
1014 "8.8.8.8",
1015 "192.168.80.250"
1016 ],
1017 "search": [
1018 "example.com"
1019 ]
1020 },
1021 "domain": "",
1022 "effective_group_id": 0,
1023 "effective_user_id": 0,
1024 "ens3": {
1025 "active": true,
1026 "device": "ens3",
1027 "ipv4": {
1028 "address": "192.168.80.32",
1029 "broadcast": "192.168.80.255",
1030 "netmask": "255.255.255.0",
1031 "network": "192.168.80.0"
1032 },
1033 "ipv6": [
1034 {
1035 "address": "fe80::5054:ff:fece:fe7f",
1036 "prefix": "64",
1037 "scope": "link"
1038 }
1039 ],
1040 "macaddress": "52:54:00:ce:fe:7f",
1041 "mtu": 1500,
1042 "pciid": "virtio0",
1043 "promisc": false,
1044 "speed": -1,
1045 "type": "ether"
1046 },
1047 "env": {
1048 "HOME": "/root",
1049 "LANG": "en_US.UTF-8",
1050 "LC_ADDRESS": "ru_RU.UTF-8",
1051 "LC_IDENTIFICATION": "ru_RU.UTF-8",
1052 "LC_MEASUREMENT": "ru_RU.UTF-8",
1053 "LC_MONETARY": "ru_RU.UTF-8",
1054 "LC_NAME": "ru_RU.UTF-8",
1055 "LC_NUMERIC": "ru_RU.UTF-8",
1056 "LC_PAPER": "ru_RU.UTF-8",
1057 "LC_TELEPHONE": "ru_RU.UTF-8",
1058 "LOGNAME": "root",
1059 "MAIL": "/var/mail/root",
1060 "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games",
1061 "PWD": "/root",
1062 "SHELL": "/bin/bash",
1063 "SHLVL": "1",
1064 "SSH_CLIENT": "192.168.80.106 32798 22",
1065 "SSH_CONNECTION": "192.168.80.106 32798 192.168.80.32 22",
1066 "SSH_TTY": "/dev/pts/1",
1067 "TERM": "xterm",
1068 "USER": "root",
1069 "_": "/bin/sh"
1070 },
1071 "fips": false,
1072 "form_factor": "Other",
1073 "fqdn": "pg-preprod-1",
1074 "gather_subset": [
1075 "all"
1076 ],
1077 "hostname": "pgmaster-preprod",
1078 "interfaces": [
1079 "ens3",
1080 "lo"
1081 ],
1082 "is_chroot": false,
1083 "iscsi_iqn": "",
1084 "kernel": "4.4.0-128-generic",
1085 "lo": {
1086 "active": true,
1087 "device": "lo",
1088 "ipv4": {
1089 "address": "127.0.0.1",
1090 "broadcast": "host",
1091 "netmask": "255.0.0.0",
1092 "network": "127.0.0.0"
1093 },
1094 "ipv6": [
1095 {
1096 "address": "::1",
1097 "prefix": "128",
1098 "scope": "host"
1099 }
1100 ],
1101 "mtu": 65536,
1102 "promisc": false,
1103 "type": "loopback"
1104 },
1105 "lsb": {
1106 "codename": "xenial",
1107 "description": "Ubuntu 16.04.4 LTS",
1108 "id": "Ubuntu",
1109 "major_release": "16",
1110 "release": "16.04"
1111 },
1112 "machine": "x86_64",
1113 "machine_id": "909dfd42060d41ad8524177654e9a902",
1114 "memfree_mb": 357,
1115 "memory_mb": {
1116 "nocache": {
1117 "free": 895,
1118 "used": 118
1119 },
1120 "real": {
1121 "free": 357,
1122 "total": 1013,
1123 "used": 656
1124 },
1125 "swap": {
1126 "cached": 0,
1127 "free": 974,
1128 "total": 974,
1129 "used": 0
1130 }
1131 },
1132 "memtotal_mb": 1013,
1133 "module_setup": true,
1134 "mounts": [
1135 {
1136 "block_available": 1886853,
1137 "block_size": 4096,
1138 "block_total": 2427692,
1139 "block_used": 540839,
1140 "device": "/dev/sda1",
1141 "fstype": "ext4",
1142 "inode_available": 579602,
1143 "inode_total": 625856,
1144 "inode_used": 46254,
1145 "mount": "/",
1146 "options": "rw,relatime,data=ordered",
1147 "size_available": 7728549888,
1148 "size_total": 9943826432,
1149 "uuid": "e783514f-48ae-4f06-9bad-37196db1bc97"
1150 }
1151 ],
1152 "nodename": "pgmaster-preprod",
1153 "os_family": "Debian",
1154 "pkg_mgr": "apt",
1155 "processor": [
1156 "0",
1157 "GenuineIntel",
1158 "QEMU Virtual CPU version 2.5+",
1159 "1",
1160 "GenuineIntel",
1161 "QEMU Virtual CPU version 2.5+"
1162 ],
1163 "processor_cores": 1,
1164 "processor_count": 2,
1165 "processor_threads_per_core": 1,
1166 "processor_vcpus": 2,
1167 "product_name": "Standard PC (i440FX + PIIX, 1996)",
1168 "product_serial": "NA",
1169 "product_uuid": "D7157EDA-E4E8-4AD5-98E6-DAA1A093DA74",
1170 "product_version": "pc-i440fx-xenial",
1171 "python": {
1172 "executable": "/usr/bin/python3",
1173 "has_sslcontext": true,
1174 "type": "cpython",
1175 "version": {
1176 "major": 3,
1177 "micro": 2,
1178 "minor": 5,
1179 "releaselevel": "final",
1180 "serial": 0
1181 },
1182 "version_info": [
1183 3,
1184 5,
1185 2,
1186 "final",
1187 0
1188 ]
1189 },
1190 "python_version": "3.5.2",
1191 "real_group_id": 0,
1192 "real_user_id": 0,
1193 "selinux": {
1194 "status": "Missing selinux Python library"
1195 },
1196 "selinux_python_present": false,
1197 "service_mgr": "systemd",
1198 "ssh_host_key_dsa_public": "AAAAB3NzaC1kc3MAAACBAJLjrGP6qxDIG2fTwzWfziAw4nOxjYleWfokUWjQmJuGQZfJJYOI01CrG5g8V2v/2K9FslULiEXjSrUiDB+O5x32x5kb0cima8Pybzfj/eeZFWLgET1Lg1hJOOF4A1Sd+KtZbOVXt3knlsE6j3auqjC0iiKk/YlGa+Iu4mmGL5mjAAAAFQDzKxNRJLlUEKZqQ/GSuQGgsMFPDwAAAIAjSGaFL4vnIo8FmmOwY28vrliIqx7IE6pe6knd6TrIY8RItYAWpxKkkyNWMXDDyq291+Kmwb5QYPrFM6MXMMD1UR/3RR4iAs7KU+yVVC3uBe26Zzinim90P3yT10SoWV5uBuFWTa0RxvJzcSpG/YZI0akdvRfxtB0tLCCyg3mkTgAAAIEAg+/Tb2qAF7hxeGTpqEWlcDqPN3V/gD3SLwIfTFCjikmQG8SjXO8zxGX0f0G4kwGLWvm6jvuqgU0SPmL2bIfoCAtReGqlgWLhKunAmz1xj3hlHBka7P8oarjLSzH2HogEsvwEWbvl5CWpd5FqZh5n/Cl7DM4c1M/w2MJXT5w89wg=",
1199 "ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBAUwxeE3Z3QIuvoBBKxzEg7bsKPPQCtKzzcfbbMsVMhS1azT1IsY0dSaHTDWcgvRsLLne1NQ1fNtV6FBwUmeTUI=",
1200 "ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAILd2CRITMdfnJKXKG62BQK9+N2s3gXa3I9IdPQO55F//",
1201 "ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQCYvOXRu6Kn7753FEyQ830T+KiEGxDVl0jmQEejBkrxqlHlUTEr6wWfuODDlNeEfDJf4+h3nVWXo0xQxM73J+REpuhTIXkV/UNi9+aU698oK4VNwsRsgDccgXLYWx7hFDPvlL3E3fTguYgtYYR1bcJWQwD32lywHVoz+FyEcBwNi2lQBLdWXpfORRx2bdbHyTkQuqGSBd2rVvqk97z1tqTZGv9Lb0MA1+3KB2T1HNsmoSIDf4WCp0C28+HDWZU7lGIfg2LJkfCcAZVtCKS20mXNCVN0MPrR9/9e1y+/ynTqRGWoOFt1gjIiDM3PUNI+F+QLPPdvgDUbpaLwwpnKwzLj",
1202 "swapfree_mb": 974,
1203 "swaptotal_mb": 974,
1204 "system": "Linux",
1205 "system_capabilities": [
1206 "cap_chown",
1207 "cap_dac_override",
1208 "cap_dac_read_search",
1209 "cap_fowner",
1210 "cap_fsetid",
1211 "cap_kill",
1212 "cap_setgid",
1213 "cap_setuid",
1214 "cap_setpcap",
1215 "cap_linux_immutable",
1216 "cap_net_bind_service",
1217 "cap_net_broadcast",
1218 "cap_net_admin",
1219 "cap_net_raw",
1220 "cap_ipc_lock",
1221 "cap_ipc_owner",
1222 "cap_sys_module",
1223 "cap_sys_rawio",
1224 "cap_sys_chroot",
1225 "cap_sys_ptrace",
1226 "cap_sys_pacct",
1227 "cap_sys_admin",
1228 "cap_sys_boot",
1229 "cap_sys_nice",
1230 "cap_sys_resource",
1231 "cap_sys_time",
1232 "cap_sys_tty_config",
1233 "cap_mknod",
1234 "cap_lease",
1235 "cap_audit_write",
1236 "cap_audit_control",
1237 "cap_setfcap",
1238 "cap_mac_override",
1239 "cap_mac_admin",
1240 "cap_syslog",
1241 "cap_wake_alarm",
1242 "cap_block_suspend",
1243 "37+ep"
1244 ],
1245 "system_capabilities_enforced": "True",
1246 "system_vendor": "QEMU",
1247 "uptime_seconds": 355672,
1248 "user_dir": "/root",
1249 "user_gecos": "root",
1250 "user_gid": 0,
1251 "user_id": "root",
1252 "user_shell": "/bin/bash",
1253 "user_uid": 0,
1254 "userspace_architecture": "x86_64",
1255 "userspace_bits": "64",
1256 "virtualization_role": "guest",
1257 "virtualization_type": "kvm"
1258 },
1259 "ansible_fips": false,
1260 "ansible_forks": 5,
1261 "ansible_form_factor": "Other",
1262 "ansible_fqdn": "pg-preprod-1",
1263 "ansible_hostname": "pgmaster-preprod",
1264 "ansible_interfaces": [
1265 "ens3",
1266 "lo"
1267 ],
1268 "ansible_inventory_sources": [
1269 "/home/bazz/git/devops/ansible/inventory.yml"
1270 ],
1271 "ansible_is_chroot": false,
1272 "ansible_iscsi_iqn": "",
1273 "ansible_kernel": "4.4.0-128-generic",
1274 "ansible_lo": {
1275 "active": true,
1276 "device": "lo",
1277 "ipv4": {
1278 "address": "127.0.0.1",
1279 "broadcast": "host",
1280 "netmask": "255.0.0.0",
1281 "network": "127.0.0.0"
1282 },
1283 "ipv6": [
1284 {
1285 "address": "::1",
1286 "prefix": "128",
1287 "scope": "host"
1288 }
1289 ],
1290 "mtu": 65536,
1291 "promisc": false,
1292 "type": "loopback"
1293 },
1294 "ansible_local": {},
1295 "ansible_lsb": {
1296 "codename": "xenial",
1297 "description": "Ubuntu 16.04.4 LTS",
1298 "id": "Ubuntu",
1299 "major_release": "16",
1300 "release": "16.04"
1301 },
1302 "ansible_machine": "x86_64",
1303 "ansible_machine_id": "909dfd42060d41ad8524177654e9a902",
1304 "ansible_memfree_mb": 357,
1305 "ansible_memory_mb": {
1306 "nocache": {
1307 "free": 895,
1308 "used": 118
1309 },
1310 "real": {
1311 "free": 357,
1312 "total": 1013,
1313 "used": 656
1314 },
1315 "swap": {
1316 "cached": 0,
1317 "free": 974,
1318 "total": 974,
1319 "used": 0
1320 }
1321 },
1322 "ansible_memtotal_mb": 1013,
1323 "ansible_mounts": [
1324 {
1325 "block_available": 1886853,
1326 "block_size": 4096,
1327 "block_total": 2427692,
1328 "block_used": 540839,
1329 "device": "/dev/sda1",
1330 "fstype": "ext4",
1331 "inode_available": 579602,
1332 "inode_total": 625856,
1333 "inode_used": 46254,
1334 "mount": "/",
1335 "options": "rw,relatime,data=ordered",
1336 "size_available": 7728549888,
1337 "size_total": 9943826432,
1338 "uuid": "e783514f-48ae-4f06-9bad-37196db1bc97"
1339 }
1340 ],
1341 "ansible_nodename": "pgmaster-preprod",
1342 "ansible_os_family": "Debian",
1343 "ansible_pkg_mgr": "apt",
1344 "ansible_playbook_python": "/usr/bin/python",
1345 "ansible_processor": [
1346 "0",
1347 "GenuineIntel",
1348 "QEMU Virtual CPU version 2.5+",
1349 "1",
1350 "GenuineIntel",
1351 "QEMU Virtual CPU version 2.5+"
1352 ],
1353 "ansible_processor_cores": 1,
1354 "ansible_processor_count": 2,
1355 "ansible_processor_threads_per_core": 1,
1356 "ansible_processor_vcpus": 2,
1357 "ansible_product_name": "Standard PC (i440FX + PIIX, 1996)",
1358 "ansible_product_serial": "NA",
1359 "ansible_product_uuid": "D7157EDA-E4E8-4AD5-98E6-DAA1A093DA74",
1360 "ansible_product_version": "pc-i440fx-xenial",
1361 "ansible_python": {
1362 "executable": "/usr/bin/python3",
1363 "has_sslcontext": true,
1364 "type": "cpython",
1365 "version": {
1366 "major": 3,
1367 "micro": 2,
1368 "minor": 5,
1369 "releaselevel": "final",
1370 "serial": 0
1371 },
1372 "version_info": [
1373 3,
1374 5,
1375 2,
1376 "final",
1377 0
1378 ]
1379 },
1380 "ansible_python_interpreter": "python3",
1381 "ansible_python_version": "3.5.2",
1382 "ansible_real_group_id": 0,
1383 "ansible_real_user_id": 0,
1384 "ansible_run_tags": [
1385 "all"
1386 ],
1387 "ansible_selinux": {
1388 "status": "Missing selinux Python library"
1389 },
1390 "ansible_selinux_python_present": false,
1391 "ansible_service_mgr": "systemd",
1392 "ansible_skip_tags": [],
1393 "ansible_ssh_host": "192.168.80.32",
1394 "ansible_ssh_host_key_dsa_public": "AAAAB3NzaC1kc3MAAACBAJLjrGP6qxDIG2fTwzWfziAw4nOxjYleWfokUWjQmJuGQZfJJYOI01CrG5g8V2v/2K9FslULiEXjSrUiDB+O5x32x5kb0cima8Pybzfj/eeZFWLgET1Lg1hJOOF4A1Sd+KtZbOVXt3knlsE6j3auqjC0iiKk/YlGa+Iu4mmGL5mjAAAAFQDzKxNRJLlUEKZqQ/GSuQGgsMFPDwAAAIAjSGaFL4vnIo8FmmOwY28vrliIqx7IE6pe6knd6TrIY8RItYAWpxKkkyNWMXDDyq291+Kmwb5QYPrFM6MXMMD1UR/3RR4iAs7KU+yVVC3uBe26Zzinim90P3yT10SoWV5uBuFWTa0RxvJzcSpG/YZI0akdvRfxtB0tLCCyg3mkTgAAAIEAg+/Tb2qAF7hxeGTpqEWlcDqPN3V/gD3SLwIfTFCjikmQG8SjXO8zxGX0f0G4kwGLWvm6jvuqgU0SPmL2bIfoCAtReGqlgWLhKunAmz1xj3hlHBka7P8oarjLSzH2HogEsvwEWbvl5CWpd5FqZh5n/Cl7DM4c1M/w2MJXT5w89wg=",
1395 "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBAUwxeE3Z3QIuvoBBKxzEg7bsKPPQCtKzzcfbbMsVMhS1azT1IsY0dSaHTDWcgvRsLLne1NQ1fNtV6FBwUmeTUI=",
1396 "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAILd2CRITMdfnJKXKG62BQK9+N2s3gXa3I9IdPQO55F//",
1397 "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQCYvOXRu6Kn7753FEyQ830T+KiEGxDVl0jmQEejBkrxqlHlUTEr6wWfuODDlNeEfDJf4+h3nVWXo0xQxM73J+REpuhTIXkV/UNi9+aU698oK4VNwsRsgDccgXLYWx7hFDPvlL3E3fTguYgtYYR1bcJWQwD32lywHVoz+FyEcBwNi2lQBLdWXpfORRx2bdbHyTkQuqGSBd2rVvqk97z1tqTZGv9Lb0MA1+3KB2T1HNsmoSIDf4WCp0C28+HDWZU7lGIfg2LJkfCcAZVtCKS20mXNCVN0MPrR9/9e1y+/ynTqRGWoOFt1gjIiDM3PUNI+F+QLPPdvgDUbpaLwwpnKwzLj",
1398 "ansible_ssh_user": "root",
1399 "ansible_swapfree_mb": 974,
1400 "ansible_swaptotal_mb": 974,
1401 "ansible_system": "Linux",
1402 "ansible_system_capabilities": [
1403 "cap_chown",
1404 "cap_dac_override",
1405 "cap_dac_read_search",
1406 "cap_fowner",
1407 "cap_fsetid",
1408 "cap_kill",
1409 "cap_setgid",
1410 "cap_setuid",
1411 "cap_setpcap",
1412 "cap_linux_immutable",
1413 "cap_net_bind_service",
1414 "cap_net_broadcast",
1415 "cap_net_admin",
1416 "cap_net_raw",
1417 "cap_ipc_lock",
1418 "cap_ipc_owner",
1419 "cap_sys_module",
1420 "cap_sys_rawio",
1421 "cap_sys_chroot",
1422 "cap_sys_ptrace",
1423 "cap_sys_pacct",
1424 "cap_sys_admin",
1425 "cap_sys_boot",
1426 "cap_sys_nice",
1427 "cap_sys_resource",
1428 "cap_sys_time",
1429 "cap_sys_tty_config",
1430 "cap_mknod",
1431 "cap_lease",
1432 "cap_audit_write",
1433 "cap_audit_control",
1434 "cap_setfcap",
1435 "cap_mac_override",
1436 "cap_mac_admin",
1437 "cap_syslog",
1438 "cap_wake_alarm",
1439 "cap_block_suspend",
1440 "37+ep"
1441 ],
1442 "ansible_system_capabilities_enforced": "True",
1443 "ansible_system_vendor": "QEMU",
1444 "ansible_uptime_seconds": 355672,
1445 "ansible_user_dir": "/root",
1446 "ansible_user_gecos": "root",
1447 "ansible_user_gid": 0,
1448 "ansible_user_id": "root",
1449 "ansible_user_shell": "/bin/bash",
1450 "ansible_user_uid": 0,
1451 "ansible_userspace_architecture": "x86_64",
1452 "ansible_userspace_bits": "64",
1453 "ansible_verbosity": 3,
1454 "ansible_version": {
1455 "full": "2.6.1",
1456 "major": 2,
1457 "minor": 6,
1458 "revision": 1,
1459 "string": "2.6.1"
1460 },
1461 "ansible_virtualization_role": "guest",
1462 "ansible_virtualization_type": "kvm",
1463 "apt_base_packages": [
1464 "python",
1465 "python-apt",
1466 "lsb-release",
1467 "sudo",
1468 "gnupg-curl",
1469 "git",
1470 "wget",
1471 "curl",
1472 "rsync",
1473 "netcat-openbsd",
1474 "openssh-server",
1475 "bsdutils",
1476 "python-pycurl",
1477 "python-httplib2",
1478 "apt-transport-https",
1479 "acl",
1480 "python-pip",
1481 "language-pack-ru"
1482 ],
1483 "apt_repositories_base": [
1484 {
1485 "repo": "deb http://archive.ubuntu.com/ubuntu/ {{ ansible_distribution_release }} main universe",
1486 "state": "present"
1487 },
1488 {
1489 "repo": "deb http://archive.ubuntu.com/ubuntu/ {{ ansible_distribution_release }}-updates main universe",
1490 "state": "present"
1491 },
1492 {
1493 "repo": "deb http://archive.ubuntu.com/ubuntu/ {{ ansible_distribution_release }}-security main universe",
1494 "state": "present"
1495 }
1496 ],
1497 "barman_compression": "custom",
1498 "barman_custom_compression_filter": "xz -cz9",
1499 "barman_custom_decompression_filter": "xz -cd",
1500 "barman_immediate_checkpoint": true,
1501 "barman_servers": [
1502 {
1503 "conn_host": "{{ hostvars[groups['dbs'][0]].ansible_default_ipv4.address }}",
1504 "conn_password": "{{ postgres_passwd }}",
1505 "conn_port": 5432,
1506 "conn_user": "postgres",
1507 "description": "Main PostgreSQL Database",
1508 "minimum_redundancy": "{{ barman_minimum_redundancy }}",
1509 "name": "main",
1510 "retention_policy": "",
1511 "ssh_command": "ssh -o StrictHostKeyChecking=no -o Compression=yes postgres@{{ hostvars[groups['dbs'][0]].ansible_default_ipv4.address }}"
1512 }
1513 ],
1514 "barman_ssh_public_key": "FillMe",
1515 "barman_user": "barman",
1516 "gather_subset": [
1517 "all"
1518 ],
1519 "group_names": [
1520 "postgres-preprod",
1521 "vm"
1522 ],
1523 "groups": {
1524 "all": [
1525 "pgbouncer-preprod-1",
1526 "pgbouncer-preprod-2",
1527 "pg-preprod-2",
1528 "pg-preprod-1",
1529 "pgpool-preprod-1",
1530 "pgpool-preprod-2",
1531 "elastic-preprod-1",
1532 "elastic-preprod-2",
1533 "gameserver-redis-slave-preprod",
1534 "gameserver-redis-preprod"
1535 ],
1536 "elastic": [
1537 "elastic-preprod-1",
1538 "elastic-preprod-2"
1539 ],
1540 "pgbouncer": [
1541 "pgbouncer-preprod-1",
1542 "pgbouncer-preprod-2"
1543 ],
1544 "pgpool-preprod": [
1545 "pgpool-preprod-1",
1546 "pgpool-preprod-2"
1547 ],
1548 "postgres-preprod": [
1549 "pg-preprod-2",
1550 "pg-preprod-1"
1551 ],
1552 "redis": [
1553 "gameserver-redis-slave-preprod",
1554 "gameserver-redis-preprod"
1555 ],
1556 "ungrouped": [],
1557 "vm": [
1558 "pgpool-preprod-1",
1559 "pgpool-preprod-2",
1560 "gameserver-redis-slave-preprod",
1561 "gameserver-redis-preprod",
1562 "elastic-preprod-1",
1563 "elastic-preprod-2",
1564 "pgbouncer-preprod-1",
1565 "pgbouncer-preprod-2",
1566 "pg-preprod-2",
1567 "pg-preprod-1"
1568 ]
1569 },
1570 "inventory_dir": "/home/bazz/git/devops/ansible",
1571 "inventory_file": "/home/bazz/git/devops/ansible/inventory.yml",
1572 "inventory_hostname": "pg-preprod-1",
1573 "inventory_hostname_short": "pg-preprod-1",
1574 "module_setup": true,
1575 "omit": "__omit_place_holder__55d9bd836330ab397915b9b72187eb2b25de7c03",
1576 "pg_performance_config": {
1577 "servers": "[{% for inventory_hostname in groups['dbs'] %}\n{{ '{' }}\n 'name': '{{ inventory_hostname }}',\n 'address': '{{ hostvars[inventory_hostname].ansible_default_ipv4.address }}',\n 'user': 'postgres',\n 'password': '{{ postgres_passwd }}'\n{{ '}' }}{% if not loop.last %},{% endif %}\n{% endfor %}]\n"
1578 },
1579 "pgbouncer_databases": [
1580 {
1581 "host": "127.0.0.1",
1582 "name": "*",
1583 "port": 5433
1584 }
1585 ],
1586 "pgbouncer_default_pool_size": "{{ (groups['postgres-preprod'] | length) * 12 }}",
1587 "pgbouncer_hba_custom": [
1588 {
1589 "address": "0.0.0.0/0",
1590 "comment": "allow all connections",
1591 "database": "all",
1592 "method": "md5",
1593 "type": "host",
1594 "user": "all"
1595 }
1596 ],
1597 "pgbouncer_listen_addr": "*",
1598 "pgbouncer_listen_port": 5432,
1599 "pgbouncer_max_client_conn": 32768,
1600 "pgbouncer_max_db_connections": 32768,
1601 "pgbouncer_max_user_connections": 32768,
1602 "pgbouncer_pidfile": "/var/run/postgresql/pgbouncer.pid",
1603 "pgbouncer_pool_mode": "transaction",
1604 "pgbouncer_users": [
1605 {
1606 "encrypted": true,
1607 "name": "backend_preprod",
1608 "pass": "MutsIdWeec5"
1609 },
1610 {
1611 "encrypted": true,
1612 "name": "fakeaccouting_preprod",
1613 "pass": "yigAutFomp1"
1614 },
1615 {
1616 "encrypted": true,
1617 "name": "postgres",
1618 "pass": "GedefUdnech3"
1619 }
1620 ],
1621 "pgpool2_auto_reattach": "on",
1622 "pgpool2_backends": "[{% for inventory_hostname in groups['dbs'] %}\n{{ '{' }}\n 'name': '{{ inventory_hostname }}',\n 'host': '{{ hostvars[inventory_hostname].ansible_default_ipv4.address }}',\n 'port': 5432,\n 'weight': 1,\n 'data_directory': '/var/lib/postgresql/9.4/main',\n 'flag': 'ALLOW_TO_FAILOVER'\n{{ '}' }}{% if not loop.last %},{% endif %}\n{% endfor %}]\n",
1623 "pgpool2_enable_pool_hba": true,
1624 "pgpool2_fail_over_on_backend_error": "on",
1625 "pgpool2_health_check_period": 0,
1626 "pgpool2_listen_addresses": "127.0.0.1",
1627 "pgpool2_load_balance_mode": false,
1628 "pgpool2_master_slave_mode": true,
1629 "pgpool2_master_slave_sub_mode": "stream",
1630 "pgpool2_max_pool": 1,
1631 "pgpool2_num_init_children": "{{ (groups['dbs'] | length) * 12 + 10}}",
1632 "pgpool2_pcp_user_name": "pcpadmin",
1633 "pgpool2_pid_file_name": "/var/run/postgresql/pgpool.pid",
1634 "pgpool2_pool_passwd": "pool_passwd",
1635 "pgpool2_pool_users": [
1636 {
1637 "name": "postgres",
1638 "pass": "{{ postgres_passwd }}"
1639 },
1640 {
1641 "name": "cdws",
1642 "pass": "{{ cdws_passwd }}"
1643 }
1644 ],
1645 "pgpool2_port": 5432,
1646 "pgpool2_sr_check_password": "{{ postgres_passwd }}",
1647 "pgpool2_sr_check_period": 10,
1648 "pgpool2_sr_check_user": "postgres",
1649 "playbook_dir": "/home/bazz/git/devops/ansible/postgres",
1650 "postgresql_admin_user": "postgres",
1651 "postgresql_cluster_name": "preprod",
1652 "postgresql_cluster_reset": false,
1653 "postgresql_ctype": "en_US.UTF-8",
1654 "postgresql_databases": [
1655 {
1656 "name": "backend_preprod",
1657 "owner": "backend_preprod"
1658 },
1659 {
1660 "name": "fakeaccouting_preprod",
1661 "owner": "fakeaccouting_preprod"
1662 }
1663 ],
1664 "postgresql_default_auth_method": "trust",
1665 "postgresql_encoding": "UTF-8",
1666 "postgresql_locale": "en_US.UTF-8",
1667 "postgresql_port": 5433,
1668 "postgresql_service_enabled": true,
1669 "postgresql_user_privileges": [
1670 {
1671 "db": "backend_preprod",
1672 "name": "backend_preprod",
1673 "priv": "ALL",
1674 "role_attr_flags": "CREATEDB"
1675 },
1676 {
1677 "db": "fakeaccouting_preprod",
1678 "name": "fakeaccouting_preprod",
1679 "priv": "ALL",
1680 "role_attr_flags": "CREATEDB"
1681 }
1682 ],
1683 "postgresql_users": [
1684 {
1685 "encrypted": true,
1686 "name": "backend_preprod",
1687 "pass": "MutsIdWeec5"
1688 },
1689 {
1690 "encrypted": true,
1691 "name": "fakeaccouting_preprod",
1692 "pass": "yigAutFomp1"
1693 },
1694 {
1695 "encrypted": true,
1696 "name": "postgres",
1697 "pass": "GedefUdnech3"
1698 },
1699 {
1700 "encrypted": true,
1701 "name": "repmgr",
1702 "pass": "Wuc7odainUv0"
1703 }
1704 ],
1705 "postgresql_version": 10,
1706 "repmgr_cluster_group": "postgres-preprod",
1707 "repmgr_conninfo": "host=127.0.0.1 dbname={{ repmgr_db_name }} user={{ repmgr_db_user }} application_name={{ inventory_hostname }}",
1708 "repmgr_db_name": "repmgr",
1709 "repmgr_db_password": "Mow5DratAigg",
1710 "repmgr_db_user": "repmgr",
1711 "repmgr_follow_command": "sleep $(shuf -i 1-10 -n 1) ; repmgr standby follow -f {{ repmgr_conf }} -W",
1712 "repmgr_group": "postgres",
1713 "repmgr_is_master": true,
1714 "repmgr_master_node": "{{ hostvars[groups['postgres-preprod'][0]].ansible_default_ipv4.address }}",
1715 "repmgr_master_response_timeout": 30,
1716 "repmgr_node_id": 1,
1717 "repmgr_pg_bindir": "/usr/bin/",
1718 "repmgr_reconnect_attempts": 3,
1719 "repmgr_reconnect_interval": 10,
1720 "repmgr_ssh_private_key": " -----BEGIN RSA PRIVATE KEY----- MIIEogIBAAKCAQEAxu3/RzFxsUkob7blDPV2gds2fSqBJgNzzcucKhO0M6TTLUMO 3LDfhGlEzLuQQ0bhBRiaw2Z+Z7CM2eLKjRDbB3A5sMouwAQfHrkFvc9cG4LUXEZR xKFhuKwf2dQ13xOZSDlVH5ma3vcCsE+nUWD7Q2S9A99vK+lCG9T/X9kRRhIcDSYl 1o6iU5wBCt5kva1z1SQsQg5gij5ICVvf6HbqkSDYNPb7US+5iQFpuB3rNvEP3zrZ rNaYBQkh6gQnTMwbcBpgFxn1fJeKUxXBTopwtXGSoIfxrdhsARxNnaiXKqg5LDFM BPLa+EqssUIqWuld3BAleSCJ8uGldGK9wKOtOQIDAQABAoIBAFudI+G/raJ+FLdO PbJ4ITmwoSmHt66wDFcMnEDsjiLyl6bSqTeN5YJvkJXRE6FINT1JlYzD2RcbweJe hfXte1Gzp335vwoDW+mkQDaoFr08xVwxrlqmEAEilBCXoK+5sPAIJ2HENgTVMVHN fTsHNPBWpo3wCpzocd+remjD6SahQ9CF6fekWI6o59BkjHa69naOyWrbb4O6xB/d YQq6QNiHYKf5ODb8r8WnPQTii8LiYm8XbG1XFpRbda9GUYIl7SfWAr+jC4lWbmGd yZOB1TLT9pX0sLjXZJhkizWrIExgkf/sNtMjiPXk8sIOpWSxacOdHDJQewiy9Oig pYBEuQECgYEA9i/7g6G10Khl0gVSjSsg2R687Ju3Qq1IN+ZMWy/XGHGZ/NBdyiKB lIjvfc6yLGWanwTC4vWTNFrk0S1kONoJd+G0VrXmXV54Kl0jKSYqkPpOe+nKEpko wjnWR6YQLsx/aWafC/X8WdKv0rFBIvVuLJhR50Dwd+UmyRMRJa2YHzECgYEAztvP zjbUPLOYp3y7AtG1zJcLL8H75j7+CYhfU0EE05v86igssLsmQih4FqjPRChcSDrK PfUIScyyWj9L50BvA3RQvf7qUVvNk/igYL48wMQ8m3BdfpymUimV9bsmkHC+jCZq YQqd/J0qi8WI9s+8Pps8GUb9y6TghhJ1QDHDvIkCgYBcFvjLdXswcT2dQVZu7hoc fa4IB/uWWoFwP5qCZbPdNel3M25SBXRZXpvPgLkPeHZNU5efFGObKwD66jLaPV1b VbeC1Ao3FPZ4SlyzsM4tayRen8ZyDI69kKsCJDFbgC2M/NEzxTE/XFteweVusUYk Mlo42gbZooNOpe49HOGRkQKBgDNEAsJGkF7i26hWnzpZosargFg7qSQs5GSUaZuG d53CAPI/NqQuHZMz2F81QvjPT9+OwmSMf5taobEAEt2i+GBQyVns/UFgkRhk+8o+ G2xiteqH9IPWatnd+I5H7YzKhE7TjnWyXeknQk4VjJYucabKbiCNmYSIviQ8Gtbn /myRAoGAcQoaOhV5B+tWBscq9F9OVpExQmWm196VrNCd74xx/hWOdvpU6EYBlP1L ihwCQYiYDC704A5fGIpQneL3hWfz+YraRXyYmBHYYXSkdcbeiloVF77tP/Cvv3N1 dTyTaQCHEOthjHNXowPaX3dJb3Fl+2YYXJQAO7Usrn+n5m8d/ow= -----END RSA PRIVATE KEY-----",
1721 "repmgr_ssh_public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDG7f9HMXGxSShvtuUM9XaB2zZ9KoEmA3PNy5wqE7QzpNMtQw7csN+EaUTMu5BDRuEFGJrDZn5nsIzZ4sqNENsHcDmwyi7ABB8euQW9z1wbgtRcRlHEoWG4rB/Z1DXfE5lIOVUfmZre9wKwT6dRYPtDZL0D328r6UIb1P9f2RFGEhwNJiXWjqJTnAEK3mS9rXPVJCxCDmCKPkgJW9/oduqRINg09vtRL7mJAWm4Hes28Q/fOtms1pgFCSHqBCdMzBtwGmAXGfV8l4pTFcFOinC1cZKgh/Gt2GwBHE2dqJcqqDksMUwE8tr4SqyxQipa6V3cECV5IIny4aV0Yr3Ao605 postgres@pgmaster-preprod",
1722 "repmgr_use_replication_slots": 1,
1723 "repmgr_user": "postgres",
1724 "syslog_ng_check_syntax_before_reload": false,
1725 "syslog_ng_client_destinations": [
1726 {
1727 "logstash.local": {
1728 "extra": {
1729 "so-keepalive": "yes"
1730 },
1731 "filters": [
1732 "f_local"
1733 ],
1734 "port": 6000,
1735 "proto": "syslog"
1736 }
1737 }
1738 ],
1739 "syslog_ng_config_includes": [
1740 "scl.conf"
1741 ],
1742 "syslog_ng_config_post_includes": [
1743 "/etc/syslog-ng/conf.d/*.conf"
1744 ],
1745 "syslog_ng_mode": "client",
1746 "target": "pg-preprod-1",
1747 "zabbix_repo": "zabbix",
1748 "zabbix_version": 2.4
1749 }
1750}
1751
1752TASK [apt : set up base apt repositories] ****************************************************************************************************************************************************************************************************
1753task path: /home/bazz/git/devops/ansible/postgres/roles/apt/tasks/main.yml:3
1754<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
1755<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
1756<192.168.80.32> (0, '/root\n', '')
1757<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
1758<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531740993.68-160212152119362 `" && echo ansible-tmp-1531740993.68-160212152119362="` echo /root/.ansible/tmp/ansible-tmp-1531740993.68-160212152119362 `" ) && sleep 0'"'"''
1759<192.168.80.32> (0, 'ansible-tmp-1531740993.68-160212152119362=/root/.ansible/tmp/ansible-tmp-1531740993.68-160212152119362\n', '')
1760Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
1761<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpDGMLdr TO /root/.ansible/tmp/ansible-tmp-1531740993.68-160212152119362/stat.py
1762<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
1763<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpDGMLdr /root/.ansible/tmp/ansible-tmp-1531740993.68-160212152119362/stat.py\n', '')
1764<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
1765<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531740993.68-160212152119362/ /root/.ansible/tmp/ansible-tmp-1531740993.68-160212152119362/stat.py && sleep 0'"'"''
1766<192.168.80.32> (0, '', '')
1767<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
1768<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531740993.68-160212152119362/stat.py && sleep 0'"'"''
1769<192.168.80.32> (0, '\r\n{"changed": false, "invocation": {"module_args": {"get_mime": true, "get_attributes": true, "checksum_algorithm": "sha1", "path": "/etc/apt/sources.list", "follow": false, "checksum_algo": "sha1", "get_md5": null, "get_checksum": true}}, "stat": {"charset": "us-ascii", "dev": 2049, "rgrp": true, "attr_flags": "e", "mtime": 1531326501.2077024, "isfifo": false, "path": "/etc/apt/sources.list", "uid": 0, "size": 194, "roth": true, "isuid": false, "atime": 1531728574.1572146, "exists": true, "woth": false, "isblk": false, "pw_name": "root", "xusr": false, "checksum": "0be377351514fb8412d855801c9d33ea2fcd15b0", "islnk": false, "nlink": 1, "gr_name": "root", "readable": true, "gid": 0, "mimetype": "text/plain", "inode": 131012, "issock": false, "isreg": true, "attributes": ["extents"], "wgrp": false, "isgid": false, "device_type": 0, "ischr": false, "xgrp": false, "isdir": false, "block_size": 4096, "executable": false, "version": "1152937108", "writeable": true, "ctime": 1531326501.2077024, "blocks": 8, "wusr": true, "xoth": false, "rusr": true, "mode": "0644"}}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
1770Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/file.py
1771<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpQ9sc2q TO /root/.ansible/tmp/ansible-tmp-1531740993.68-160212152119362/file.py
1772<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
1773<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpQ9sc2q /root/.ansible/tmp/ansible-tmp-1531740993.68-160212152119362/file.py\n', '')
1774<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
1775<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531740993.68-160212152119362/ /root/.ansible/tmp/ansible-tmp-1531740993.68-160212152119362/file.py && sleep 0'"'"''
1776<192.168.80.32> (0, '', '')
1777<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
1778<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531740993.68-160212152119362/file.py && sleep 0'"'"''
1779<192.168.80.32> (0, '\r\n{"uid": 0, "diff": {"after": {"path": "/etc/apt/sources.list"}, "before": {"path": "/etc/apt/sources.list"}}, "state": "file", "gid": 0, "owner": "root", "path": "/etc/apt/sources.list", "mode": "0644", "changed": false, "group": "root", "size": 194, "invocation": {"module_args": {"owner": null, "force": false, "src": null, "unsafe_writes": null, "follow": true, "_diff_peek": null, "attributes": null, "setype": null, "recurse": false, "mode": null, "backup": null, "group": null, "directory_mode": null, "_original_basename": "tmpQixdoh", "serole": null, "remote_src": null, "delimiter": null, "dest": "/etc/apt/sources.list", "selevel": null, "seuser": null, "state": "file", "content": null, "path": "/etc/apt/sources.list", "regexp": null}}}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
1780<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
1781<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531740993.68-160212152119362/ > /dev/null 2>&1 && sleep 0'"'"''
1782<192.168.80.32> (0, '', '')
1783ok: [pg-preprod-1] => {
1784 "changed": false,
1785 "checksum": "0be377351514fb8412d855801c9d33ea2fcd15b0",
1786 "dest": "/etc/apt/sources.list",
1787 "diff": {
1788 "after": {
1789 "path": "/etc/apt/sources.list"
1790 },
1791 "before": {
1792 "path": "/etc/apt/sources.list"
1793 }
1794 },
1795 "gid": 0,
1796 "group": "root",
1797 "invocation": {
1798 "module_args": {
1799 "_diff_peek": null,
1800 "_original_basename": "tmpQixdoh",
1801 "attributes": null,
1802 "backup": null,
1803 "content": null,
1804 "delimiter": null,
1805 "dest": "/etc/apt/sources.list",
1806 "directory_mode": null,
1807 "follow": true,
1808 "force": false,
1809 "group": null,
1810 "mode": null,
1811 "owner": null,
1812 "path": "/etc/apt/sources.list",
1813 "recurse": false,
1814 "regexp": null,
1815 "remote_src": null,
1816 "selevel": null,
1817 "serole": null,
1818 "setype": null,
1819 "seuser": null,
1820 "src": null,
1821 "state": "file",
1822 "unsafe_writes": null
1823 }
1824 },
1825 "mode": "0644",
1826 "owner": "root",
1827 "path": "/etc/apt/sources.list",
1828 "size": 194,
1829 "state": "file",
1830 "uid": 0
1831}
1832
1833TASK [apt : set up apt repositories] *********************************************************************************************************************************************************************************************************
1834task path: /home/bazz/git/devops/ansible/postgres/roles/apt/tasks/main.yml:12
1835
1836TASK [apt : set up apt repository keys] ******************************************************************************************************************************************************************************************************
1837task path: /home/bazz/git/devops/ansible/postgres/roles/apt/tasks/main.yml:19
1838
1839TASK [apt : set up apt preferences] **********************************************************************************************************************************************************************************************************
1840task path: /home/bazz/git/devops/ansible/postgres/roles/apt/tasks/main.yml:25
1841skipping: [pg-preprod-1] => {
1842 "changed": false,
1843 "skip_reason": "Conditional result was False"
1844}
1845
1846TASK [apt : update apt package cache] ********************************************************************************************************************************************************************************************************
1847task path: /home/bazz/git/devops/ansible/postgres/roles/apt/tasks/main.yml:36
1848<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
1849<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
1850<192.168.80.32> (0, '/root\n', '')
1851<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
1852<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531740995.72-186255405817000 `" && echo ansible-tmp-1531740995.72-186255405817000="` echo /root/.ansible/tmp/ansible-tmp-1531740995.72-186255405817000 `" ) && sleep 0'"'"''
1853<192.168.80.32> (0, 'ansible-tmp-1531740995.72-186255405817000=/root/.ansible/tmp/ansible-tmp-1531740995.72-186255405817000\n', '')
1854Using module file /usr/lib/python2.7/dist-packages/ansible/modules/packaging/os/apt.py
1855<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmp1UjSEM TO /root/.ansible/tmp/ansible-tmp-1531740995.72-186255405817000/apt.py
1856<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
1857<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmp1UjSEM /root/.ansible/tmp/ansible-tmp-1531740995.72-186255405817000/apt.py\n', '')
1858<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
1859<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531740995.72-186255405817000/ /root/.ansible/tmp/ansible-tmp-1531740995.72-186255405817000/apt.py && sleep 0'"'"''
1860<192.168.80.32> (0, '', '')
1861<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
1862<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531740995.72-186255405817000/apt.py && sleep 0'"'"''
1863<192.168.80.32> (0, '\r\n{"cache_update_time": 1531733776, "changed": false, "invocation": {"module_args": {"state": "present", "default_release": null, "upgrade": null, "update_cache": true, "force_apt_get": false, "deb": null, "purge": false, "cache_valid_time": 0, "allow_unauthenticated": false, "autoclean": false, "install_recommends": null, "only_upgrade": false, "force": false, "autoremove": false, "dpkg_options": "force-confdef,force-confold", "package": null}}, "cache_updated": false}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
1864<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
1865<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531740995.72-186255405817000/ > /dev/null 2>&1 && sleep 0'"'"''
1866<192.168.80.32> (0, '', '')
1867ok: [pg-preprod-1] => {
1868 "cache_update_time": 1531733776,
1869 "cache_updated": false,
1870 "changed": false,
1871 "invocation": {
1872 "module_args": {
1873 "allow_unauthenticated": false,
1874 "autoclean": false,
1875 "autoremove": false,
1876 "cache_valid_time": 0,
1877 "deb": null,
1878 "default_release": null,
1879 "dpkg_options": "force-confdef,force-confold",
1880 "force": false,
1881 "force_apt_get": false,
1882 "install_recommends": null,
1883 "only_upgrade": false,
1884 "package": null,
1885 "purge": false,
1886 "state": "present",
1887 "update_cache": true,
1888 "upgrade": null
1889 }
1890 }
1891}
1892
1893TASK [apt : install base packages] ***********************************************************************************************************************************************************************************************************
1894task path: /home/bazz/git/devops/ansible/postgres/roles/apt/tasks/main.yml:40
1895<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
1896<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
1897<192.168.80.32> (0, '/root\n', '')
1898<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
1899<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531740998.3-267468676795342 `" && echo ansible-tmp-1531740998.3-267468676795342="` echo /root/.ansible/tmp/ansible-tmp-1531740998.3-267468676795342 `" ) && sleep 0'"'"''
1900<192.168.80.32> (0, 'ansible-tmp-1531740998.3-267468676795342=/root/.ansible/tmp/ansible-tmp-1531740998.3-267468676795342\n', '')
1901Using module file /usr/lib/python2.7/dist-packages/ansible/modules/packaging/os/apt.py
1902<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmp3cQsAF TO /root/.ansible/tmp/ansible-tmp-1531740998.3-267468676795342/apt.py
1903<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
1904<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmp3cQsAF /root/.ansible/tmp/ansible-tmp-1531740998.3-267468676795342/apt.py\n', '')
1905<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
1906<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531740998.3-267468676795342/ /root/.ansible/tmp/ansible-tmp-1531740998.3-267468676795342/apt.py && sleep 0'"'"''
1907<192.168.80.32> (0, '', '')
1908<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
1909<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531740998.3-267468676795342/apt.py && sleep 0'"'"''
1910<192.168.80.32> (0, '\r\n{"changed": false, "invocation": {"module_args": {"package": ["python", "python-apt", "lsb-release", "sudo", "gnupg-curl", "git", "wget", "curl", "rsync", "netcat-openbsd", "openssh-server", "bsdutils", "python-pycurl", "python-httplib2", "apt-transport-https", "acl", "python-pip", "language-pack-ru"], "name": ["python", "python-apt", "lsb-release", "sudo", "gnupg-curl", "git", "wget", "curl", "rsync", "netcat-openbsd", "openssh-server", "bsdutils", "python-pycurl", "python-httplib2", "apt-transport-https", "acl", "python-pip", "language-pack-ru"], "force_apt_get": false, "cache_valid_time": 0, "update_cache": null, "purge": false, "dpkg_options": "force-confdef,force-confold", "upgrade": null, "autoclean": false, "allow_unauthenticated": false, "force": false, "state": "present", "only_upgrade": false, "autoremove": false, "default_release": null, "deb": null, "install_recommends": null}}, "cache_updated": false, "cache_update_time": 1531733776}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
1911<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
1912<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531740998.3-267468676795342/ > /dev/null 2>&1 && sleep 0'"'"''
1913<192.168.80.32> (0, '', '')
1914ok: [pg-preprod-1] => (item=[u'python', u'python-apt', u'lsb-release', u'sudo', u'gnupg-curl', u'git', u'wget', u'curl', u'rsync', u'netcat-openbsd', u'openssh-server', u'bsdutils', u'python-pycurl', u'python-httplib2', u'apt-transport-https', u'acl', u'python-pip', u'language-pack-ru']) => {
1915 "cache_update_time": 1531733776,
1916 "cache_updated": false,
1917 "changed": false,
1918 "invocation": {
1919 "module_args": {
1920 "allow_unauthenticated": false,
1921 "autoclean": false,
1922 "autoremove": false,
1923 "cache_valid_time": 0,
1924 "deb": null,
1925 "default_release": null,
1926 "dpkg_options": "force-confdef,force-confold",
1927 "force": false,
1928 "force_apt_get": false,
1929 "install_recommends": null,
1930 "name": [
1931 "python",
1932 "python-apt",
1933 "lsb-release",
1934 "sudo",
1935 "gnupg-curl",
1936 "git",
1937 "wget",
1938 "curl",
1939 "rsync",
1940 "netcat-openbsd",
1941 "openssh-server",
1942 "bsdutils",
1943 "python-pycurl",
1944 "python-httplib2",
1945 "apt-transport-https",
1946 "acl",
1947 "python-pip",
1948 "language-pack-ru"
1949 ],
1950 "only_upgrade": false,
1951 "package": [
1952 "python",
1953 "python-apt",
1954 "lsb-release",
1955 "sudo",
1956 "gnupg-curl",
1957 "git",
1958 "wget",
1959 "curl",
1960 "rsync",
1961 "netcat-openbsd",
1962 "openssh-server",
1963 "bsdutils",
1964 "python-pycurl",
1965 "python-httplib2",
1966 "apt-transport-https",
1967 "acl",
1968 "python-pip",
1969 "language-pack-ru"
1970 ],
1971 "purge": false,
1972 "state": "present",
1973 "update_cache": null,
1974 "upgrade": null
1975 }
1976 },
1977 "item": [
1978 "python",
1979 "python-apt",
1980 "lsb-release",
1981 "sudo",
1982 "gnupg-curl",
1983 "git",
1984 "wget",
1985 "curl",
1986 "rsync",
1987 "netcat-openbsd",
1988 "openssh-server",
1989 "bsdutils",
1990 "python-pycurl",
1991 "python-httplib2",
1992 "apt-transport-https",
1993 "acl",
1994 "python-pip",
1995 "language-pack-ru"
1996 ]
1997}
1998
1999TASK [apt : install custom packages] *********************************************************************************************************************************************************************************************************
2000task path: /home/bazz/git/devops/ansible/postgres/roles/apt/tasks/main.yml:46
2001
2002TASK [quirks : FIXME -- raise postgres user nofile] ******************************************************************************************************************************************************************************************
2003task path: /home/bazz/git/devops/ansible/postgres/roles/quirks/tasks/main.yml:3
2004<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2005<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
2006<192.168.80.32> (0, '/root\n', '')
2007<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2008<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531741000.16-9367349930312 `" && echo ansible-tmp-1531741000.16-9367349930312="` echo /root/.ansible/tmp/ansible-tmp-1531741000.16-9367349930312 `" ) && sleep 0'"'"''
2009<192.168.80.32> (0, 'ansible-tmp-1531741000.16-9367349930312=/root/.ansible/tmp/ansible-tmp-1531741000.16-9367349930312\n', '')
2010Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
2011<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpFKaFJV TO /root/.ansible/tmp/ansible-tmp-1531741000.16-9367349930312/stat.py
2012<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
2013<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpFKaFJV /root/.ansible/tmp/ansible-tmp-1531741000.16-9367349930312/stat.py\n', '')
2014<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2015<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741000.16-9367349930312/ /root/.ansible/tmp/ansible-tmp-1531741000.16-9367349930312/stat.py && sleep 0'"'"''
2016<192.168.80.32> (0, '', '')
2017<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2018<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741000.16-9367349930312/stat.py && sleep 0'"'"''
2019<192.168.80.32> (0, '\r\n{"changed": false, "stat": {"xoth": false, "ischr": false, "atime": 1531670101.7097409, "mode": "0644", "islnk": false, "rusr": true, "pw_name": "root", "isgid": false, "rgrp": true, "attr_flags": "e", "checksum": "5cc36b28a89731078317a6158621b70d72cc431d", "charset": "us-ascii", "exists": true, "isdir": false, "isreg": true, "xgrp": false, "mimetype": "text/plain", "woth": false, "wusr": true, "wgrp": false, "uid": 0, "block_size": 4096, "executable": false, "roth": true, "blocks": 8, "dev": 2049, "version": "1152936235", "nlink": 1, "gr_name": "root", "isblk": false, "inode": 137122, "isuid": false, "ctime": 1531323576.7028563, "path": "/etc/security/limits.d/postgres.conf", "isfifo": false, "size": 60, "attributes": ["extents"], "issock": false, "xusr": false, "writeable": true, "mtime": 1531323574.9788766, "device_type": 0, "readable": true, "gid": 0}, "invocation": {"module_args": {"get_attributes": true, "checksum_algorithm": "sha1", "get_mime": true, "path": "/etc/security/limits.d/postgres.conf", "follow": false, "get_checksum": true, "checksum_algo": "sha1", "get_md5": null}}}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
2020Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/file.py
2021<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmp9r7CUb TO /root/.ansible/tmp/ansible-tmp-1531741000.16-9367349930312/file.py
2022<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
2023<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmp9r7CUb /root/.ansible/tmp/ansible-tmp-1531741000.16-9367349930312/file.py\n', '')
2024<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2025<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741000.16-9367349930312/ /root/.ansible/tmp/ansible-tmp-1531741000.16-9367349930312/file.py && sleep 0'"'"''
2026<192.168.80.32> (0, '', '')
2027<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2028<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741000.16-9367349930312/file.py && sleep 0'"'"''
2029<192.168.80.32> (0, '\r\n{"group": "root", "diff": {"before": {"path": "/etc/security/limits.d/postgres.conf"}, "after": {"path": "/etc/security/limits.d/postgres.conf"}}, "gid": 0, "uid": 0, "invocation": {"module_args": {"seuser": null, "attributes": null, "_diff_peek": null, "dest": "/etc/security/limits.d/postgres.conf", "_original_basename": "tmpzsUe6w", "setype": null, "follow": true, "serole": null, "regexp": null, "backup": null, "force": false, "content": null, "group": null, "directory_mode": null, "delimiter": null, "remote_src": null, "owner": null, "src": null, "unsafe_writes": null, "selevel": null, "recurse": false, "mode": null, "path": "/etc/security/limits.d/postgres.conf", "state": "file"}}, "mode": "0644", "size": 60, "path": "/etc/security/limits.d/postgres.conf", "owner": "root", "state": "file", "changed": false}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
2030<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2031<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531741000.16-9367349930312/ > /dev/null 2>&1 && sleep 0'"'"''
2032<192.168.80.32> (0, '', '')
2033ok: [pg-preprod-1] => {
2034 "changed": false,
2035 "checksum": "5cc36b28a89731078317a6158621b70d72cc431d",
2036 "dest": "/etc/security/limits.d/postgres.conf",
2037 "diff": {
2038 "after": {
2039 "path": "/etc/security/limits.d/postgres.conf"
2040 },
2041 "before": {
2042 "path": "/etc/security/limits.d/postgres.conf"
2043 }
2044 },
2045 "gid": 0,
2046 "group": "root",
2047 "invocation": {
2048 "module_args": {
2049 "_diff_peek": null,
2050 "_original_basename": "tmpzsUe6w",
2051 "attributes": null,
2052 "backup": null,
2053 "content": null,
2054 "delimiter": null,
2055 "dest": "/etc/security/limits.d/postgres.conf",
2056 "directory_mode": null,
2057 "follow": true,
2058 "force": false,
2059 "group": null,
2060 "mode": null,
2061 "owner": null,
2062 "path": "/etc/security/limits.d/postgres.conf",
2063 "recurse": false,
2064 "regexp": null,
2065 "remote_src": null,
2066 "selevel": null,
2067 "serole": null,
2068 "setype": null,
2069 "seuser": null,
2070 "src": null,
2071 "state": "file",
2072 "unsafe_writes": null
2073 }
2074 },
2075 "mode": "0644",
2076 "owner": "root",
2077 "path": "/etc/security/limits.d/postgres.conf",
2078 "size": 60,
2079 "state": "file",
2080 "uid": 0
2081}
2082
2083TASK [quirks : FIXME -- disable DNS in ssh] **************************************************************************************************************************************************************************************************
2084task path: /home/bazz/git/devops/ansible/postgres/roles/quirks/tasks/main.yml:19
2085<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2086<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
2087<192.168.80.32> (0, '/root\n', '')
2088<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2089<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531741002.06-278854732230809 `" && echo ansible-tmp-1531741002.06-278854732230809="` echo /root/.ansible/tmp/ansible-tmp-1531741002.06-278854732230809 `" ) && sleep 0'"'"''
2090<192.168.80.32> (0, 'ansible-tmp-1531741002.06-278854732230809=/root/.ansible/tmp/ansible-tmp-1531741002.06-278854732230809\n', '')
2091Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/lineinfile.py
2092<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpp56CQe TO /root/.ansible/tmp/ansible-tmp-1531741002.06-278854732230809/lineinfile.py
2093<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
2094<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpp56CQe /root/.ansible/tmp/ansible-tmp-1531741002.06-278854732230809/lineinfile.py\n', '')
2095<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2096<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741002.06-278854732230809/ /root/.ansible/tmp/ansible-tmp-1531741002.06-278854732230809/lineinfile.py && sleep 0'"'"''
2097<192.168.80.32> (0, '', '')
2098<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2099<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741002.06-278854732230809/lineinfile.py && sleep 0'"'"''
2100<192.168.80.32> (0, '\r\n{"diff": [{"after": "", "before": "", "after_header": "/etc/ssh/sshd_config (content)", "before_header": "/etc/ssh/sshd_config (content)"}, {"after_header": "/etc/ssh/sshd_config (file attributes)", "before_header": "/etc/ssh/sshd_config (file attributes)"}], "changed": false, "backup": "", "invocation": {"module_args": {"validate": null, "insertafter": null, "backrefs": false, "mode": null, "owner": null, "content": null, "delimiter": null, "insertbefore": null, "directory_mode": null, "regexp": "\\\\s*UseDNS\\\\s+(no|yes)\\\\s*", "path": "/etc/ssh/sshd_config", "unsafe_writes": null, "setype": null, "dest": "/etc/ssh/sshd_config", "firstmatch": false, "remote_src": null, "src": null, "follow": false, "force": null, "group": null, "selevel": null, "backup": false, "serole": null, "state": "present", "attributes": null, "create": false, "seuser": null, "line": "UseDNS yes"}}, "msg": ""}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
2101<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2102<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531741002.06-278854732230809/ > /dev/null 2>&1 && sleep 0'"'"''
2103<192.168.80.32> (0, '', '')
2104ok: [pg-preprod-1] => {
2105 "backup": "",
2106 "changed": false,
2107 "diff": [
2108 {
2109 "after": "",
2110 "after_header": "/etc/ssh/sshd_config (content)",
2111 "before": "",
2112 "before_header": "/etc/ssh/sshd_config (content)"
2113 },
2114 {
2115 "after_header": "/etc/ssh/sshd_config (file attributes)",
2116 "before_header": "/etc/ssh/sshd_config (file attributes)"
2117 }
2118 ],
2119 "invocation": {
2120 "module_args": {
2121 "attributes": null,
2122 "backrefs": false,
2123 "backup": false,
2124 "content": null,
2125 "create": false,
2126 "delimiter": null,
2127 "dest": "/etc/ssh/sshd_config",
2128 "directory_mode": null,
2129 "firstmatch": false,
2130 "follow": false,
2131 "force": null,
2132 "group": null,
2133 "insertafter": null,
2134 "insertbefore": null,
2135 "line": "UseDNS yes",
2136 "mode": null,
2137 "owner": null,
2138 "path": "/etc/ssh/sshd_config",
2139 "regexp": "\\s*UseDNS\\s+(no|yes)\\s*",
2140 "remote_src": null,
2141 "selevel": null,
2142 "serole": null,
2143 "setype": null,
2144 "seuser": null,
2145 "src": null,
2146 "state": "present",
2147 "unsafe_writes": null,
2148 "validate": null
2149 }
2150 },
2151 "msg": ""
2152}
2153
2154TASK [quirks : FIXME -- restart ssh service if file changed] *********************************************************************************************************************************************************************************
2155task path: /home/bazz/git/devops/ansible/postgres/roles/quirks/tasks/main.yml:26
2156[DEPRECATION WARNING]: Using tests as filters is deprecated. Instead of using `result|changed` use `result is changed`. This feature will be removed in version 2.9. Deprecation warnings can be disabled by setting
2157deprecation_warnings=False in ansible.cfg.
2158skipping: [pg-preprod-1] => {
2159 "changed": false,
2160 "skip_reason": "Conditional result was False"
2161}
2162
2163TASK [alexey-medvedchikov.pgbouncer : install required pgbouncer packages] *******************************************************************************************************************************************************************
2164task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.pgbouncer/tasks/install.yml:3
2165<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2166<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
2167<192.168.80.32> (0, '/root\n', '')
2168<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2169<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531741003.21-85608681620481 `" && echo ansible-tmp-1531741003.21-85608681620481="` echo /root/.ansible/tmp/ansible-tmp-1531741003.21-85608681620481 `" ) && sleep 0'"'"''
2170<192.168.80.32> (0, 'ansible-tmp-1531741003.21-85608681620481=/root/.ansible/tmp/ansible-tmp-1531741003.21-85608681620481\n', '')
2171Using module file /usr/lib/python2.7/dist-packages/ansible/modules/packaging/os/apt.py
2172<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpXK2l4E TO /root/.ansible/tmp/ansible-tmp-1531741003.21-85608681620481/apt.py
2173<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
2174<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpXK2l4E /root/.ansible/tmp/ansible-tmp-1531741003.21-85608681620481/apt.py\n', '')
2175<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2176<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741003.21-85608681620481/ /root/.ansible/tmp/ansible-tmp-1531741003.21-85608681620481/apt.py && sleep 0'"'"''
2177<192.168.80.32> (0, '', '')
2178<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2179<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741003.21-85608681620481/apt.py && sleep 0'"'"''
2180<192.168.80.32> (0, '\r\n{"cache_update_time": 1531733776, "changed": false, "cache_updated": false, "invocation": {"module_args": {"install_recommends": null, "autoremove": false, "only_upgrade": false, "cache_valid_time": 0, "purge": false, "name": ["pgbouncer"], "autoclean": false, "force": false, "update_cache": null, "allow_unauthenticated": false, "upgrade": null, "package": ["pgbouncer"], "force_apt_get": false, "state": "present", "dpkg_options": "force-confdef,force-confold", "default_release": null, "deb": null}}}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
2181<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2182<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531741003.21-85608681620481/ > /dev/null 2>&1 && sleep 0'"'"''
2183<192.168.80.32> (0, '', '')
2184ok: [pg-preprod-1] => (item=[u'pgbouncer']) => {
2185 "cache_update_time": 1531733776,
2186 "cache_updated": false,
2187 "changed": false,
2188 "invocation": {
2189 "module_args": {
2190 "allow_unauthenticated": false,
2191 "autoclean": false,
2192 "autoremove": false,
2193 "cache_valid_time": 0,
2194 "deb": null,
2195 "default_release": null,
2196 "dpkg_options": "force-confdef,force-confold",
2197 "force": false,
2198 "force_apt_get": false,
2199 "install_recommends": null,
2200 "name": [
2201 "pgbouncer"
2202 ],
2203 "only_upgrade": false,
2204 "package": [
2205 "pgbouncer"
2206 ],
2207 "purge": false,
2208 "state": "present",
2209 "update_cache": null,
2210 "upgrade": null
2211 }
2212 },
2213 "item": [
2214 "pgbouncer"
2215 ]
2216}
2217
2218TASK [alexey-medvedchikov.pgbouncer : Create "/var/log/postgresql/" directory with necessary privileges] *************************************************************************************************************************************
2219task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.pgbouncer/tasks/configure.yml:3
2220<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2221<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
2222<192.168.80.32> (0, '/root\n', '')
2223<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2224<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531741005.07-164840298078400 `" && echo ansible-tmp-1531741005.07-164840298078400="` echo /root/.ansible/tmp/ansible-tmp-1531741005.07-164840298078400 `" ) && sleep 0'"'"''
2225<192.168.80.32> (0, 'ansible-tmp-1531741005.07-164840298078400=/root/.ansible/tmp/ansible-tmp-1531741005.07-164840298078400\n', '')
2226Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/file.py
2227<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpa3iowU TO /root/.ansible/tmp/ansible-tmp-1531741005.07-164840298078400/file.py
2228<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
2229<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpa3iowU /root/.ansible/tmp/ansible-tmp-1531741005.07-164840298078400/file.py\n', '')
2230<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2231<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741005.07-164840298078400/ /root/.ansible/tmp/ansible-tmp-1531741005.07-164840298078400/file.py && sleep 0'"'"''
2232<192.168.80.32> (0, '', '')
2233<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2234<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741005.07-164840298078400/file.py && sleep 0'"'"''
2235<192.168.80.32> (0, '\r\n{"path": "/var/log/postgresql/", "uid": 108, "changed": false, "owner": "postgres", "diff": {"after": {"path": "/var/log/postgresql/"}, "before": {"path": "/var/log/postgresql/"}}, "gid": 114, "size": 4096, "mode": "0755", "invocation": {"module_args": {"path": "/var/log/postgresql/", "remote_src": null, "serole": null, "group": "postgres", "regexp": null, "seuser": null, "owner": "postgres", "content": null, "follow": true, "unsafe_writes": null, "setype": null, "mode": 493, "recurse": false, "_original_basename": null, "_diff_peek": null, "dest": "/var/log/postgresql/", "attributes": null, "delimiter": null, "selevel": null, "src": null, "state": "directory", "backup": null, "directory_mode": null, "force": false}}, "group": "postgres", "state": "directory"}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
2236<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2237<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531741005.07-164840298078400/ > /dev/null 2>&1 && sleep 0'"'"''
2238<192.168.80.32> (0, '', '')
2239ok: [pg-preprod-1] => {
2240 "changed": false,
2241 "diff": {
2242 "after": {
2243 "path": "/var/log/postgresql/"
2244 },
2245 "before": {
2246 "path": "/var/log/postgresql/"
2247 }
2248 },
2249 "gid": 114,
2250 "group": "postgres",
2251 "invocation": {
2252 "module_args": {
2253 "_diff_peek": null,
2254 "_original_basename": null,
2255 "attributes": null,
2256 "backup": null,
2257 "content": null,
2258 "delimiter": null,
2259 "dest": "/var/log/postgresql/",
2260 "directory_mode": null,
2261 "follow": true,
2262 "force": false,
2263 "group": "postgres",
2264 "mode": 493,
2265 "owner": "postgres",
2266 "path": "/var/log/postgresql/",
2267 "recurse": false,
2268 "regexp": null,
2269 "remote_src": null,
2270 "selevel": null,
2271 "serole": null,
2272 "setype": null,
2273 "seuser": null,
2274 "src": null,
2275 "state": "directory",
2276 "unsafe_writes": null
2277 }
2278 },
2279 "mode": "0755",
2280 "owner": "postgres",
2281 "path": "/var/log/postgresql/",
2282 "size": 4096,
2283 "state": "directory",
2284 "uid": 108
2285}
2286
2287TASK [alexey-medvedchikov.pgbouncer : Divert pgbouncer main configuration file /etc/pgbouncer/pgbouncer.ini] *********************************************************************************************************************************
2288task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.pgbouncer/tasks/configure.yml:11
2289<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2290<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
2291<192.168.80.32> (0, '/root\n', '')
2292<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2293<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531741006.14-198384253257335 `" && echo ansible-tmp-1531741006.14-198384253257335="` echo /root/.ansible/tmp/ansible-tmp-1531741006.14-198384253257335 `" ) && sleep 0'"'"''
2294<192.168.80.32> (0, 'ansible-tmp-1531741006.14-198384253257335=/root/.ansible/tmp/ansible-tmp-1531741006.14-198384253257335\n', '')
2295Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
2296<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpapdbJ5 TO /root/.ansible/tmp/ansible-tmp-1531741006.14-198384253257335/command.py
2297<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
2298<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpapdbJ5 /root/.ansible/tmp/ansible-tmp-1531741006.14-198384253257335/command.py\n', '')
2299<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2300<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741006.14-198384253257335/ /root/.ansible/tmp/ansible-tmp-1531741006.14-198384253257335/command.py && sleep 0'"'"''
2301<192.168.80.32> (0, '', '')
2302<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2303<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741006.14-198384253257335/command.py && sleep 0'"'"''
2304<192.168.80.32> (0, '\r\n{"cmd": ["dpkg-divert", "--quiet", "--local", "--divert", "/etc/pgbouncer/pgbouncer.ini.dpkg-divert", "--rename", "/etc/pgbouncer/pgbouncer.ini"], "changed": false, "rc": 0, "invocation": {"module_args": {"executable": null, "warn": true, "_raw_params": "dpkg-divert --quiet --local --divert /etc/pgbouncer/pgbouncer.ini.dpkg-divert --rename /etc/pgbouncer/pgbouncer.ini", "stdin": null, "removes": null, "chdir": null, "argv": null, "_uses_shell": false, "creates": "/etc/pgbouncer/pgbouncer.ini.dpkg-divert"}}, "stdout": "skipped, since /etc/pgbouncer/pgbouncer.ini.dpkg-divert exists"}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
2305<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2306<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531741006.14-198384253257335/ > /dev/null 2>&1 && sleep 0'"'"''
2307<192.168.80.32> (0, '', '')
2308ok: [pg-preprod-1] => {
2309 "changed": false,
2310 "cmd": [
2311 "dpkg-divert",
2312 "--quiet",
2313 "--local",
2314 "--divert",
2315 "/etc/pgbouncer/pgbouncer.ini.dpkg-divert",
2316 "--rename",
2317 "/etc/pgbouncer/pgbouncer.ini"
2318 ],
2319 "invocation": {
2320 "module_args": {
2321 "_raw_params": "dpkg-divert --quiet --local --divert /etc/pgbouncer/pgbouncer.ini.dpkg-divert --rename /etc/pgbouncer/pgbouncer.ini",
2322 "_uses_shell": false,
2323 "argv": null,
2324 "chdir": null,
2325 "creates": "/etc/pgbouncer/pgbouncer.ini.dpkg-divert",
2326 "executable": null,
2327 "removes": null,
2328 "stdin": null,
2329 "warn": true
2330 }
2331 },
2332 "rc": 0,
2333 "stdout": "skipped, since /etc/pgbouncer/pgbouncer.ini.dpkg-divert exists",
2334 "stdout_lines": [
2335 "skipped, since /etc/pgbouncer/pgbouncer.ini.dpkg-divert exists"
2336 ]
2337}
2338
2339TASK [alexey-medvedchikov.pgbouncer : pgbouncer update restart witness] **********************************************************************************************************************************************************************
2340task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.pgbouncer/tasks/configure.yml:16
2341<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2342<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
2343<192.168.80.32> (0, '/root\n', '')
2344<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2345<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531741007.39-167347905356386 `" && echo ansible-tmp-1531741007.39-167347905356386="` echo /root/.ansible/tmp/ansible-tmp-1531741007.39-167347905356386 `" ) && sleep 0'"'"''
2346<192.168.80.32> (0, 'ansible-tmp-1531741007.39-167347905356386=/root/.ansible/tmp/ansible-tmp-1531741007.39-167347905356386\n', '')
2347Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
2348<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpCzcMFb TO /root/.ansible/tmp/ansible-tmp-1531741007.39-167347905356386/stat.py
2349<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
2350<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpCzcMFb /root/.ansible/tmp/ansible-tmp-1531741007.39-167347905356386/stat.py\n', '')
2351<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2352<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741007.39-167347905356386/ /root/.ansible/tmp/ansible-tmp-1531741007.39-167347905356386/stat.py && sleep 0'"'"''
2353<192.168.80.32> (0, '', '')
2354<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2355<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741007.39-167347905356386/stat.py && sleep 0'"'"''
2356<192.168.80.32> (0, '\r\n{"stat": {"size": 245, "isdir": false, "xoth": false, "xgrp": false, "roth": false, "issock": false, "rgrp": false, "device_type": 0, "exists": true, "islnk": false, "pw_name": "postgres", "block_size": 4096, "dev": 2049, "uid": 108, "attr_flags": "e", "charset": "us-ascii", "gr_name": "postgres", "checksum": "4fe62f60ddf4dbd0d4b344002cdb05b56f33adc3", "version": "18446744072598193361", "atime": 1531728591.8530056, "gid": 114, "mtime": 1531387618.1792004, "isblk": false, "blocks": 8, "executable": false, "isgid": false, "nlink": 1, "readable": true, "path": "/etc/pgbouncer/.pgbouncer.ini.restart-witness", "ischr": false, "wusr": true, "rusr": true, "attributes": ["extents"], "writeable": true, "ctime": 1531387620.4471695, "isfifo": false, "mode": "0600", "xusr": false, "wgrp": false, "mimetype": "text/plain", "isuid": false, "inode": 142422, "woth": false, "isreg": true}, "changed": false, "invocation": {"module_args": {"get_checksum": true, "checksum_algo": "sha1", "checksum_algorithm": "sha1", "get_md5": null, "follow": false, "path": "/etc/pgbouncer/.pgbouncer.ini.restart-witness", "get_attributes": true, "get_mime": true}}}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
2357Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/file.py
2358<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpxzwiQh TO /root/.ansible/tmp/ansible-tmp-1531741007.39-167347905356386/file.py
2359<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
2360<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpxzwiQh /root/.ansible/tmp/ansible-tmp-1531741007.39-167347905356386/file.py\n', '')
2361<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2362<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741007.39-167347905356386/ /root/.ansible/tmp/ansible-tmp-1531741007.39-167347905356386/file.py && sleep 0'"'"''
2363<192.168.80.32> (0, '', '')
2364<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2365<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741007.39-167347905356386/file.py && sleep 0'"'"''
2366<192.168.80.32> (0, '\r\n{"mode": "0600", "path": "/etc/pgbouncer/.pgbouncer.ini.restart-witness", "group": "postgres", "uid": 108, "gid": 114, "owner": "postgres", "invocation": {"module_args": {"_diff_peek": null, "regexp": null, "group": "postgres", "_original_basename": "pgbouncer.ini.restart-witness.j2", "dest": "/etc/pgbouncer/.pgbouncer.ini.restart-witness", "unsafe_writes": null, "remote_src": null, "mode": 384, "path": "/etc/pgbouncer/.pgbouncer.ini.restart-witness", "serole": null, "attributes": null, "content": null, "src": null, "selevel": null, "backup": null, "directory_mode": null, "follow": false, "owner": "postgres", "state": "file", "force": false, "recurse": false, "seuser": null, "setype": null, "delimiter": null}}, "state": "file", "changed": false, "size": 245, "diff": {"before": {"path": "/etc/pgbouncer/.pgbouncer.ini.restart-witness"}, "after": {"path": "/etc/pgbouncer/.pgbouncer.ini.restart-witness"}}}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
2367<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2368<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531741007.39-167347905356386/ > /dev/null 2>&1 && sleep 0'"'"''
2369<192.168.80.32> (0, '', '')
2370ok: [pg-preprod-1] => {
2371 "changed": false,
2372 "checksum": "4fe62f60ddf4dbd0d4b344002cdb05b56f33adc3",
2373 "dest": "/etc/pgbouncer/.pgbouncer.ini.restart-witness",
2374 "diff": {
2375 "after": {
2376 "path": "/etc/pgbouncer/.pgbouncer.ini.restart-witness"
2377 },
2378 "before": {
2379 "path": "/etc/pgbouncer/.pgbouncer.ini.restart-witness"
2380 }
2381 },
2382 "gid": 114,
2383 "group": "postgres",
2384 "invocation": {
2385 "module_args": {
2386 "_diff_peek": null,
2387 "_original_basename": "pgbouncer.ini.restart-witness.j2",
2388 "attributes": null,
2389 "backup": null,
2390 "content": null,
2391 "delimiter": null,
2392 "dest": "/etc/pgbouncer/.pgbouncer.ini.restart-witness",
2393 "directory_mode": null,
2394 "follow": false,
2395 "force": false,
2396 "group": "postgres",
2397 "mode": 384,
2398 "owner": "postgres",
2399 "path": "/etc/pgbouncer/.pgbouncer.ini.restart-witness",
2400 "recurse": false,
2401 "regexp": null,
2402 "remote_src": null,
2403 "selevel": null,
2404 "serole": null,
2405 "setype": null,
2406 "seuser": null,
2407 "src": null,
2408 "state": "file",
2409 "unsafe_writes": null
2410 }
2411 },
2412 "mode": "0600",
2413 "owner": "postgres",
2414 "path": "/etc/pgbouncer/.pgbouncer.ini.restart-witness",
2415 "size": 245,
2416 "state": "file",
2417 "uid": 108
2418}
2419
2420TASK [alexey-medvedchikov.pgbouncer : pgbouncer main configuration file /etc/pgbouncer/pgbouncer.ini] ****************************************************************************************************************************************
2421task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.pgbouncer/tasks/configure.yml:26
2422<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2423<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
2424<192.168.80.32> (0, '/root\n', '')
2425<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2426<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531741009.24-136688605811627 `" && echo ansible-tmp-1531741009.24-136688605811627="` echo /root/.ansible/tmp/ansible-tmp-1531741009.24-136688605811627 `" ) && sleep 0'"'"''
2427<192.168.80.32> (0, 'ansible-tmp-1531741009.24-136688605811627=/root/.ansible/tmp/ansible-tmp-1531741009.24-136688605811627\n', '')
2428Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
2429<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmp6J7byv TO /root/.ansible/tmp/ansible-tmp-1531741009.24-136688605811627/stat.py
2430<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
2431<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmp6J7byv /root/.ansible/tmp/ansible-tmp-1531741009.24-136688605811627/stat.py\n', '')
2432<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2433<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741009.24-136688605811627/ /root/.ansible/tmp/ansible-tmp-1531741009.24-136688605811627/stat.py && sleep 0'"'"''
2434<192.168.80.32> (0, '', '')
2435<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2436<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741009.24-136688605811627/stat.py && sleep 0'"'"''
2437<192.168.80.32> (0, '\r\n{"invocation": {"module_args": {"follow": false, "checksum_algo": "sha1", "path": "/etc/pgbouncer/pgbouncer.ini", "get_attributes": true, "get_checksum": true, "checksum_algorithm": "sha1", "get_mime": true, "get_md5": null}}, "changed": false, "stat": {"isblk": false, "inode": 142423, "wusr": true, "pw_name": "postgres", "rusr": true, "readable": true, "size": 7521, "attr_flags": "e", "issock": false, "mtime": 1531387622.563141, "mode": "0640", "exists": true, "isfifo": false, "uid": 108, "isreg": true, "device_type": 0, "checksum": "e3b287b839726fb5bdbb09346a360d61c27faa73", "atime": 1531728593.9009814, "attributes": ["extents"], "rgrp": true, "xoth": false, "blocks": 16, "path": "/etc/pgbouncer/pgbouncer.ini", "isuid": false, "islnk": false, "isdir": false, "nlink": 1, "roth": false, "writeable": true, "isgid": false, "charset": "us-ascii", "woth": false, "xusr": false, "dev": 2049, "ischr": false, "executable": false, "gr_name": "postgres", "ctime": 1531387624.1751192, "version": "18446744072598193373", "wgrp": false, "gid": 114, "block_size": 4096, "mimetype": "text/plain", "xgrp": false}}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
2438Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/file.py
2439<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpuzCgc2 TO /root/.ansible/tmp/ansible-tmp-1531741009.24-136688605811627/file.py
2440<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
2441<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpuzCgc2 /root/.ansible/tmp/ansible-tmp-1531741009.24-136688605811627/file.py\n', '')
2442<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2443<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741009.24-136688605811627/ /root/.ansible/tmp/ansible-tmp-1531741009.24-136688605811627/file.py && sleep 0'"'"''
2444<192.168.80.32> (0, '', '')
2445<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2446<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741009.24-136688605811627/file.py && sleep 0'"'"''
2447<192.168.80.32> (0, '\r\n{"changed": false, "uid": 108, "diff": {"after": {"path": "/etc/pgbouncer/pgbouncer.ini"}, "before": {"path": "/etc/pgbouncer/pgbouncer.ini"}}, "path": "/etc/pgbouncer/pgbouncer.ini", "group": "postgres", "size": 7521, "invocation": {"module_args": {"follow": false, "attributes": null, "recurse": false, "selevel": null, "unsafe_writes": null, "mode": 416, "owner": "postgres", "_diff_peek": null, "directory_mode": null, "setype": null, "group": "postgres", "src": null, "_original_basename": "pgbouncer.ini.j2", "dest": "/etc/pgbouncer/pgbouncer.ini", "seuser": null, "path": "/etc/pgbouncer/pgbouncer.ini", "remote_src": null, "force": false, "state": "file", "regexp": null, "delimiter": null, "content": null, "backup": null, "serole": null}}, "mode": "0640", "state": "file", "owner": "postgres", "gid": 114}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
2448<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2449<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531741009.24-136688605811627/ > /dev/null 2>&1 && sleep 0'"'"''
2450<192.168.80.32> (0, '', '')
2451ok: [pg-preprod-1] => {
2452 "changed": false,
2453 "checksum": "e3b287b839726fb5bdbb09346a360d61c27faa73",
2454 "dest": "/etc/pgbouncer/pgbouncer.ini",
2455 "diff": {
2456 "after": {
2457 "path": "/etc/pgbouncer/pgbouncer.ini"
2458 },
2459 "before": {
2460 "path": "/etc/pgbouncer/pgbouncer.ini"
2461 }
2462 },
2463 "gid": 114,
2464 "group": "postgres",
2465 "invocation": {
2466 "module_args": {
2467 "_diff_peek": null,
2468 "_original_basename": "pgbouncer.ini.j2",
2469 "attributes": null,
2470 "backup": null,
2471 "content": null,
2472 "delimiter": null,
2473 "dest": "/etc/pgbouncer/pgbouncer.ini",
2474 "directory_mode": null,
2475 "follow": false,
2476 "force": false,
2477 "group": "postgres",
2478 "mode": 416,
2479 "owner": "postgres",
2480 "path": "/etc/pgbouncer/pgbouncer.ini",
2481 "recurse": false,
2482 "regexp": null,
2483 "remote_src": null,
2484 "selevel": null,
2485 "serole": null,
2486 "setype": null,
2487 "seuser": null,
2488 "src": null,
2489 "state": "file",
2490 "unsafe_writes": null
2491 }
2492 },
2493 "mode": "0640",
2494 "owner": "postgres",
2495 "path": "/etc/pgbouncer/pgbouncer.ini",
2496 "size": 7521,
2497 "state": "file",
2498 "uid": 108
2499}
2500
2501TASK [alexey-medvedchikov.pgbouncer : Divert pgbouncer hba file /etc/pgbouncer/pgbouncer_hba.conf] *******************************************************************************************************************************************
2502task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.pgbouncer/tasks/configure.yml:36
2503<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2504<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
2505<192.168.80.32> (0, '/root\n', '')
2506<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2507<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531741011.05-218314839131267 `" && echo ansible-tmp-1531741011.05-218314839131267="` echo /root/.ansible/tmp/ansible-tmp-1531741011.05-218314839131267 `" ) && sleep 0'"'"''
2508<192.168.80.32> (0, 'ansible-tmp-1531741011.05-218314839131267=/root/.ansible/tmp/ansible-tmp-1531741011.05-218314839131267\n', '')
2509Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
2510<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpsZaIhS TO /root/.ansible/tmp/ansible-tmp-1531741011.05-218314839131267/command.py
2511<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
2512<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpsZaIhS /root/.ansible/tmp/ansible-tmp-1531741011.05-218314839131267/command.py\n', '')
2513<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2514<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741011.05-218314839131267/ /root/.ansible/tmp/ansible-tmp-1531741011.05-218314839131267/command.py && sleep 0'"'"''
2515<192.168.80.32> (0, '', '')
2516<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2517<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741011.05-218314839131267/command.py && sleep 0'"'"''
2518<192.168.80.32> (0, '\r\n{"changed": true, "rc": 0, "stderr": "", "cmd": ["dpkg-divert", "--quiet", "--local", "--divert", "/etc/pgbouncer/pgbouncer_hba.conf.dpkg-divert", "--rename", "/etc/pgbouncer/pgbouncer_hba.conf"], "delta": "0:00:00.016934", "end": "2018-07-16 11:36:51.831875", "invocation": {"module_args": {"creates": "/etc/pgbouncer/pgbouncer_hba.conf.dpkg-divert", "executable": null, "_raw_params": "dpkg-divert --quiet --local --divert /etc/pgbouncer/pgbouncer_hba.conf.dpkg-divert --rename /etc/pgbouncer/pgbouncer_hba.conf", "argv": null, "_uses_shell": false, "warn": true, "stdin": null, "chdir": null, "removes": null}}, "stdout": "", "start": "2018-07-16 11:36:51.814941"}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
2519<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2520<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531741011.05-218314839131267/ > /dev/null 2>&1 && sleep 0'"'"''
2521<192.168.80.32> (0, '', '')
2522changed: [pg-preprod-1] => {
2523 "changed": true,
2524 "cmd": [
2525 "dpkg-divert",
2526 "--quiet",
2527 "--local",
2528 "--divert",
2529 "/etc/pgbouncer/pgbouncer_hba.conf.dpkg-divert",
2530 "--rename",
2531 "/etc/pgbouncer/pgbouncer_hba.conf"
2532 ],
2533 "delta": "0:00:00.016934",
2534 "end": "2018-07-16 11:36:51.831875",
2535 "invocation": {
2536 "module_args": {
2537 "_raw_params": "dpkg-divert --quiet --local --divert /etc/pgbouncer/pgbouncer_hba.conf.dpkg-divert --rename /etc/pgbouncer/pgbouncer_hba.conf",
2538 "_uses_shell": false,
2539 "argv": null,
2540 "chdir": null,
2541 "creates": "/etc/pgbouncer/pgbouncer_hba.conf.dpkg-divert",
2542 "executable": null,
2543 "removes": null,
2544 "stdin": null,
2545 "warn": true
2546 }
2547 },
2548 "rc": 0,
2549 "start": "2018-07-16 11:36:51.814941",
2550 "stderr": "",
2551 "stderr_lines": [],
2552 "stdout": "",
2553 "stdout_lines": []
2554}
2555
2556TASK [alexey-medvedchikov.pgbouncer : pgbouncer hba file /etc/pgbouncer/pgbouncer_hba.conf] **************************************************************************************************************************************************
2557task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.pgbouncer/tasks/configure.yml:41
2558<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2559<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
2560<192.168.80.32> (0, '/root\n', '')
2561<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2562<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531741012.16-14905229460993 `" && echo ansible-tmp-1531741012.16-14905229460993="` echo /root/.ansible/tmp/ansible-tmp-1531741012.16-14905229460993 `" ) && sleep 0'"'"''
2563<192.168.80.32> (0, 'ansible-tmp-1531741012.16-14905229460993=/root/.ansible/tmp/ansible-tmp-1531741012.16-14905229460993\n', '')
2564Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
2565<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpIaPy1u TO /root/.ansible/tmp/ansible-tmp-1531741012.16-14905229460993/stat.py
2566<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
2567<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpIaPy1u /root/.ansible/tmp/ansible-tmp-1531741012.16-14905229460993/stat.py\n', '')
2568<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2569<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741012.16-14905229460993/ /root/.ansible/tmp/ansible-tmp-1531741012.16-14905229460993/stat.py && sleep 0'"'"''
2570<192.168.80.32> (0, '', '')
2571<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2572<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741012.16-14905229460993/stat.py && sleep 0'"'"''
2573<192.168.80.32> (0, '\r\n{"stat": {"mtime": 1531387628.9030557, "wgrp": false, "nlink": 1, "isreg": true, "pw_name": "postgres", "version": "18446744072598193392", "isfifo": false, "dev": 2049, "isuid": false, "size": 3369, "xgrp": false, "atime": 1531728596.9569454, "mimetype": "text/plain", "checksum": "3fa19032e8ab5d678123e7db51fefdbe4df4157f", "blocks": 8, "ischr": false, "inode": 142424, "roth": false, "xusr": false, "isdir": false, "gr_name": "postgres", "xoth": false, "isgid": false, "isblk": false, "rgrp": true, "writeable": true, "woth": false, "attributes": ["extents"], "block_size": 4096, "islnk": false, "mode": "0640", "path": "/etc/pgbouncer/pgbouncer_hba.conf", "charset": "us-ascii", "gid": 114, "executable": false, "exists": true, "wusr": true, "ctime": 1531387630.5470335, "uid": 108, "readable": true, "device_type": 0, "attr_flags": "e", "rusr": true, "issock": false}, "changed": false, "invocation": {"module_args": {"follow": false, "get_mime": true, "get_attributes": true, "checksum_algo": "sha1", "get_md5": null, "get_checksum": true, "path": "/etc/pgbouncer/pgbouncer_hba.conf", "checksum_algorithm": "sha1"}}}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
2574Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/file.py
2575<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpZtqDrb TO /root/.ansible/tmp/ansible-tmp-1531741012.16-14905229460993/file.py
2576<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
2577<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpZtqDrb /root/.ansible/tmp/ansible-tmp-1531741012.16-14905229460993/file.py\n', '')
2578<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2579<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741012.16-14905229460993/ /root/.ansible/tmp/ansible-tmp-1531741012.16-14905229460993/file.py && sleep 0'"'"''
2580<192.168.80.32> (0, '', '')
2581<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2582<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741012.16-14905229460993/file.py && sleep 0'"'"''
2583<192.168.80.32> (0, '\r\n{"owner": "postgres", "mode": "0640", "path": "/etc/pgbouncer/pgbouncer_hba.conf", "uid": 108, "group": "postgres", "size": 3369, "gid": 114, "changed": false, "invocation": {"module_args": {"follow": false, "backup": null, "unsafe_writes": null, "state": "file", "recurse": false, "dest": "/etc/pgbouncer/pgbouncer_hba.conf", "owner": "postgres", "content": null, "_original_basename": "pgbouncer_hba.conf.j2", "src": null, "seuser": null, "remote_src": null, "selevel": null, "path": "/etc/pgbouncer/pgbouncer_hba.conf", "serole": null, "setype": null, "attributes": null, "_diff_peek": null, "delimiter": null, "mode": 416, "group": "postgres", "force": false, "directory_mode": null, "regexp": null}}, "diff": {"after": {"path": "/etc/pgbouncer/pgbouncer_hba.conf"}, "before": {"path": "/etc/pgbouncer/pgbouncer_hba.conf"}}, "state": "file"}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
2584<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2585<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531741012.16-14905229460993/ > /dev/null 2>&1 && sleep 0'"'"''
2586<192.168.80.32> (0, '', '')
2587ok: [pg-preprod-1] => {
2588 "changed": false,
2589 "checksum": "3fa19032e8ab5d678123e7db51fefdbe4df4157f",
2590 "dest": "/etc/pgbouncer/pgbouncer_hba.conf",
2591 "diff": {
2592 "after": {
2593 "path": "/etc/pgbouncer/pgbouncer_hba.conf"
2594 },
2595 "before": {
2596 "path": "/etc/pgbouncer/pgbouncer_hba.conf"
2597 }
2598 },
2599 "gid": 114,
2600 "group": "postgres",
2601 "invocation": {
2602 "module_args": {
2603 "_diff_peek": null,
2604 "_original_basename": "pgbouncer_hba.conf.j2",
2605 "attributes": null,
2606 "backup": null,
2607 "content": null,
2608 "delimiter": null,
2609 "dest": "/etc/pgbouncer/pgbouncer_hba.conf",
2610 "directory_mode": null,
2611 "follow": false,
2612 "force": false,
2613 "group": "postgres",
2614 "mode": 416,
2615 "owner": "postgres",
2616 "path": "/etc/pgbouncer/pgbouncer_hba.conf",
2617 "recurse": false,
2618 "regexp": null,
2619 "remote_src": null,
2620 "selevel": null,
2621 "serole": null,
2622 "setype": null,
2623 "seuser": null,
2624 "src": null,
2625 "state": "file",
2626 "unsafe_writes": null
2627 }
2628 },
2629 "mode": "0640",
2630 "owner": "postgres",
2631 "path": "/etc/pgbouncer/pgbouncer_hba.conf",
2632 "size": 3369,
2633 "state": "file",
2634 "uid": 108
2635}
2636
2637TASK [alexey-medvedchikov.pgbouncer : Divert pgbouncer user list file /etc/pgbouncer/userlist.txt] *******************************************************************************************************************************************
2638task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.pgbouncer/tasks/configure.yml:51
2639<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2640<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
2641<192.168.80.32> (0, '/root\n', '')
2642<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2643<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531741013.99-222609705272761 `" && echo ansible-tmp-1531741013.99-222609705272761="` echo /root/.ansible/tmp/ansible-tmp-1531741013.99-222609705272761 `" ) && sleep 0'"'"''
2644<192.168.80.32> (0, 'ansible-tmp-1531741013.99-222609705272761=/root/.ansible/tmp/ansible-tmp-1531741013.99-222609705272761\n', '')
2645Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
2646<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpnySQ9D TO /root/.ansible/tmp/ansible-tmp-1531741013.99-222609705272761/command.py
2647<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
2648<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpnySQ9D /root/.ansible/tmp/ansible-tmp-1531741013.99-222609705272761/command.py\n', '')
2649<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2650<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741013.99-222609705272761/ /root/.ansible/tmp/ansible-tmp-1531741013.99-222609705272761/command.py && sleep 0'"'"''
2651<192.168.80.32> (0, '', '')
2652<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2653<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741013.99-222609705272761/command.py && sleep 0'"'"''
2654<192.168.80.32> (0, '\r\n{"invocation": {"module_args": {"warn": true, "removes": null, "creates": "/etc/pgbouncer/userlist.txt.dpkg-divert", "chdir": null, "_raw_params": "dpkg-divert --quiet --local --divert /etc/pgbouncer/userlist.txt.dpkg-divert --rename /etc/pgbouncer/userlist.txt", "argv": null, "_uses_shell": false, "executable": null, "stdin": null}}, "cmd": ["dpkg-divert", "--quiet", "--local", "--divert", "/etc/pgbouncer/userlist.txt.dpkg-divert", "--rename", "/etc/pgbouncer/userlist.txt"], "rc": 0, "changed": false, "stdout": "skipped, since /etc/pgbouncer/userlist.txt.dpkg-divert exists"}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
2655<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2656<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531741013.99-222609705272761/ > /dev/null 2>&1 && sleep 0'"'"''
2657<192.168.80.32> (0, '', '')
2658ok: [pg-preprod-1] => {
2659 "changed": false,
2660 "cmd": [
2661 "dpkg-divert",
2662 "--quiet",
2663 "--local",
2664 "--divert",
2665 "/etc/pgbouncer/userlist.txt.dpkg-divert",
2666 "--rename",
2667 "/etc/pgbouncer/userlist.txt"
2668 ],
2669 "invocation": {
2670 "module_args": {
2671 "_raw_params": "dpkg-divert --quiet --local --divert /etc/pgbouncer/userlist.txt.dpkg-divert --rename /etc/pgbouncer/userlist.txt",
2672 "_uses_shell": false,
2673 "argv": null,
2674 "chdir": null,
2675 "creates": "/etc/pgbouncer/userlist.txt.dpkg-divert",
2676 "executable": null,
2677 "removes": null,
2678 "stdin": null,
2679 "warn": true
2680 }
2681 },
2682 "rc": 0,
2683 "stdout": "skipped, since /etc/pgbouncer/userlist.txt.dpkg-divert exists",
2684 "stdout_lines": [
2685 "skipped, since /etc/pgbouncer/userlist.txt.dpkg-divert exists"
2686 ]
2687}
2688
2689TASK [alexey-medvedchikov.pgbouncer : add users to userlist.txt] *****************************************************************************************************************************************************************************
2690task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.pgbouncer/tasks/configure.yml:56
2691<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2692<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
2693<192.168.80.32> (0, '/root\n', '')
2694<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2695<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531741015.15-268082272208697 `" && echo ansible-tmp-1531741015.15-268082272208697="` echo /root/.ansible/tmp/ansible-tmp-1531741015.15-268082272208697 `" ) && sleep 0'"'"''
2696<192.168.80.32> (0, 'ansible-tmp-1531741015.15-268082272208697=/root/.ansible/tmp/ansible-tmp-1531741015.15-268082272208697\n', '')
2697Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
2698<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpDrmHze TO /root/.ansible/tmp/ansible-tmp-1531741015.15-268082272208697/stat.py
2699<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
2700<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpDrmHze /root/.ansible/tmp/ansible-tmp-1531741015.15-268082272208697/stat.py\n', '')
2701<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2702<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741015.15-268082272208697/ /root/.ansible/tmp/ansible-tmp-1531741015.15-268082272208697/stat.py && sleep 0'"'"''
2703<192.168.80.32> (0, '', '')
2704<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2705<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741015.15-268082272208697/stat.py && sleep 0'"'"''
2706<192.168.80.32> (0, '\r\n{"stat": {"ctime": 1531387638.1789312, "roth": false, "mtime": 1531387635.654965, "islnk": false, "wgrp": false, "readable": true, "woth": false, "rgrp": true, "attributes": ["extents"], "wusr": true, "xoth": false, "checksum": "f127b67d121ee6a961f47deb89722c5fa91dc072", "executable": false, "blocks": 8, "isfifo": false, "nlink": 1, "isreg": true, "isblk": false, "ischr": false, "xusr": false, "mimetype": "text/plain", "writeable": true, "version": "18446744072598193418", "size": 190, "rusr": true, "isgid": false, "xgrp": false, "gr_name": "postgres", "path": "/etc/pgbouncer/userlist.txt", "pw_name": "postgres", "attr_flags": "e", "uid": 108, "dev": 2049, "inode": 142435, "mode": "0640", "issock": false, "atime": 1531728600.2289069, "isuid": false, "charset": "us-ascii", "block_size": 4096, "exists": true, "gid": 114, "device_type": 0, "isdir": false}, "changed": false, "invocation": {"module_args": {"get_attributes": true, "get_checksum": true, "path": "/etc/pgbouncer/userlist.txt", "get_md5": null, "checksum_algorithm": "sha1", "follow": false, "checksum_algo": "sha1", "get_mime": true}}}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
2707Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/file.py
2708<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpiv92Uh TO /root/.ansible/tmp/ansible-tmp-1531741015.15-268082272208697/file.py
2709<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
2710<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpiv92Uh /root/.ansible/tmp/ansible-tmp-1531741015.15-268082272208697/file.py\n', '')
2711<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2712<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741015.15-268082272208697/ /root/.ansible/tmp/ansible-tmp-1531741015.15-268082272208697/file.py && sleep 0'"'"''
2713<192.168.80.32> (0, '', '')
2714<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2715<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741015.15-268082272208697/file.py && sleep 0'"'"''
2716<192.168.80.32> (0, '\r\n{"mode": "0640", "group": "postgres", "uid": 108, "diff": {"before": {"path": "/etc/pgbouncer/userlist.txt"}, "after": {"path": "/etc/pgbouncer/userlist.txt"}}, "changed": false, "path": "/etc/pgbouncer/userlist.txt", "gid": 114, "state": "file", "owner": "postgres", "invocation": {"module_args": {"group": "postgres", "mode": 416, "_diff_peek": null, "recurse": false, "remote_src": null, "path": "/etc/pgbouncer/userlist.txt", "follow": true, "seuser": null, "directory_mode": null, "selevel": null, "regexp": null, "serole": null, "attributes": null, "delimiter": null, "_original_basename": "tmph1zBOd", "unsafe_writes": null, "state": "file", "owner": "postgres", "setype": null, "force": false, "backup": null, "dest": "/etc/pgbouncer/userlist.txt", "src": null, "content": null}}, "size": 190}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
2717<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2718<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531741015.15-268082272208697/ > /dev/null 2>&1 && sleep 0'"'"''
2719<192.168.80.32> (0, '', '')
2720ok: [pg-preprod-1] => {
2721 "changed": false,
2722 "checksum": "f127b67d121ee6a961f47deb89722c5fa91dc072",
2723 "dest": "/etc/pgbouncer/userlist.txt",
2724 "diff": {
2725 "after": {
2726 "path": "/etc/pgbouncer/userlist.txt"
2727 },
2728 "before": {
2729 "path": "/etc/pgbouncer/userlist.txt"
2730 }
2731 },
2732 "gid": 114,
2733 "group": "postgres",
2734 "invocation": {
2735 "module_args": {
2736 "_diff_peek": null,
2737 "_original_basename": "tmph1zBOd",
2738 "attributes": null,
2739 "backup": null,
2740 "content": null,
2741 "delimiter": null,
2742 "dest": "/etc/pgbouncer/userlist.txt",
2743 "directory_mode": null,
2744 "follow": true,
2745 "force": false,
2746 "group": "postgres",
2747 "mode": 416,
2748 "owner": "postgres",
2749 "path": "/etc/pgbouncer/userlist.txt",
2750 "recurse": false,
2751 "regexp": null,
2752 "remote_src": null,
2753 "selevel": null,
2754 "serole": null,
2755 "setype": null,
2756 "seuser": null,
2757 "src": null,
2758 "state": "file",
2759 "unsafe_writes": null
2760 }
2761 },
2762 "mode": "0640",
2763 "owner": "postgres",
2764 "path": "/etc/pgbouncer/userlist.txt",
2765 "size": 190,
2766 "state": "file",
2767 "uid": 108
2768}
2769
2770TASK [alexey-medvedchikov.pgbouncer : Divert pgbouncer default file /etc/default/pgbouncer] **************************************************************************************************************************************************
2771task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.pgbouncer/tasks/configure.yml:70
2772<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2773<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
2774<192.168.80.32> (0, '/root\n', '')
2775<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2776<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531741017.01-230572638476251 `" && echo ansible-tmp-1531741017.01-230572638476251="` echo /root/.ansible/tmp/ansible-tmp-1531741017.01-230572638476251 `" ) && sleep 0'"'"''
2777<192.168.80.32> (0, 'ansible-tmp-1531741017.01-230572638476251=/root/.ansible/tmp/ansible-tmp-1531741017.01-230572638476251\n', '')
2778Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
2779<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpoCJ7xp TO /root/.ansible/tmp/ansible-tmp-1531741017.01-230572638476251/command.py
2780<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
2781<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpoCJ7xp /root/.ansible/tmp/ansible-tmp-1531741017.01-230572638476251/command.py\n', '')
2782<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2783<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741017.01-230572638476251/ /root/.ansible/tmp/ansible-tmp-1531741017.01-230572638476251/command.py && sleep 0'"'"''
2784<192.168.80.32> (0, '', '')
2785<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2786<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741017.01-230572638476251/command.py && sleep 0'"'"''
2787<192.168.80.32> (0, '\r\n{"rc": 0, "stdout": "skipped, since /etc/default/pgbouncer.dpkg-divert exists", "cmd": ["dpkg-divert", "--quiet", "--local", "--divert", "/etc/default/pgbouncer.dpkg-divert", "--rename", "/etc/default/pgbouncer"], "invocation": {"module_args": {"_raw_params": "dpkg-divert --quiet --local --divert /etc/default/pgbouncer.dpkg-divert --rename /etc/default/pgbouncer", "argv": null, "removes": null, "executable": null, "chdir": null, "stdin": null, "creates": "/etc/default/pgbouncer.dpkg-divert", "_uses_shell": false, "warn": true}}, "changed": false}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
2788<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2789<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531741017.01-230572638476251/ > /dev/null 2>&1 && sleep 0'"'"''
2790<192.168.80.32> (0, '', '')
2791ok: [pg-preprod-1] => {
2792 "changed": false,
2793 "cmd": [
2794 "dpkg-divert",
2795 "--quiet",
2796 "--local",
2797 "--divert",
2798 "/etc/default/pgbouncer.dpkg-divert",
2799 "--rename",
2800 "/etc/default/pgbouncer"
2801 ],
2802 "invocation": {
2803 "module_args": {
2804 "_raw_params": "dpkg-divert --quiet --local --divert /etc/default/pgbouncer.dpkg-divert --rename /etc/default/pgbouncer",
2805 "_uses_shell": false,
2806 "argv": null,
2807 "chdir": null,
2808 "creates": "/etc/default/pgbouncer.dpkg-divert",
2809 "executable": null,
2810 "removes": null,
2811 "stdin": null,
2812 "warn": true
2813 }
2814 },
2815 "rc": 0,
2816 "stdout": "skipped, since /etc/default/pgbouncer.dpkg-divert exists",
2817 "stdout_lines": [
2818 "skipped, since /etc/default/pgbouncer.dpkg-divert exists"
2819 ]
2820}
2821
2822TASK [alexey-medvedchikov.pgbouncer : pgbouncer default file /etc/default/pgbouncer] *********************************************************************************************************************************************************
2823task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.pgbouncer/tasks/configure.yml:75
2824<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2825<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
2826<192.168.80.32> (0, '/root\n', '')
2827<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2828<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531741018.88-227799064928828 `" && echo ansible-tmp-1531741018.88-227799064928828="` echo /root/.ansible/tmp/ansible-tmp-1531741018.88-227799064928828 `" ) && sleep 0'"'"''
2829<192.168.80.32> (0, 'ansible-tmp-1531741018.88-227799064928828=/root/.ansible/tmp/ansible-tmp-1531741018.88-227799064928828\n', '')
2830Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
2831<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpXOHnra TO /root/.ansible/tmp/ansible-tmp-1531741018.88-227799064928828/stat.py
2832<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
2833<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpXOHnra /root/.ansible/tmp/ansible-tmp-1531741018.88-227799064928828/stat.py\n', '')
2834<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2835<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741018.88-227799064928828/ /root/.ansible/tmp/ansible-tmp-1531741018.88-227799064928828/stat.py && sleep 0'"'"''
2836<192.168.80.32> (0, '', '')
2837<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2838<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741018.88-227799064928828/stat.py && sleep 0'"'"''
2839<192.168.80.32> (0, '\r\n{"changed": false, "stat": {"issock": false, "size": 280, "xusr": false, "isdir": false, "block_size": 4096, "exists": true, "xoth": false, "isfifo": false, "atime": 1531728603.4048693, "attributes": ["extents"], "xgrp": false, "dev": 2049, "attr_flags": "e", "mtime": 1531387642.2788763, "device_type": 0, "writeable": true, "checksum": "684b1c2dbe850a8204693f473e2db7397fd4c21d", "ctime": 1531387643.1268651, "charset": "us-ascii", "wgrp": false, "rgrp": true, "isgid": false, "blocks": 8, "inode": 142443, "gid": 0, "wusr": true, "pw_name": "root", "islnk": false, "isblk": false, "gr_name": "root", "version": "18446744072598193439", "isreg": true, "rusr": true, "woth": false, "mode": "0644", "nlink": 1, "path": "/etc/default/pgbouncer", "ischr": false, "readable": true, "executable": false, "uid": 0, "mimetype": "text/plain", "isuid": false, "roth": true}, "invocation": {"module_args": {"checksum_algorithm": "sha1", "get_md5": null, "follow": false, "get_checksum": true, "get_attributes": true, "path": "/etc/default/pgbouncer", "get_mime": true, "checksum_algo": "sha1"}}}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
2840Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/file.py
2841<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmp62zsze TO /root/.ansible/tmp/ansible-tmp-1531741018.88-227799064928828/file.py
2842<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
2843<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmp62zsze /root/.ansible/tmp/ansible-tmp-1531741018.88-227799064928828/file.py\n', '')
2844<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2845<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741018.88-227799064928828/ /root/.ansible/tmp/ansible-tmp-1531741018.88-227799064928828/file.py && sleep 0'"'"''
2846<192.168.80.32> (0, '', '')
2847<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2848<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741018.88-227799064928828/file.py && sleep 0'"'"''
2849<192.168.80.32> (0, '\r\n{"changed": false, "mode": "0644", "size": 280, "group": "root", "invocation": {"module_args": {"serole": null, "content": null, "backup": null, "delimiter": null, "owner": "root", "unsafe_writes": null, "selevel": null, "force": false, "directory_mode": null, "recurse": false, "regexp": null, "dest": "/etc/default/pgbouncer", "state": "file", "remote_src": null, "mode": 420, "group": "root", "attributes": null, "_diff_peek": null, "seuser": null, "_original_basename": "pgbouncer_default.j2", "path": "/etc/default/pgbouncer", "src": null, "setype": null, "follow": false}}, "gid": 0, "owner": "root", "path": "/etc/default/pgbouncer", "state": "file", "diff": {"before": {"path": "/etc/default/pgbouncer"}, "after": {"path": "/etc/default/pgbouncer"}}, "uid": 0}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
2850<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2851<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531741018.88-227799064928828/ > /dev/null 2>&1 && sleep 0'"'"''
2852<192.168.80.32> (0, '', '')
2853ok: [pg-preprod-1] => {
2854 "changed": false,
2855 "checksum": "684b1c2dbe850a8204693f473e2db7397fd4c21d",
2856 "dest": "/etc/default/pgbouncer",
2857 "diff": {
2858 "after": {
2859 "path": "/etc/default/pgbouncer"
2860 },
2861 "before": {
2862 "path": "/etc/default/pgbouncer"
2863 }
2864 },
2865 "gid": 0,
2866 "group": "root",
2867 "invocation": {
2868 "module_args": {
2869 "_diff_peek": null,
2870 "_original_basename": "pgbouncer_default.j2",
2871 "attributes": null,
2872 "backup": null,
2873 "content": null,
2874 "delimiter": null,
2875 "dest": "/etc/default/pgbouncer",
2876 "directory_mode": null,
2877 "follow": false,
2878 "force": false,
2879 "group": "root",
2880 "mode": 420,
2881 "owner": "root",
2882 "path": "/etc/default/pgbouncer",
2883 "recurse": false,
2884 "regexp": null,
2885 "remote_src": null,
2886 "selevel": null,
2887 "serole": null,
2888 "setype": null,
2889 "seuser": null,
2890 "src": null,
2891 "state": "file",
2892 "unsafe_writes": null
2893 }
2894 },
2895 "mode": "0644",
2896 "owner": "root",
2897 "path": "/etc/default/pgbouncer",
2898 "size": 280,
2899 "state": "file",
2900 "uid": 0
2901}
2902
2903TASK [alexey-medvedchikov.pgbouncer : ensure pgbouncer is running] ***************************************************************************************************************************************************************************
2904task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.pgbouncer/tasks/configure.yml:85
2905<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2906<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
2907<192.168.80.32> (0, '/root\n', '')
2908<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2909<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531741021.04-216782543079272 `" && echo ansible-tmp-1531741021.04-216782543079272="` echo /root/.ansible/tmp/ansible-tmp-1531741021.04-216782543079272 `" ) && sleep 0'"'"''
2910<192.168.80.32> (0, 'ansible-tmp-1531741021.04-216782543079272=/root/.ansible/tmp/ansible-tmp-1531741021.04-216782543079272\n', '')
2911Using module file /usr/lib/python2.7/dist-packages/ansible/modules/system/systemd.py
2912<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpNJZFEO TO /root/.ansible/tmp/ansible-tmp-1531741021.04-216782543079272/systemd.py
2913<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
2914<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpNJZFEO /root/.ansible/tmp/ansible-tmp-1531741021.04-216782543079272/systemd.py\n', '')
2915<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2916<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741021.04-216782543079272/ /root/.ansible/tmp/ansible-tmp-1531741021.04-216782543079272/systemd.py && sleep 0'"'"''
2917<192.168.80.32> (0, '', '')
2918<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2919<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741021.04-216782543079272/systemd.py && sleep 0'"'"''
2920<192.168.80.32> (0, '\r\n{"status": {"ExecMainCode": "0", "LimitASSoft": "18446744073709551615", "NotifyAccess": "none", "LimitNOFILE": "4096", "JobTimeoutAction": "none", "LimitCORESoft": "0", "FileDescriptorStoreMax": "0", "Nice": "0", "RootDirectoryStartOnly": "no", "CanReload": "yes", "OOMScoreAdjust": "0", "Names": "pgbouncer.service", "TimeoutStartUSec": "5min", "StandardOutput": "journal", "JobTimeoutUSec": "infinity", "FailureAction": "none", "MemoryLimit": "18446744073709551615", "StandardError": "inherit", "StopWhenUnneeded": "no", "PermissionsStartOnly": "no", "InactiveEnterTimestampMonotonic": "2331826070", "StateChangeTimestamp": "Thu 2018-07-12 09:27:29 UTC", "RestartUSec": "100ms", "NoNewPrivileges": "no", "StandardInput": "null", "StartupBlockIOWeight": "18446744073709551615", "SystemCallErrorNumber": "0", "Wants": "network-online.target", "LimitRTPRIO": "0", "LimitFSIZE": "18446744073709551615", "WatchdogUSec": "0", "DefaultDependencies": "yes", "ExecReload": "{ path=/etc/init.d/pgbouncer ; argv[]=/etc/init.d/pgbouncer reload ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "AssertTimestamp": "Thu 2018-07-12 09:27:27 UTC", "LimitNPROCSoft": "3917", "ExecMainPID": "0", "LimitAS": "18446744073709551615", "ControlPID": "0", "SyslogFacility": "3", "CPUAccounting": "no", "Description": "LSB: start pgbouncer", "ActiveEnterTimestamp": "Thu 2018-07-12 09:27:27 UTC", "CapabilityBoundingSet": "18446744073709551615", "ConditionTimestampMonotonic": "2331827052", "LimitDATA": "18446744073709551615", "LimitRTTIMESoft": "18446744073709551615", "LimitRSSSoft": "18446744073709551615", "StateChangeTimestampMonotonic": "2333447154", "InactiveExitTimestamp": "Thu 2018-07-12 09:27:27 UTC", "RefuseManualStop": "no", "LimitNICESoft": "0", "SendSIGHUP": "no", "NFileDescriptorStore": "0", "MountFlags": "0", "WantedBy": "multi-user.target graphical.target", "ExecStart": "{ path=/etc/init.d/pgbouncer ; argv[]=/etc/init.d/pgbouncer start ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "LimitSTACKSoft": "8388608", "IOScheduling": "0", "Result": "success", "PrivateTmp": "no", "MainPID": "0", "StartupCPUShares": "18446744073709551615", "SyslogPriority": "30", "ExecMainExitTimestampMonotonic": "0", "RefuseManualStart": "no", "LimitDATASoft": "18446744073709551615", "CPUSchedulingResetOnFork": "no", "NeedDaemonReload": "no", "LimitNICE": "0", "IgnoreOnIsolate": "no", "TasksCurrent": "18446744073709551615", "Conflicts": "shutdown.target", "ActiveEnterTimestampMonotonic": "2331860765", "Documentation": "man:systemd-sysv-generator(8)", "SubState": "running", "LimitSIGPENDINGSoft": "3917", "SourcePath": "/etc/init.d/pgbouncer", "LimitSIGPENDING": "3917", "LimitSTACK": "18446744073709551615", "CPUSchedulingPolicy": "0", "TTYVHangup": "no", "PrivateNetwork": "no", "CPUSchedulingPriority": "0", "UnitFileState": "bad", "Id": "pgbouncer.service", "LimitMSGQUEUE": "819200", "LimitNOFILESoft": "1024", "Slice": "system.slice", "TasksAccounting": "no", "KillSignal": "15", "LimitRTTIME": "18446744073709551615", "SyslogLevelPrefix": "yes", "ActiveExitTimestampMonotonic": "2331782349", "LimitMEMLOCKSoft": "65536", "LimitRSS": "18446744073709551615", "TimerSlackNSec": "50000", "Restart": "no", "MemoryAccounting": "no", "Delegate": "no", "TasksMax": "18446744073709551615", "OnFailureJobMode": "replace", "CanIsolate": "no", "RuntimeDirectoryMode": "0755", "StatusErrno": "0", "InactiveEnterTimestamp": "Thu 2018-07-12 09:27:27 UTC", "UtmpMode": "init", "CPUQuotaPerSecUSec": "infinity", "ActiveExitTimestamp": "Thu 2018-07-12 09:27:27 UTC", "BlockIOAccounting": "no", "NonBlocking": "no", "ActiveState": "active", "After": "local-fs.target basic.target sysinit.target network-online.target systemd-journald-dev-log.socket system.slice remote-fs.target nss-lookup.target postgresql.service systemd-journald.socket", "SameProcessGroup": "no", "ExecMainStartTimestampMonotonic": "0", "UMask": "0022", "Transient": "no", "MemoryCurrent": "18446744073709551615", "KillMode": "process", "InactiveExitTimestampMonotonic": "2331840821", "AmbientCapabilities": "0", "RuntimeMaxUSec": "infinity", "SecureBits": "0", "ControlGroup": "/system.slice/pgbouncer.service", "CPUShares": "18446744073709551615", "UnitFilePreset": "enabled", "TTYVTDisallocate": "no", "LimitFSIZESoft": "18446744073709551615", "LimitCORE": "18446744073709551615", "BlockIOWeight": "18446744073709551615", "StartLimitInterval": "10000000", "LimitCPUSoft": "18446744073709551615", "ProtectHome": "no", "LoadState": "loaded", "CanStop": "yes", "CanStart": "yes", "WatchdogTimestampMonotonic": "2331860739", "DevicePolicy": "auto", "CPUUsageNSec": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "ExecStop": "{ path=/etc/init.d/pgbouncer ; argv[]=/etc/init.d/pgbouncer stop ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "LimitRTPRIOSoft": "0", "LimitCPU": "18446744073709551615", "ExecMainStatus": "0", "RemainAfterExit": "yes", "ConditionResult": "yes", "PrivateDevices": "no", "StartLimitBurst": "5", "AssertTimestampMonotonic": "2331827052", "Before": "multi-user.target shutdown.target graphical.target", "Requires": "sysinit.target system.slice", "AssertResult": "yes", "LimitLOCKSSoft": "18446744073709551615", "IgnoreSIGPIPE": "no", "StartLimitAction": "none", "WatchdogTimestamp": "Thu 2018-07-12 09:27:27 UTC", "GuessMainPID": "no", "SyslogLevel": "6", "SendSIGKILL": "yes", "LimitMSGQUEUESoft": "819200", "TTYReset": "no", "LimitMEMLOCK": "65536", "ProtectSystem": "no", "AllowIsolate": "no", "TimeoutStopUSec": "5min", "LimitNPROC": "3917", "ConditionTimestamp": "Thu 2018-07-12 09:27:27 UTC", "Type": "forking", "FragmentPath": "/run/systemd/generator.late/pgbouncer.service"}, "changed": false, "state": "started", "name": "pgbouncer", "invocation": {"module_args": {"user": false, "daemon_reload": false, "name": "pgbouncer", "no_block": false, "masked": null, "enabled": null, "force": null, "state": "started"}}}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
2921<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
2922<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531741021.04-216782543079272/ > /dev/null 2>&1 && sleep 0'"'"''
2923<192.168.80.32> (0, '', '')
2924ok: [pg-preprod-1] => {
2925 "changed": false,
2926 "invocation": {
2927 "module_args": {
2928 "daemon_reload": false,
2929 "enabled": null,
2930 "force": null,
2931 "masked": null,
2932 "name": "pgbouncer",
2933 "no_block": false,
2934 "state": "started",
2935 "user": false
2936 }
2937 },
2938 "name": "pgbouncer",
2939 "state": "started",
2940 "status": {
2941 "ActiveEnterTimestamp": "Thu 2018-07-12 09:27:27 UTC",
2942 "ActiveEnterTimestampMonotonic": "2331860765",
2943 "ActiveExitTimestamp": "Thu 2018-07-12 09:27:27 UTC",
2944 "ActiveExitTimestampMonotonic": "2331782349",
2945 "ActiveState": "active",
2946 "After": "local-fs.target basic.target sysinit.target network-online.target systemd-journald-dev-log.socket system.slice remote-fs.target nss-lookup.target postgresql.service systemd-journald.socket",
2947 "AllowIsolate": "no",
2948 "AmbientCapabilities": "0",
2949 "AssertResult": "yes",
2950 "AssertTimestamp": "Thu 2018-07-12 09:27:27 UTC",
2951 "AssertTimestampMonotonic": "2331827052",
2952 "Before": "multi-user.target shutdown.target graphical.target",
2953 "BlockIOAccounting": "no",
2954 "BlockIOWeight": "18446744073709551615",
2955 "CPUAccounting": "no",
2956 "CPUQuotaPerSecUSec": "infinity",
2957 "CPUSchedulingPolicy": "0",
2958 "CPUSchedulingPriority": "0",
2959 "CPUSchedulingResetOnFork": "no",
2960 "CPUShares": "18446744073709551615",
2961 "CPUUsageNSec": "18446744073709551615",
2962 "CanIsolate": "no",
2963 "CanReload": "yes",
2964 "CanStart": "yes",
2965 "CanStop": "yes",
2966 "CapabilityBoundingSet": "18446744073709551615",
2967 "ConditionResult": "yes",
2968 "ConditionTimestamp": "Thu 2018-07-12 09:27:27 UTC",
2969 "ConditionTimestampMonotonic": "2331827052",
2970 "Conflicts": "shutdown.target",
2971 "ControlGroup": "/system.slice/pgbouncer.service",
2972 "ControlPID": "0",
2973 "DefaultDependencies": "yes",
2974 "Delegate": "no",
2975 "Description": "LSB: start pgbouncer",
2976 "DevicePolicy": "auto",
2977 "Documentation": "man:systemd-sysv-generator(8)",
2978 "ExecMainCode": "0",
2979 "ExecMainExitTimestampMonotonic": "0",
2980 "ExecMainPID": "0",
2981 "ExecMainStartTimestampMonotonic": "0",
2982 "ExecMainStatus": "0",
2983 "ExecReload": "{ path=/etc/init.d/pgbouncer ; argv[]=/etc/init.d/pgbouncer reload ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }",
2984 "ExecStart": "{ path=/etc/init.d/pgbouncer ; argv[]=/etc/init.d/pgbouncer start ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }",
2985 "ExecStop": "{ path=/etc/init.d/pgbouncer ; argv[]=/etc/init.d/pgbouncer stop ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }",
2986 "FailureAction": "none",
2987 "FileDescriptorStoreMax": "0",
2988 "FragmentPath": "/run/systemd/generator.late/pgbouncer.service",
2989 "GuessMainPID": "no",
2990 "IOScheduling": "0",
2991 "Id": "pgbouncer.service",
2992 "IgnoreOnIsolate": "no",
2993 "IgnoreSIGPIPE": "no",
2994 "InactiveEnterTimestamp": "Thu 2018-07-12 09:27:27 UTC",
2995 "InactiveEnterTimestampMonotonic": "2331826070",
2996 "InactiveExitTimestamp": "Thu 2018-07-12 09:27:27 UTC",
2997 "InactiveExitTimestampMonotonic": "2331840821",
2998 "JobTimeoutAction": "none",
2999 "JobTimeoutUSec": "infinity",
3000 "KillMode": "process",
3001 "KillSignal": "15",
3002 "LimitAS": "18446744073709551615",
3003 "LimitASSoft": "18446744073709551615",
3004 "LimitCORE": "18446744073709551615",
3005 "LimitCORESoft": "0",
3006 "LimitCPU": "18446744073709551615",
3007 "LimitCPUSoft": "18446744073709551615",
3008 "LimitDATA": "18446744073709551615",
3009 "LimitDATASoft": "18446744073709551615",
3010 "LimitFSIZE": "18446744073709551615",
3011 "LimitFSIZESoft": "18446744073709551615",
3012 "LimitLOCKS": "18446744073709551615",
3013 "LimitLOCKSSoft": "18446744073709551615",
3014 "LimitMEMLOCK": "65536",
3015 "LimitMEMLOCKSoft": "65536",
3016 "LimitMSGQUEUE": "819200",
3017 "LimitMSGQUEUESoft": "819200",
3018 "LimitNICE": "0",
3019 "LimitNICESoft": "0",
3020 "LimitNOFILE": "4096",
3021 "LimitNOFILESoft": "1024",
3022 "LimitNPROC": "3917",
3023 "LimitNPROCSoft": "3917",
3024 "LimitRSS": "18446744073709551615",
3025 "LimitRSSSoft": "18446744073709551615",
3026 "LimitRTPRIO": "0",
3027 "LimitRTPRIOSoft": "0",
3028 "LimitRTTIME": "18446744073709551615",
3029 "LimitRTTIMESoft": "18446744073709551615",
3030 "LimitSIGPENDING": "3917",
3031 "LimitSIGPENDINGSoft": "3917",
3032 "LimitSTACK": "18446744073709551615",
3033 "LimitSTACKSoft": "8388608",
3034 "LoadState": "loaded",
3035 "MainPID": "0",
3036 "MemoryAccounting": "no",
3037 "MemoryCurrent": "18446744073709551615",
3038 "MemoryLimit": "18446744073709551615",
3039 "MountFlags": "0",
3040 "NFileDescriptorStore": "0",
3041 "Names": "pgbouncer.service",
3042 "NeedDaemonReload": "no",
3043 "Nice": "0",
3044 "NoNewPrivileges": "no",
3045 "NonBlocking": "no",
3046 "NotifyAccess": "none",
3047 "OOMScoreAdjust": "0",
3048 "OnFailureJobMode": "replace",
3049 "PermissionsStartOnly": "no",
3050 "PrivateDevices": "no",
3051 "PrivateNetwork": "no",
3052 "PrivateTmp": "no",
3053 "ProtectHome": "no",
3054 "ProtectSystem": "no",
3055 "RefuseManualStart": "no",
3056 "RefuseManualStop": "no",
3057 "RemainAfterExit": "yes",
3058 "Requires": "sysinit.target system.slice",
3059 "Restart": "no",
3060 "RestartUSec": "100ms",
3061 "Result": "success",
3062 "RootDirectoryStartOnly": "no",
3063 "RuntimeDirectoryMode": "0755",
3064 "RuntimeMaxUSec": "infinity",
3065 "SameProcessGroup": "no",
3066 "SecureBits": "0",
3067 "SendSIGHUP": "no",
3068 "SendSIGKILL": "yes",
3069 "Slice": "system.slice",
3070 "SourcePath": "/etc/init.d/pgbouncer",
3071 "StandardError": "inherit",
3072 "StandardInput": "null",
3073 "StandardOutput": "journal",
3074 "StartLimitAction": "none",
3075 "StartLimitBurst": "5",
3076 "StartLimitInterval": "10000000",
3077 "StartupBlockIOWeight": "18446744073709551615",
3078 "StartupCPUShares": "18446744073709551615",
3079 "StateChangeTimestamp": "Thu 2018-07-12 09:27:29 UTC",
3080 "StateChangeTimestampMonotonic": "2333447154",
3081 "StatusErrno": "0",
3082 "StopWhenUnneeded": "no",
3083 "SubState": "running",
3084 "SyslogFacility": "3",
3085 "SyslogLevel": "6",
3086 "SyslogLevelPrefix": "yes",
3087 "SyslogPriority": "30",
3088 "SystemCallErrorNumber": "0",
3089 "TTYReset": "no",
3090 "TTYVHangup": "no",
3091 "TTYVTDisallocate": "no",
3092 "TasksAccounting": "no",
3093 "TasksCurrent": "18446744073709551615",
3094 "TasksMax": "18446744073709551615",
3095 "TimeoutStartUSec": "5min",
3096 "TimeoutStopUSec": "5min",
3097 "TimerSlackNSec": "50000",
3098 "Transient": "no",
3099 "Type": "forking",
3100 "UMask": "0022",
3101 "UnitFilePreset": "enabled",
3102 "UnitFileState": "bad",
3103 "UtmpMode": "init",
3104 "WantedBy": "multi-user.target graphical.target",
3105 "Wants": "network-online.target",
3106 "WatchdogTimestamp": "Thu 2018-07-12 09:27:27 UTC",
3107 "WatchdogTimestampMonotonic": "2331860739",
3108 "WatchdogUSec": "0"
3109 }
3110}
3111
3112TASK [alexey-medvedchikov.pgbouncer : ensure monit is running] *******************************************************************************************************************************************************************************
3113task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.pgbouncer/tasks/monit.yml:1
3114skipping: [pg-preprod-1] => {
3115 "changed": false,
3116 "skip_reason": "Conditional result was False"
3117}
3118
3119TASK [alexey-medvedchikov.pgbouncer : (Monit) copy the pgbouncer monit service file] *********************************************************************************************************************************************************
3120task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.pgbouncer/tasks/monit.yml:7
3121skipping: [pg-preprod-1] => {
3122 "changed": false,
3123 "skip_reason": "Conditional result was False"
3124}
3125META: ran handlers
3126
3127TASK [alexey-medvedchikov.pgbouncer : monit] *************************************************************************************************************************************************************************************************
3128task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.pgbouncer/tasks/monit.yml:17
3129skipping: [pg-preprod-1] => {
3130 "changed": false,
3131 "skip_reason": "Conditional result was False"
3132}
3133
3134TASK [alexey-medvedchikov.pgbouncer : ensure collectd is running] ****************************************************************************************************************************************************************************
3135task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.pgbouncer/tasks/collectd.yml:1
3136skipping: [pg-preprod-1] => {
3137 "changed": false,
3138 "skip_reason": "Conditional result was False"
3139}
3140
3141TASK [alexey-medvedchikov.pgbouncer : make "/var/lib/collectd/python/"] **********************************************************************************************************************************************************************
3142task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.pgbouncer/tasks/collectd.yml:6
3143skipping: [pg-preprod-1] => {
3144 "changed": false,
3145 "skip_reason": "Conditional result was False"
3146}
3147
3148TASK [alexey-medvedchikov.pgbouncer : copy pgbouncer_info plugin up] *************************************************************************************************************************************************************************
3149task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.pgbouncer/tasks/collectd.yml:11
3150skipping: [pg-preprod-1] => {
3151 "changed": false,
3152 "skip_reason": "Conditional result was False"
3153}
3154
3155TASK [alexey-medvedchikov.pgbouncer : setup collectd monitoring file] ************************************************************************************************************************************************************************
3156task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.pgbouncer/tasks/collectd.yml:16
3157skipping: [pg-preprod-1] => {
3158 "changed": false,
3159 "skip_reason": "Conditional result was False"
3160}
3161
3162TASK [postgresql : include_vars] *************************************************************************************************************************************************************************************************************
3163task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/main.yml:3
3164ok: [pg-preprod-1] => (item=/home/bazz/git/devops/ansible/postgres/roles/postgresql/vars/../vars/Debian.yml) => {
3165 "ansible_facts": {
3166 "postgresql_bin_directory": "/usr/bin",
3167 "postgresql_service_name": "postgresql"
3168 },
3169 "ansible_included_var_files": [
3170 "/home/bazz/git/devops/ansible/postgres/roles/postgresql/vars/Debian.yml"
3171 ],
3172 "changed": false,
3173 "item": "/home/bazz/git/devops/ansible/postgres/roles/postgresql/vars/../vars/Debian.yml"
3174}
3175
3176TASK [postgresql : PostgreSQL | Make sure the CA certificates are available | apt] ***********************************************************************************************************************************************************
3177task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/install_apt.yml:5
3178<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3179<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
3180<192.168.80.32> (0, '/root\n', '')
3181<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3182<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531741022.69-173756721416572 `" && echo ansible-tmp-1531741022.69-173756721416572="` echo /root/.ansible/tmp/ansible-tmp-1531741022.69-173756721416572 `" ) && sleep 0'"'"''
3183<192.168.80.32> (0, 'ansible-tmp-1531741022.69-173756721416572=/root/.ansible/tmp/ansible-tmp-1531741022.69-173756721416572\n', '')
3184Using module file /usr/lib/python2.7/dist-packages/ansible/modules/packaging/os/apt.py
3185<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpeFlBLE TO /root/.ansible/tmp/ansible-tmp-1531741022.69-173756721416572/apt.py
3186<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
3187<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpeFlBLE /root/.ansible/tmp/ansible-tmp-1531741022.69-173756721416572/apt.py\n', '')
3188<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3189<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741022.69-173756721416572/ /root/.ansible/tmp/ansible-tmp-1531741022.69-173756721416572/apt.py && sleep 0'"'"''
3190<192.168.80.32> (0, '', '')
3191<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3192<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741022.69-173756721416572/apt.py && sleep 0'"'"''
3193<192.168.80.32> (0, '\r\n{"invocation": {"module_args": {"update_cache": null, "dpkg_options": "force-confdef,force-confold", "pkg": "ca-certificates", "purge": false, "force": false, "autoclean": false, "state": "present", "install_recommends": null, "allow_unauthenticated": false, "autoremove": false, "default_release": null, "cache_valid_time": 0, "deb": null, "upgrade": null, "only_upgrade": false, "package": ["ca-certificates"], "force_apt_get": false}}, "cache_updated": false, "changed": false, "cache_update_time": 1531733776}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
3194<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3195<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531741022.69-173756721416572/ > /dev/null 2>&1 && sleep 0'"'"''
3196<192.168.80.32> (0, '', '')
3197ok: [pg-preprod-1] => {
3198 "cache_update_time": 1531733776,
3199 "cache_updated": false,
3200 "changed": false,
3201 "invocation": {
3202 "module_args": {
3203 "allow_unauthenticated": false,
3204 "autoclean": false,
3205 "autoremove": false,
3206 "cache_valid_time": 0,
3207 "deb": null,
3208 "default_release": null,
3209 "dpkg_options": "force-confdef,force-confold",
3210 "force": false,
3211 "force_apt_get": false,
3212 "install_recommends": null,
3213 "only_upgrade": false,
3214 "package": [
3215 "ca-certificates"
3216 ],
3217 "pkg": "ca-certificates",
3218 "purge": false,
3219 "state": "present",
3220 "update_cache": null,
3221 "upgrade": null
3222 }
3223 }
3224}
3225
3226TASK [postgresql : PostgreSQL | Add PostgreSQL repository apt-key | apt] *********************************************************************************************************************************************************************
3227task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/install_apt.yml:10
3228<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3229<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
3230<192.168.80.32> (0, '/root\n', '')
3231<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3232<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531741024.56-228759659871120 `" && echo ansible-tmp-1531741024.56-228759659871120="` echo /root/.ansible/tmp/ansible-tmp-1531741024.56-228759659871120 `" ) && sleep 0'"'"''
3233<192.168.80.32> (0, 'ansible-tmp-1531741024.56-228759659871120=/root/.ansible/tmp/ansible-tmp-1531741024.56-228759659871120\n', '')
3234Using module file /usr/lib/python2.7/dist-packages/ansible/modules/packaging/os/apt_key.py
3235<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmprc3_0h TO /root/.ansible/tmp/ansible-tmp-1531741024.56-228759659871120/apt_key.py
3236<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
3237<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmprc3_0h /root/.ansible/tmp/ansible-tmp-1531741024.56-228759659871120/apt_key.py\n', '')
3238<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3239<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741024.56-228759659871120/ /root/.ansible/tmp/ansible-tmp-1531741024.56-228759659871120/apt_key.py && sleep 0'"'"''
3240<192.168.80.32> (0, '', '')
3241<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3242<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741024.56-228759659871120/apt_key.py && sleep 0'"'"''
3243<192.168.80.32> (0, '\r\n{"changed": false, "invocation": {"module_args": {"validate_certs": true, "data": null, "file": null, "keyserver": null, "id": "ACCC4CF8", "key": null, "keyring": null, "state": "present", "url": "https://www.postgresql.org/media/keys/ACCC4CF8.asc"}}}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
3244<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3245<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531741024.56-228759659871120/ > /dev/null 2>&1 && sleep 0'"'"''
3246<192.168.80.32> (0, '', '')
3247ok: [pg-preprod-1] => {
3248 "changed": false,
3249 "invocation": {
3250 "module_args": {
3251 "data": null,
3252 "file": null,
3253 "id": "ACCC4CF8",
3254 "key": null,
3255 "keyring": null,
3256 "keyserver": null,
3257 "state": "present",
3258 "url": "https://www.postgresql.org/media/keys/ACCC4CF8.asc",
3259 "validate_certs": true
3260 }
3261 }
3262}
3263
3264TASK [postgresql : postgresql_apt_repository] ************************************************************************************************************************************************************************************************
3265task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/install_apt.yml:17
3266ok: [pg-preprod-1] => {
3267 "msg": "deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main 10"
3268}
3269
3270TASK [postgresql : postgresql_install_repository] ********************************************************************************************************************************************************************************************
3271task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/install_apt.yml:21
3272ok: [pg-preprod-1] => {
3273 "msg": true
3274}
3275
3276TASK [postgresql : PostgreSQL | Add PostgreSQL repository | apt] *****************************************************************************************************************************************************************************
3277task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/install_apt.yml:24
3278<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3279<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
3280<192.168.80.32> (0, '/root\n', '')
3281<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3282<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531741027.04-41487648007077 `" && echo ansible-tmp-1531741027.04-41487648007077="` echo /root/.ansible/tmp/ansible-tmp-1531741027.04-41487648007077 `" ) && sleep 0'"'"''
3283<192.168.80.32> (0, 'ansible-tmp-1531741027.04-41487648007077=/root/.ansible/tmp/ansible-tmp-1531741027.04-41487648007077\n', '')
3284Using module file /usr/lib/python2.7/dist-packages/ansible/modules/packaging/os/apt_repository.py
3285<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmp01b9U0 TO /root/.ansible/tmp/ansible-tmp-1531741027.04-41487648007077/apt_repository.py
3286<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
3287<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmp01b9U0 /root/.ansible/tmp/ansible-tmp-1531741027.04-41487648007077/apt_repository.py\n', '')
3288<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3289<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741027.04-41487648007077/ /root/.ansible/tmp/ansible-tmp-1531741027.04-41487648007077/apt_repository.py && sleep 0'"'"''
3290<192.168.80.32> (0, '', '')
3291<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3292<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741027.04-41487648007077/apt_repository.py && sleep 0'"'"''
3293<192.168.80.32> (0, '\r\n{"state": "present", "invocation": {"module_args": {"state": "present", "codename": null, "filename": null, "update_cache": true, "install_python_apt": true, "mode": null, "repo": "deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main 10", "validate_certs": true}}, "changed": false, "diff": {}, "repo": "deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main 10"}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
3294<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3295<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531741027.04-41487648007077/ > /dev/null 2>&1 && sleep 0'"'"''
3296<192.168.80.32> (0, '', '')
3297ok: [pg-preprod-1] => {
3298 "changed": false,
3299 "diff": {},
3300 "invocation": {
3301 "module_args": {
3302 "codename": null,
3303 "filename": null,
3304 "install_python_apt": true,
3305 "mode": null,
3306 "repo": "deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main 10",
3307 "state": "present",
3308 "update_cache": true,
3309 "validate_certs": true
3310 }
3311 },
3312 "repo": "deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main 10",
3313 "state": "present"
3314}
3315
3316TASK [postgresql : PostgreSQL | Add PostgreSQL repository preferences | apt] *****************************************************************************************************************************************************************
3317task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/install_apt.yml:30
3318<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3319<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
3320<192.168.80.32> (0, '/root\n', '')
3321<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3322<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531741028.56-46503752067582 `" && echo ansible-tmp-1531741028.56-46503752067582="` echo /root/.ansible/tmp/ansible-tmp-1531741028.56-46503752067582 `" ) && sleep 0'"'"''
3323<192.168.80.32> (0, 'ansible-tmp-1531741028.56-46503752067582=/root/.ansible/tmp/ansible-tmp-1531741028.56-46503752067582\n', '')
3324Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
3325<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpqg8g0s TO /root/.ansible/tmp/ansible-tmp-1531741028.56-46503752067582/stat.py
3326<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
3327<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpqg8g0s /root/.ansible/tmp/ansible-tmp-1531741028.56-46503752067582/stat.py\n', '')
3328<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3329<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741028.56-46503752067582/ /root/.ansible/tmp/ansible-tmp-1531741028.56-46503752067582/stat.py && sleep 0'"'"''
3330<192.168.80.32> (0, '', '')
3331<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3332<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741028.56-46503752067582/stat.py && sleep 0'"'"''
3333<192.168.80.32> (0, '\r\n{"stat": {"inode": 136425, "isfifo": false, "isreg": true, "xoth": false, "islnk": false, "writeable": true, "exists": true, "isblk": false, "xgrp": false, "woth": false, "size": 82, "uid": 0, "dev": 2049, "attr_flags": "e", "issock": false, "ctime": 1531326508.4276137, "atime": 1531728576.6011858, "pw_name": "root", "gr_name": "root", "wusr": true, "rgrp": true, "readable": true, "mtime": 1531326506.927632, "mimetype": "text/plain", "xusr": false, "mode": "0644", "attributes": ["extents"], "nlink": 1, "isdir": false, "checksum": "f843a42797726394c63638a09e9770c6a8af38cf", "version": "1152937156", "ischr": false, "device_type": 0, "charset": "us-ascii", "wgrp": false, "roth": true, "rusr": true, "block_size": 4096, "path": "/etc/apt/preferences.d/apt_postgresql_org_pub_repos_apt.pref", "isuid": false, "executable": false, "blocks": 8, "gid": 0, "isgid": false}, "changed": false, "invocation": {"module_args": {"get_checksum": true, "checksum_algo": "sha1", "get_md5": null, "follow": false, "path": "/etc/apt/preferences.d/apt_postgresql_org_pub_repos_apt.pref", "get_attributes": true, "checksum_algorithm": "sha1", "get_mime": true}}}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
3334Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/file.py
3335<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpqi1BIj TO /root/.ansible/tmp/ansible-tmp-1531741028.56-46503752067582/file.py
3336<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
3337<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpqi1BIj /root/.ansible/tmp/ansible-tmp-1531741028.56-46503752067582/file.py\n', '')
3338<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3339<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741028.56-46503752067582/ /root/.ansible/tmp/ansible-tmp-1531741028.56-46503752067582/file.py && sleep 0'"'"''
3340<192.168.80.32> (0, '', '')
3341<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3342<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741028.56-46503752067582/file.py && sleep 0'"'"''
3343<192.168.80.32> (0, '\r\n{"owner": "root", "state": "file", "mode": "0644", "invocation": {"module_args": {"delimiter": null, "owner": null, "attributes": null, "unsafe_writes": null, "_original_basename": "etc_apt_preferences.d_apt_postgresql_org_pub_repos_apt.pref.j2", "seuser": null, "state": "file", "setype": null, "mode": null, "group": null, "backup": null, "regexp": null, "content": null, "remote_src": null, "path": "/etc/apt/preferences.d/apt_postgresql_org_pub_repos_apt.pref", "src": null, "follow": false, "_diff_peek": null, "selevel": null, "directory_mode": null, "force": false, "dest": "/etc/apt/preferences.d/apt_postgresql_org_pub_repos_apt.pref", "serole": null, "recurse": false}}, "diff": {"after": {"path": "/etc/apt/preferences.d/apt_postgresql_org_pub_repos_apt.pref"}, "before": {"path": "/etc/apt/preferences.d/apt_postgresql_org_pub_repos_apt.pref"}}, "group": "root", "gid": 0, "changed": false, "path": "/etc/apt/preferences.d/apt_postgresql_org_pub_repos_apt.pref", "uid": 0, "size": 82}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
3344<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3345<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531741028.56-46503752067582/ > /dev/null 2>&1 && sleep 0'"'"''
3346<192.168.80.32> (0, '', '')
3347ok: [pg-preprod-1] => {
3348 "changed": false,
3349 "checksum": "f843a42797726394c63638a09e9770c6a8af38cf",
3350 "dest": "/etc/apt/preferences.d/apt_postgresql_org_pub_repos_apt.pref",
3351 "diff": {
3352 "after": {
3353 "path": "/etc/apt/preferences.d/apt_postgresql_org_pub_repos_apt.pref"
3354 },
3355 "before": {
3356 "path": "/etc/apt/preferences.d/apt_postgresql_org_pub_repos_apt.pref"
3357 }
3358 },
3359 "gid": 0,
3360 "group": "root",
3361 "invocation": {
3362 "module_args": {
3363 "_diff_peek": null,
3364 "_original_basename": "etc_apt_preferences.d_apt_postgresql_org_pub_repos_apt.pref.j2",
3365 "attributes": null,
3366 "backup": null,
3367 "content": null,
3368 "delimiter": null,
3369 "dest": "/etc/apt/preferences.d/apt_postgresql_org_pub_repos_apt.pref",
3370 "directory_mode": null,
3371 "follow": false,
3372 "force": false,
3373 "group": null,
3374 "mode": null,
3375 "owner": null,
3376 "path": "/etc/apt/preferences.d/apt_postgresql_org_pub_repos_apt.pref",
3377 "recurse": false,
3378 "regexp": null,
3379 "remote_src": null,
3380 "selevel": null,
3381 "serole": null,
3382 "setype": null,
3383 "seuser": null,
3384 "src": null,
3385 "state": "file",
3386 "unsafe_writes": null
3387 }
3388 },
3389 "mode": "0644",
3390 "owner": "root",
3391 "path": "/etc/apt/preferences.d/apt_postgresql_org_pub_repos_apt.pref",
3392 "size": 82,
3393 "state": "file",
3394 "uid": 0
3395}
3396
3397TASK [postgresql : PostgreSQL | Make sure the dependencies are installed | apt] **************************************************************************************************************************************************************
3398task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/install_apt.yml:36
3399<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3400<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
3401<192.168.80.32> (0, '/root\n', '')
3402<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3403<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531741030.75-159014929256782 `" && echo ansible-tmp-1531741030.75-159014929256782="` echo /root/.ansible/tmp/ansible-tmp-1531741030.75-159014929256782 `" ) && sleep 0'"'"''
3404<192.168.80.32> (0, 'ansible-tmp-1531741030.75-159014929256782=/root/.ansible/tmp/ansible-tmp-1531741030.75-159014929256782\n', '')
3405Using module file /usr/lib/python2.7/dist-packages/ansible/modules/packaging/os/apt.py
3406<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpIiVnDt TO /root/.ansible/tmp/ansible-tmp-1531741030.75-159014929256782/apt.py
3407<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
3408<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpIiVnDt /root/.ansible/tmp/ansible-tmp-1531741030.75-159014929256782/apt.py\n', '')
3409<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3410<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741030.75-159014929256782/ /root/.ansible/tmp/ansible-tmp-1531741030.75-159014929256782/apt.py && sleep 0'"'"''
3411<192.168.80.32> (0, '', '')
3412<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3413<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741030.75-159014929256782/apt.py && sleep 0'"'"''
3414<192.168.80.32> (0, '\r\n{"changed": false, "cache_update_time": 1531733776, "invocation": {"module_args": {"force": false, "autoclean": false, "install_recommends": null, "state": "present", "package": ["python3-psycopg2", "locales"], "name": ["python3-psycopg2", "locales"], "autoremove": false, "default_release": null, "upgrade": null, "only_upgrade": false, "cache_valid_time": 3600, "update_cache": true, "force_apt_get": false, "dpkg_options": "force-confdef,force-confold", "deb": null, "allow_unauthenticated": false, "purge": false}}, "cache_updated": false}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
3415<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3416<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531741030.75-159014929256782/ > /dev/null 2>&1 && sleep 0'"'"''
3417<192.168.80.32> (0, '', '')
3418ok: [pg-preprod-1] => (item=[u'python3-psycopg2', u'locales']) => {
3419 "cache_update_time": 1531733776,
3420 "cache_updated": false,
3421 "changed": false,
3422 "invocation": {
3423 "module_args": {
3424 "allow_unauthenticated": false,
3425 "autoclean": false,
3426 "autoremove": false,
3427 "cache_valid_time": 3600,
3428 "deb": null,
3429 "default_release": null,
3430 "dpkg_options": "force-confdef,force-confold",
3431 "force": false,
3432 "force_apt_get": false,
3433 "install_recommends": null,
3434 "name": [
3435 "python3-psycopg2",
3436 "locales"
3437 ],
3438 "only_upgrade": false,
3439 "package": [
3440 "python3-psycopg2",
3441 "locales"
3442 ],
3443 "purge": false,
3444 "state": "present",
3445 "update_cache": true,
3446 "upgrade": null
3447 }
3448 },
3449 "item": [
3450 "python3-psycopg2",
3451 "locales"
3452 ]
3453}
3454
3455TASK [postgresql : PostgreSQL | Install PostgreSQL | apt] ************************************************************************************************************************************************************************************
3456task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/install_apt.yml:44
3457<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3458<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
3459<192.168.80.32> (0, '/root\n', '')
3460<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3461<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531741033.54-59984180352880 `" && echo ansible-tmp-1531741033.54-59984180352880="` echo /root/.ansible/tmp/ansible-tmp-1531741033.54-59984180352880 `" ) && sleep 0'"'"''
3462<192.168.80.32> (0, 'ansible-tmp-1531741033.54-59984180352880=/root/.ansible/tmp/ansible-tmp-1531741033.54-59984180352880\n', '')
3463Using module file /usr/lib/python2.7/dist-packages/ansible/modules/packaging/os/apt.py
3464<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmp0Q6giL TO /root/.ansible/tmp/ansible-tmp-1531741033.54-59984180352880/apt.py
3465<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
3466<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmp0Q6giL /root/.ansible/tmp/ansible-tmp-1531741033.54-59984180352880/apt.py\n', '')
3467<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3468<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741033.54-59984180352880/ /root/.ansible/tmp/ansible-tmp-1531741033.54-59984180352880/apt.py && sleep 0'"'"''
3469<192.168.80.32> (0, '', '')
3470<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3471<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'LC_ALL=en_US.UTF-8 LC_LCTYPE=en_US.UTF-8 python3 /root/.ansible/tmp/ansible-tmp-1531741033.54-59984180352880/apt.py && sleep 0'"'"''
3472<192.168.80.32> (0, '\r\n{"changed": false, "cache_update_time": 1531733776, "invocation": {"module_args": {"force_apt_get": false, "deb": null, "force": false, "default_release": "xenial-pgdg", "autoclean": false, "only_upgrade": false, "upgrade": null, "purge": false, "package": ["postgresql-10", "postgresql-client-10", "postgresql-contrib-10"], "cache_valid_time": 3600, "autoremove": false, "dpkg_options": "force-confdef,force-confold", "allow_unauthenticated": false, "install_recommends": null, "update_cache": true, "state": "present", "name": ["postgresql-10", "postgresql-client-10", "postgresql-contrib-10"]}}, "cache_updated": false}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
3473<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3474<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531741033.54-59984180352880/ > /dev/null 2>&1 && sleep 0'"'"''
3475<192.168.80.32> (0, '', '')
3476ok: [pg-preprod-1] => (item=[u'postgresql-10', u'postgresql-client-10', u'postgresql-contrib-10']) => {
3477 "cache_update_time": 1531733776,
3478 "cache_updated": false,
3479 "changed": false,
3480 "invocation": {
3481 "module_args": {
3482 "allow_unauthenticated": false,
3483 "autoclean": false,
3484 "autoremove": false,
3485 "cache_valid_time": 3600,
3486 "deb": null,
3487 "default_release": "xenial-pgdg",
3488 "dpkg_options": "force-confdef,force-confold",
3489 "force": false,
3490 "force_apt_get": false,
3491 "install_recommends": null,
3492 "name": [
3493 "postgresql-10",
3494 "postgresql-client-10",
3495 "postgresql-contrib-10"
3496 ],
3497 "only_upgrade": false,
3498 "package": [
3499 "postgresql-10",
3500 "postgresql-client-10",
3501 "postgresql-contrib-10"
3502 ],
3503 "purge": false,
3504 "state": "present",
3505 "update_cache": true,
3506 "upgrade": null
3507 }
3508 },
3509 "item": [
3510 "postgresql-10",
3511 "postgresql-client-10",
3512 "postgresql-contrib-10"
3513 ]
3514}
3515
3516TASK [postgresql : PostgreSQL | PGTune | apt] ************************************************************************************************************************************************************************************************
3517task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/install_apt.yml:57
3518skipping: [pg-preprod-1] => {
3519 "changed": false,
3520 "skip_reason": "Conditional result was False"
3521}
3522
3523TASK [postgresql : PostgreSQL | Install all the required dependencies | yum] *****************************************************************************************************************************************************************
3524task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/install_yum.yml:7
3525skipping: [pg-preprod-1] => {
3526 "changed": false,
3527 "skip_reason": "Conditional result was False"
3528}
3529
3530TASK [postgresql : PostgreSQL | Add PostgreSQL repository | yum] *****************************************************************************************************************************************************************************
3531task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/install_yum.yml:12
3532skipping: [pg-preprod-1] => {
3533 "changed": false,
3534 "skip_reason": "Conditional result was False"
3535}
3536
3537TASK [postgresql : PostgreSQL | Make sure the dependencies are installed | yum] **************************************************************************************************************************************************************
3538task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/install_yum.yml:20
3539skipping: [pg-preprod-1] => (item=[]) => {
3540 "changed": false,
3541 "item": [],
3542 "skip_reason": "Conditional result was False"
3543}
3544
3545TASK [postgresql : PostgreSQL | Install PostgreSQL | yum] ************************************************************************************************************************************************************************************
3546task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/install_yum.yml:27
3547skipping: [pg-preprod-1] => (item=[]) => {
3548 "changed": false,
3549 "item": [],
3550 "skip_reason": "Conditional result was False"
3551}
3552
3553TASK [postgresql : PostgreSQL | PGTune | yum] ************************************************************************************************************************************************************************************************
3554task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/install_yum.yml:37
3555skipping: [pg-preprod-1] => {
3556 "changed": false,
3557 "skip_reason": "Conditional result was False"
3558}
3559
3560TASK [postgresql : PostgrSQL | Install all the required depedencies | dnf] *******************************************************************************************************************************************************************
3561task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/install_dnf.yml:7
3562skipping: [pg-preprod-1] => {
3563 "changed": false,
3564 "skip_reason": "Conditional result was False"
3565}
3566
3567TASK [postgresql : PostgreSQL | Add yum Repository | dnf] ************************************************************************************************************************************************************************************
3568task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/install_dnf.yml:12
3569skipping: [pg-preprod-1] => {
3570 "changed": false,
3571 "skip_reason": "Conditional result was False"
3572}
3573
3574TASK [postgresql : PostgreSQL | Install PostgreSQL | dnf] ************************************************************************************************************************************************************************************
3575task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/install_dnf.yml:21
3576skipping: [pg-preprod-1] => {
3577 "changed": false,
3578 "skip_reason": "Conditional result was False"
3579}
3580
3581TASK [postgresql : PostgreSQL | PGTune | dnf] ************************************************************************************************************************************************************************************************
3582task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/install_dnf.yml:27
3583skipping: [pg-preprod-1] => {
3584 "changed": false,
3585 "skip_reason": "Conditional result was False"
3586}
3587
3588TASK [postgresql : PostgreSQL | Extensions | Make sure the postgres contrib extensions are installed | Debian] *******************************************************************************************************************************
3589task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/extensions/contrib.yml:3
3590skipping: [pg-preprod-1] => {
3591 "changed": false,
3592 "skip_reason": "Conditional result was False"
3593}
3594
3595TASK [postgresql : PostgreSQL | Extensions | Make sure the postgres contrib extensions are installed | RedHat] *******************************************************************************************************************************
3596task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/extensions/contrib.yml:13
3597skipping: [pg-preprod-1] => {
3598 "changed": false,
3599 "skip_reason": "Conditional result was False"
3600}
3601
3602TASK [postgresql : PostgreSQL | Extensions | Make sure the postgres contrib extensions are installed | Fedora] *******************************************************************************************************************************
3603task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/extensions/contrib.yml:21
3604skipping: [pg-preprod-1] => {
3605 "changed": false,
3606 "skip_reason": "Conditional result was False"
3607}
3608
3609TASK [postgresql : PostgreSQL | Extensions | Make sure the development headers are installed | Debian] ***************************************************************************************************************************************
3610task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/extensions/dev_headers.yml:3
3611skipping: [pg-preprod-1] => {
3612 "changed": false,
3613 "skip_reason": "Conditional result was False"
3614}
3615
3616TASK [postgresql : PostgreSQL | Extensions | Make sure the development headers are installed | RedHat] ***************************************************************************************************************************************
3617task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/extensions/dev_headers.yml:13
3618skipping: [pg-preprod-1] => (item=[]) => {
3619 "changed": false,
3620 "item": [],
3621 "skip_reason": "Conditional result was False"
3622}
3623
3624TASK [postgresql : PostgreSQL | Extensions | Make sure the development headers are installed | Fedora] ***************************************************************************************************************************************
3625task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/extensions/dev_headers.yml:26
3626skipping: [pg-preprod-1] => {
3627 "changed": false,
3628 "skip_reason": "Conditional result was False"
3629}
3630
3631TASK [postgresql : include_vars] *************************************************************************************************************************************************************************************************************
3632task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/extensions/postgis.yml:3
3633skipping: [pg-preprod-1] => (item=/home/bazz/git/devops/ansible/postgres/roles/postgresql/vars/../vars/xenial.yml) => {
3634 "changed": false,
3635 "item": "/home/bazz/git/devops/ansible/postgres/roles/postgresql/vars/../vars/xenial.yml",
3636 "skip_reason": "Conditional result was False"
3637}
3638
3639TASK [postgresql : PostgreSQL | Extensions | Make sure the postgis extensions are installed | Debian] ****************************************************************************************************************************************
3640task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/extensions/postgis.yml:8
3641skipping: [pg-preprod-1] => (item=[]) => {
3642 "changed": false,
3643 "item": [],
3644 "skip_reason": "Conditional result was False"
3645}
3646
3647TASK [postgresql : PostgreSQL | Extensions | Make sure the postgis extensions are installed | RedHat] ****************************************************************************************************************************************
3648task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/extensions/postgis.yml:19
3649skipping: [pg-preprod-1] => (item=[]) => {
3650 "changed": false,
3651 "item": [],
3652 "skip_reason": "Conditional result was False"
3653}
3654
3655TASK [postgresql : PostgreSQL | Extensions | Make sure the postgis extensions are installed | Fedora] ****************************************************************************************************************************************
3656task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/extensions/postgis.yml:29
3657skipping: [pg-preprod-1] => {
3658 "changed": false,
3659 "skip_reason": "Conditional result was False"
3660}
3661
3662TASK [postgresql : PostgreSQL | Drop the data directory | RedHat] ****************************************************************************************************************************************************************************
3663task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/configure.yml:3
3664skipping: [pg-preprod-1] => {
3665 "changed": false,
3666 "skip_reason": "Conditional result was False"
3667}
3668
3669TASK [postgresql : PostgreSQL | Make sure the postgres data directory exists] ****************************************************************************************************************************************************************
3670task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/configure.yml:10
3671<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3672<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
3673<192.168.80.32> (0, '/root\n', '')
3674<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3675<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531741037.58-193268835479713 `" && echo ansible-tmp-1531741037.58-193268835479713="` echo /root/.ansible/tmp/ansible-tmp-1531741037.58-193268835479713 `" ) && sleep 0'"'"''
3676<192.168.80.32> (0, 'ansible-tmp-1531741037.58-193268835479713=/root/.ansible/tmp/ansible-tmp-1531741037.58-193268835479713\n', '')
3677Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/file.py
3678<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpvuQq5S TO /root/.ansible/tmp/ansible-tmp-1531741037.58-193268835479713/file.py
3679<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
3680<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpvuQq5S /root/.ansible/tmp/ansible-tmp-1531741037.58-193268835479713/file.py\n', '')
3681<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3682<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741037.58-193268835479713/ /root/.ansible/tmp/ansible-tmp-1531741037.58-193268835479713/file.py && sleep 0'"'"''
3683<192.168.80.32> (0, '', '')
3684<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3685<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741037.58-193268835479713/file.py && sleep 0'"'"''
3686<192.168.80.32> (0, '\r\n{"path": "/var/lib/postgresql/10/preprod", "gid": 114, "state": "directory", "group": "postgres", "mode": "0700", "invocation": {"module_args": {"group": "postgres", "owner": "postgres", "attributes": null, "follow": true, "directory_mode": null, "regexp": null, "state": "directory", "src": null, "mode": 448, "selevel": null, "content": null, "path": "/var/lib/postgresql/10/preprod", "_original_basename": null, "recurse": false, "unsafe_writes": null, "remote_src": null, "setype": null, "force": false, "seuser": null, "delimiter": null, "serole": null, "backup": null, "_diff_peek": null}}, "owner": "postgres", "uid": 108, "size": 4096, "changed": false, "diff": {"before": {"path": "/var/lib/postgresql/10/preprod"}, "after": {"path": "/var/lib/postgresql/10/preprod"}}}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
3687<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3688<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531741037.58-193268835479713/ > /dev/null 2>&1 && sleep 0'"'"''
3689<192.168.80.32> (0, '', '')
3690ok: [pg-preprod-1] => {
3691 "changed": false,
3692 "diff": {
3693 "after": {
3694 "path": "/var/lib/postgresql/10/preprod"
3695 },
3696 "before": {
3697 "path": "/var/lib/postgresql/10/preprod"
3698 }
3699 },
3700 "gid": 114,
3701 "group": "postgres",
3702 "invocation": {
3703 "module_args": {
3704 "_diff_peek": null,
3705 "_original_basename": null,
3706 "attributes": null,
3707 "backup": null,
3708 "content": null,
3709 "delimiter": null,
3710 "directory_mode": null,
3711 "follow": true,
3712 "force": false,
3713 "group": "postgres",
3714 "mode": 448,
3715 "owner": "postgres",
3716 "path": "/var/lib/postgresql/10/preprod",
3717 "recurse": false,
3718 "regexp": null,
3719 "remote_src": null,
3720 "selevel": null,
3721 "serole": null,
3722 "setype": null,
3723 "seuser": null,
3724 "src": null,
3725 "state": "directory",
3726 "unsafe_writes": null
3727 }
3728 },
3729 "mode": "0700",
3730 "owner": "postgres",
3731 "path": "/var/lib/postgresql/10/preprod",
3732 "size": 4096,
3733 "state": "directory",
3734 "uid": 108
3735}
3736
3737TASK [postgresql : PostgreSQL | Make sure the postgres WAL directory exists] *****************************************************************************************************************************************************************
3738task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/configure.yml:19
3739skipping: [pg-preprod-1] => {
3740 "changed": false,
3741 "skip_reason": "Conditional result was False"
3742}
3743
3744TASK [postgresql : PostgreSQL | Make sure the postgres log directory exists] *****************************************************************************************************************************************************************
3745task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/configure.yml:29
3746skipping: [pg-preprod-1] => {
3747 "changed": false,
3748 "skip_reason": "Conditional result was False"
3749}
3750
3751TASK [postgresql : PostgreSQL | Ensure the locale for lc_collate and lc_ctype is generated | Debian] *****************************************************************************************************************************************
3752task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/configure.yml:39
3753<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3754<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
3755<192.168.80.32> (0, '/root\n', '')
3756<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3757<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531741038.85-105488372567042 `" && echo ansible-tmp-1531741038.85-105488372567042="` echo /root/.ansible/tmp/ansible-tmp-1531741038.85-105488372567042 `" ) && sleep 0'"'"''
3758<192.168.80.32> (0, 'ansible-tmp-1531741038.85-105488372567042=/root/.ansible/tmp/ansible-tmp-1531741038.85-105488372567042\n', '')
3759Using module file /usr/lib/python2.7/dist-packages/ansible/modules/system/locale_gen.py
3760<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpmydX5l TO /root/.ansible/tmp/ansible-tmp-1531741038.85-105488372567042/locale_gen.py
3761<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
3762<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpmydX5l /root/.ansible/tmp/ansible-tmp-1531741038.85-105488372567042/locale_gen.py\n', '')
3763<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3764<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741038.85-105488372567042/ /root/.ansible/tmp/ansible-tmp-1531741038.85-105488372567042/locale_gen.py && sleep 0'"'"''
3765<192.168.80.32> (0, '', '')
3766<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3767<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741038.85-105488372567042/locale_gen.py && sleep 0'"'"''
3768<192.168.80.32> (0, '\r\n{"name": "en_US.UTF-8", "msg": "OK", "invocation": {"module_args": {"state": "present", "name": "en_US.UTF-8"}}, "changed": false}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
3769<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3770<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531741038.85-105488372567042/ > /dev/null 2>&1 && sleep 0'"'"''
3771<192.168.80.32> (0, '', '')
3772ok: [pg-preprod-1] => (item=en_US.UTF-8) => {
3773 "changed": false,
3774 "invocation": {
3775 "module_args": {
3776 "name": "en_US.UTF-8",
3777 "state": "present"
3778 }
3779 },
3780 "item": "en_US.UTF-8",
3781 "msg": "OK",
3782 "name": "en_US.UTF-8"
3783}
3784<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3785<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
3786<192.168.80.32> (0, '/root\n', '')
3787<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3788<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531741040.0-271851430254448 `" && echo ansible-tmp-1531741040.0-271851430254448="` echo /root/.ansible/tmp/ansible-tmp-1531741040.0-271851430254448 `" ) && sleep 0'"'"''
3789<192.168.80.32> (0, 'ansible-tmp-1531741040.0-271851430254448=/root/.ansible/tmp/ansible-tmp-1531741040.0-271851430254448\n', '')
3790Using module file /usr/lib/python2.7/dist-packages/ansible/modules/system/locale_gen.py
3791<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpVs0I9B TO /root/.ansible/tmp/ansible-tmp-1531741040.0-271851430254448/locale_gen.py
3792<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
3793<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpVs0I9B /root/.ansible/tmp/ansible-tmp-1531741040.0-271851430254448/locale_gen.py\n', '')
3794<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3795<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741040.0-271851430254448/ /root/.ansible/tmp/ansible-tmp-1531741040.0-271851430254448/locale_gen.py && sleep 0'"'"''
3796<192.168.80.32> (0, '', '')
3797<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3798<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741040.0-271851430254448/locale_gen.py && sleep 0'"'"''
3799<192.168.80.32> (0, '\r\n{"name": "en_US.UTF-8", "invocation": {"module_args": {"state": "present", "name": "en_US.UTF-8"}}, "changed": false, "msg": "OK"}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
3800<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3801<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531741040.0-271851430254448/ > /dev/null 2>&1 && sleep 0'"'"''
3802<192.168.80.32> (0, '', '')
3803ok: [pg-preprod-1] => (item=en_US.UTF-8) => {
3804 "changed": false,
3805 "invocation": {
3806 "module_args": {
3807 "name": "en_US.UTF-8",
3808 "state": "present"
3809 }
3810 },
3811 "item": "en_US.UTF-8",
3812 "msg": "OK",
3813 "name": "en_US.UTF-8"
3814}
3815
3816TASK [postgresql : PostgreSQL | Ensure the locale is generated | RedHat] *********************************************************************************************************************************************************************
3817task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/configure.yml:47
3818skipping: [pg-preprod-1] => (item={u'parts': [u'en_US', u'UTF-8'], u'locale_name': u'en_US.UTF-8'}) => {
3819 "changed": false,
3820 "item": {
3821 "locale_name": "en_US.UTF-8",
3822 "parts": [
3823 "en_US",
3824 "UTF-8"
3825 ]
3826 },
3827 "skip_reason": "Conditional result was False"
3828}
3829skipping: [pg-preprod-1] => (item={u'parts': [u'en_US', u'UTF-8'], u'locale_name': u'en_US.UTF-8'}) => {
3830 "changed": false,
3831 "item": {
3832 "locale_name": "en_US.UTF-8",
3833 "parts": [
3834 "en_US",
3835 "UTF-8"
3836 ]
3837 },
3838 "skip_reason": "Conditional result was False"
3839}
3840
3841TASK [postgresql : PostgreSQL | Reset the cluster - drop the existing one | Debian] **********************************************************************************************************************************************************
3842task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/configure.yml:57
3843skipping: [pg-preprod-1] => {
3844 "changed": false,
3845 "skip_reason": "Conditional result was False"
3846}
3847
3848TASK [postgresql : PostgreSQL | Reset the cluster - create a new one (with specified encoding and locale) | Debian] **************************************************************************************************************************
3849task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/configure.yml:63
3850skipping: [pg-preprod-1] => {
3851 "changed": false,
3852 "skip_reason": "Conditional result was False"
3853}
3854
3855TASK [postgresql : PostgreSQL | Check whether the postgres data directory is initialized] ****************************************************************************************************************************************************
3856task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/configure.yml:77
3857skipping: [pg-preprod-1] => {
3858 "changed": false,
3859 "skip_reason": "Conditional result was False"
3860}
3861
3862TASK [postgresql : PostgreSQL | Initialize the database | RedHat] ****************************************************************************************************************************************************************************
3863task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/configure.yml:83
3864skipping: [pg-preprod-1] => {
3865 "changed": false,
3866 "skip_reason": "Conditional result was False"
3867}
3868
3869TASK [postgresql : PostgreSQL | Ensure configuration directory exists] ***********************************************************************************************************************************************************************
3870task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/configure.yml:98
3871<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3872<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
3873<192.168.80.32> (0, '/root\n', '')
3874<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3875<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531741041.31-38135811773174 `" && echo ansible-tmp-1531741041.31-38135811773174="` echo /root/.ansible/tmp/ansible-tmp-1531741041.31-38135811773174 `" ) && sleep 0'"'"''
3876<192.168.80.32> (0, 'ansible-tmp-1531741041.31-38135811773174=/root/.ansible/tmp/ansible-tmp-1531741041.31-38135811773174\n', '')
3877Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/file.py
3878<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpgh4XdV TO /root/.ansible/tmp/ansible-tmp-1531741041.31-38135811773174/file.py
3879<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
3880<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpgh4XdV /root/.ansible/tmp/ansible-tmp-1531741041.31-38135811773174/file.py\n', '')
3881<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3882<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741041.31-38135811773174/ /root/.ansible/tmp/ansible-tmp-1531741041.31-38135811773174/file.py && sleep 0'"'"''
3883<192.168.80.32> (0, '', '')
3884<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3885<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741041.31-38135811773174/file.py && sleep 0'"'"''
3886<192.168.80.32> (0, '\r\n{"gid": 114, "state": "directory", "diff": {"before": {"path": "/etc/postgresql/10/preprod"}, "after": {"path": "/etc/postgresql/10/preprod"}}, "mode": "0700", "group": "postgres", "invocation": {"module_args": {"recurse": false, "follow": true, "group": "postgres", "src": null, "force": false, "unsafe_writes": null, "serole": null, "delimiter": null, "setype": null, "content": null, "backup": null, "_diff_peek": null, "_original_basename": null, "remote_src": null, "regexp": null, "directory_mode": null, "path": "/etc/postgresql/10/preprod", "seuser": null, "state": "directory", "mode": 448, "selevel": null, "owner": "postgres", "attributes": null}}, "owner": "postgres", "uid": 108, "size": 4096, "path": "/etc/postgresql/10/preprod", "changed": false}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
3887<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3888<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531741041.31-38135811773174/ > /dev/null 2>&1 && sleep 0'"'"''
3889<192.168.80.32> (0, '', '')
3890ok: [pg-preprod-1] => {
3891 "changed": false,
3892 "diff": {
3893 "after": {
3894 "path": "/etc/postgresql/10/preprod"
3895 },
3896 "before": {
3897 "path": "/etc/postgresql/10/preprod"
3898 }
3899 },
3900 "gid": 114,
3901 "group": "postgres",
3902 "invocation": {
3903 "module_args": {
3904 "_diff_peek": null,
3905 "_original_basename": null,
3906 "attributes": null,
3907 "backup": null,
3908 "content": null,
3909 "delimiter": null,
3910 "directory_mode": null,
3911 "follow": true,
3912 "force": false,
3913 "group": "postgres",
3914 "mode": 448,
3915 "owner": "postgres",
3916 "path": "/etc/postgresql/10/preprod",
3917 "recurse": false,
3918 "regexp": null,
3919 "remote_src": null,
3920 "selevel": null,
3921 "serole": null,
3922 "setype": null,
3923 "seuser": null,
3924 "src": null,
3925 "state": "directory",
3926 "unsafe_writes": null
3927 }
3928 },
3929 "mode": "0700",
3930 "owner": "postgres",
3931 "path": "/etc/postgresql/10/preprod",
3932 "size": 4096,
3933 "state": "directory",
3934 "uid": 108
3935}
3936
3937TASK [postgresql : PostgreSQL | Update configuration - pt. 1 (pg_hba.conf)] ******************************************************************************************************************************************************************
3938task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/configure.yml:106
3939<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3940<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
3941<192.168.80.32> (0, '/root\n', '')
3942<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3943<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531741042.42-65275045828225 `" && echo ansible-tmp-1531741042.42-65275045828225="` echo /root/.ansible/tmp/ansible-tmp-1531741042.42-65275045828225 `" ) && sleep 0'"'"''
3944<192.168.80.32> (0, 'ansible-tmp-1531741042.42-65275045828225=/root/.ansible/tmp/ansible-tmp-1531741042.42-65275045828225\n', '')
3945Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
3946<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpPCkaK2 TO /root/.ansible/tmp/ansible-tmp-1531741042.42-65275045828225/stat.py
3947<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
3948<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpPCkaK2 /root/.ansible/tmp/ansible-tmp-1531741042.42-65275045828225/stat.py\n', '')
3949<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3950<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741042.42-65275045828225/ /root/.ansible/tmp/ansible-tmp-1531741042.42-65275045828225/stat.py && sleep 0'"'"''
3951<192.168.80.32> (0, '', '')
3952<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3953<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741042.42-65275045828225/stat.py && sleep 0'"'"''
3954<192.168.80.32> (0, '\r\n{"invocation": {"module_args": {"path": "/etc/postgresql/10/preprod/pg_hba.conf", "checksum_algo": "sha1", "get_attributes": true, "get_mime": true, "checksum_algorithm": "sha1", "get_md5": null, "get_checksum": true, "follow": false}}, "stat": {"isuid": false, "mtime": 1531385709.0922878, "rgrp": true, "woth": false, "version": "18446744072598191806", "path": "/etc/postgresql/10/preprod/pg_hba.conf", "blocks": 8, "uid": 108, "issock": false, "xoth": false, "ischr": false, "block_size": 4096, "mode": "0640", "ctime": 1531385710.2362795, "wgrp": false, "mimetype": "text/plain", "xusr": false, "writeable": true, "readable": true, "isdir": false, "isblk": false, "roth": false, "isfifo": false, "inode": 142413, "attr_flags": "e", "pw_name": "postgres", "atime": 1531728626.0166023, "isreg": true, "attributes": ["extents"], "size": 1159, "xgrp": false, "nlink": 1, "islnk": false, "wusr": true, "charset": "us-ascii", "gr_name": "postgres", "device_type": 0, "executable": false, "checksum": "a7521228f8407f45d7728d7a84f71ab7a6075789", "gid": 114, "dev": 2049, "exists": true, "isgid": false, "rusr": true}, "changed": false}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
3955Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/file.py
3956<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmp_GVcXc TO /root/.ansible/tmp/ansible-tmp-1531741042.42-65275045828225/file.py
3957<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
3958<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmp_GVcXc /root/.ansible/tmp/ansible-tmp-1531741042.42-65275045828225/file.py\n', '')
3959<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3960<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741042.42-65275045828225/ /root/.ansible/tmp/ansible-tmp-1531741042.42-65275045828225/file.py && sleep 0'"'"''
3961<192.168.80.32> (0, '', '')
3962<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3963<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741042.42-65275045828225/file.py && sleep 0'"'"''
3964<192.168.80.32> (0, '\r\n{"mode": "0640", "invocation": {"module_args": {"mode": 416, "backup": null, "_original_basename": "pg_hba.conf.j2", "owner": "postgres", "regexp": null, "serole": null, "content": null, "_diff_peek": null, "remote_src": null, "force": false, "attributes": null, "directory_mode": null, "state": "file", "group": "postgres", "setype": null, "path": "/etc/postgresql/10/preprod/pg_hba.conf", "recurse": false, "selevel": null, "unsafe_writes": null, "dest": "/etc/postgresql/10/preprod/pg_hba.conf", "follow": false, "src": null, "seuser": null, "delimiter": null}}, "changed": false, "diff": {"before": {"path": "/etc/postgresql/10/preprod/pg_hba.conf"}, "after": {"path": "/etc/postgresql/10/preprod/pg_hba.conf"}}, "state": "file", "owner": "postgres", "group": "postgres", "uid": 108, "path": "/etc/postgresql/10/preprod/pg_hba.conf", "gid": 114, "size": 1159}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
3965<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
3966<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531741042.42-65275045828225/ > /dev/null 2>&1 && sleep 0'"'"''
3967<192.168.80.32> (0, '', '')
3968ok: [pg-preprod-1] => {
3969 "changed": false,
3970 "checksum": "a7521228f8407f45d7728d7a84f71ab7a6075789",
3971 "dest": "/etc/postgresql/10/preprod/pg_hba.conf",
3972 "diff": {
3973 "after": {
3974 "path": "/etc/postgresql/10/preprod/pg_hba.conf"
3975 },
3976 "before": {
3977 "path": "/etc/postgresql/10/preprod/pg_hba.conf"
3978 }
3979 },
3980 "gid": 114,
3981 "group": "postgres",
3982 "invocation": {
3983 "module_args": {
3984 "_diff_peek": null,
3985 "_original_basename": "pg_hba.conf.j2",
3986 "attributes": null,
3987 "backup": null,
3988 "content": null,
3989 "delimiter": null,
3990 "dest": "/etc/postgresql/10/preprod/pg_hba.conf",
3991 "directory_mode": null,
3992 "follow": false,
3993 "force": false,
3994 "group": "postgres",
3995 "mode": 416,
3996 "owner": "postgres",
3997 "path": "/etc/postgresql/10/preprod/pg_hba.conf",
3998 "recurse": false,
3999 "regexp": null,
4000 "remote_src": null,
4001 "selevel": null,
4002 "serole": null,
4003 "setype": null,
4004 "seuser": null,
4005 "src": null,
4006 "state": "file",
4007 "unsafe_writes": null
4008 }
4009 },
4010 "mode": "0640",
4011 "owner": "postgres",
4012 "path": "/etc/postgresql/10/preprod/pg_hba.conf",
4013 "size": 1159,
4014 "state": "file",
4015 "uid": 108
4016}
4017
4018TASK [postgresql : PostgreSQL | Update configuration - pt. 2 (postgresql.conf)] **************************************************************************************************************************************************************
4019task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/configure.yml:115
4020<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4021<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
4022<192.168.80.32> (0, '/root\n', '')
4023<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4024<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531741044.49-277381677445819 `" && echo ansible-tmp-1531741044.49-277381677445819="` echo /root/.ansible/tmp/ansible-tmp-1531741044.49-277381677445819 `" ) && sleep 0'"'"''
4025<192.168.80.32> (0, 'ansible-tmp-1531741044.49-277381677445819=/root/.ansible/tmp/ansible-tmp-1531741044.49-277381677445819\n', '')
4026Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
4027<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpXNBXli TO /root/.ansible/tmp/ansible-tmp-1531741044.49-277381677445819/stat.py
4028<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
4029<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpXNBXli /root/.ansible/tmp/ansible-tmp-1531741044.49-277381677445819/stat.py\n', '')
4030<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4031<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741044.49-277381677445819/ /root/.ansible/tmp/ansible-tmp-1531741044.49-277381677445819/stat.py && sleep 0'"'"''
4032<192.168.80.32> (0, '', '')
4033<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4034<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741044.49-277381677445819/stat.py && sleep 0'"'"''
4035<192.168.80.32> (0, '\r\n{"invocation": {"module_args": {"follow": false, "get_md5": null, "path": "/etc/postgresql/10/preprod/postgresql.conf", "get_checksum": true, "get_mime": true, "get_attributes": true, "checksum_algo": "sha1", "checksum_algorithm": "sha1"}}, "stat": {"charset": "us-ascii", "isfifo": false, "path": "/etc/postgresql/10/preprod/postgresql.conf", "pw_name": "postgres", "isblk": false, "attributes": ["extents"], "version": "18446744072598199661", "issock": false, "xusr": false, "device_type": 0, "atime": 1531728341.467958, "attr_flags": "e", "checksum": "132533510a9ccf3675cc48eed69e79e2b084aade", "woth": false, "mode": "0640", "rusr": true, "wgrp": false, "isreg": true, "roth": false, "executable": false, "ischr": false, "block_size": 4096, "mimetype": "text/plain", "wusr": true, "readable": true, "writeable": true, "islnk": false, "nlink": 1, "xgrp": false, "gid": 114, "blocks": 48, "dev": 2049, "size": 22972, "uid": 108, "isgid": false, "gr_name": "postgres", "inode": 142445, "xoth": false, "isuid": false, "isdir": false, "ctime": 1531407745.423179, "exists": true, "mtime": 1531407744.4431906, "rgrp": true}, "changed": false}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
4036Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/file.py
4037<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpl4aJDR TO /root/.ansible/tmp/ansible-tmp-1531741044.49-277381677445819/file.py
4038<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
4039<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpl4aJDR /root/.ansible/tmp/ansible-tmp-1531741044.49-277381677445819/file.py\n', '')
4040<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4041<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741044.49-277381677445819/ /root/.ansible/tmp/ansible-tmp-1531741044.49-277381677445819/file.py && sleep 0'"'"''
4042<192.168.80.32> (0, '', '')
4043<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4044<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741044.49-277381677445819/file.py && sleep 0'"'"''
4045<192.168.80.32> (0, '\r\n{"uid": 108, "size": 22972, "mode": "0640", "diff": {"after": {"path": "/etc/postgresql/10/preprod/postgresql.conf"}, "before": {"path": "/etc/postgresql/10/preprod/postgresql.conf"}}, "group": "postgres", "gid": 114, "owner": "postgres", "path": "/etc/postgresql/10/preprod/postgresql.conf", "invocation": {"module_args": {"attributes": null, "src": null, "_original_basename": "postgresql.conf-10.j2", "owner": "postgres", "_diff_peek": null, "serole": null, "group": "postgres", "unsafe_writes": null, "content": null, "recurse": false, "follow": false, "path": "/etc/postgresql/10/preprod/postgresql.conf", "mode": 416, "dest": "/etc/postgresql/10/preprod/postgresql.conf", "state": "file", "force": false, "backup": null, "seuser": null, "delimiter": null, "directory_mode": null, "selevel": null, "setype": null, "remote_src": null, "regexp": null}}, "state": "file", "changed": false}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
4046<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4047<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531741044.49-277381677445819/ > /dev/null 2>&1 && sleep 0'"'"''
4048<192.168.80.32> (0, '', '')
4049ok: [pg-preprod-1] => {
4050 "changed": false,
4051 "checksum": "132533510a9ccf3675cc48eed69e79e2b084aade",
4052 "dest": "/etc/postgresql/10/preprod/postgresql.conf",
4053 "diff": {
4054 "after": {
4055 "path": "/etc/postgresql/10/preprod/postgresql.conf"
4056 },
4057 "before": {
4058 "path": "/etc/postgresql/10/preprod/postgresql.conf"
4059 }
4060 },
4061 "gid": 114,
4062 "group": "postgres",
4063 "invocation": {
4064 "module_args": {
4065 "_diff_peek": null,
4066 "_original_basename": "postgresql.conf-10.j2",
4067 "attributes": null,
4068 "backup": null,
4069 "content": null,
4070 "delimiter": null,
4071 "dest": "/etc/postgresql/10/preprod/postgresql.conf",
4072 "directory_mode": null,
4073 "follow": false,
4074 "force": false,
4075 "group": "postgres",
4076 "mode": 416,
4077 "owner": "postgres",
4078 "path": "/etc/postgresql/10/preprod/postgresql.conf",
4079 "recurse": false,
4080 "regexp": null,
4081 "remote_src": null,
4082 "selevel": null,
4083 "serole": null,
4084 "setype": null,
4085 "seuser": null,
4086 "src": null,
4087 "state": "file",
4088 "unsafe_writes": null
4089 }
4090 },
4091 "mode": "0640",
4092 "owner": "postgres",
4093 "path": "/etc/postgresql/10/preprod/postgresql.conf",
4094 "size": 22972,
4095 "state": "file",
4096 "uid": 108
4097}
4098
4099TASK [postgresql : PostgreSQL | Update configuration - pt. 3 (pgtune)] ***********************************************************************************************************************************************************************
4100task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/configure.yml:125
4101skipping: [pg-preprod-1] => {
4102 "changed": false,
4103 "skip_reason": "Conditional result was False"
4104}
4105
4106TASK [postgresql : PostgreSQL | Update configuration - pt. 4 (pg_ident.conf)] ****************************************************************************************************************************************************************
4107task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/configure.yml:155
4108<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4109<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
4110<192.168.80.32> (0, '/root\n', '')
4111<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4112<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531741046.57-6091861149046 `" && echo ansible-tmp-1531741046.57-6091861149046="` echo /root/.ansible/tmp/ansible-tmp-1531741046.57-6091861149046 `" ) && sleep 0'"'"''
4113<192.168.80.32> (0, 'ansible-tmp-1531741046.57-6091861149046=/root/.ansible/tmp/ansible-tmp-1531741046.57-6091861149046\n', '')
4114Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
4115<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpNop21b TO /root/.ansible/tmp/ansible-tmp-1531741046.57-6091861149046/stat.py
4116<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
4117<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpNop21b /root/.ansible/tmp/ansible-tmp-1531741046.57-6091861149046/stat.py\n', '')
4118<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4119<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741046.57-6091861149046/ /root/.ansible/tmp/ansible-tmp-1531741046.57-6091861149046/stat.py && sleep 0'"'"''
4120<192.168.80.32> (0, '', '')
4121<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4122<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741046.57-6091861149046/stat.py && sleep 0'"'"''
4123<192.168.80.32> (0, '\r\n{"stat": {"gr_name": "postgres", "rgrp": true, "isfifo": false, "charset": "us-ascii", "version": "18446744072598191830", "wusr": true, "uid": 108, "xoth": false, "gid": 114, "isgid": false, "readable": true, "writeable": true, "isblk": false, "atime": 1531728631.104542, "rusr": true, "block_size": 4096, "ischr": false, "isdir": false, "inode": 142420, "nlink": 1, "size": 1730, "xgrp": false, "blocks": 8, "ctime": 1531385719.8442125, "executable": false, "pw_name": "postgres", "device_type": 0, "mtime": 1531385718.2762234, "checksum": "545cb813954e5f6928c8f54f56ca09c5b00bdf13", "mode": "0640", "dev": 2049, "attributes": ["extents"], "attr_flags": "e", "isuid": false, "isreg": true, "islnk": false, "woth": false, "wgrp": false, "roth": false, "exists": true, "xusr": false, "mimetype": "text/plain", "path": "/etc/postgresql/10/preprod/pg_ident.conf", "issock": false}, "invocation": {"module_args": {"get_attributes": true, "follow": false, "path": "/etc/postgresql/10/preprod/pg_ident.conf", "get_md5": null, "get_mime": true, "get_checksum": true, "checksum_algorithm": "sha1", "checksum_algo": "sha1"}}, "changed": false}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
4124Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/file.py
4125<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpOoi8SU TO /root/.ansible/tmp/ansible-tmp-1531741046.57-6091861149046/file.py
4126<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
4127<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpOoi8SU /root/.ansible/tmp/ansible-tmp-1531741046.57-6091861149046/file.py\n', '')
4128<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4129<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741046.57-6091861149046/ /root/.ansible/tmp/ansible-tmp-1531741046.57-6091861149046/file.py && sleep 0'"'"''
4130<192.168.80.32> (0, '', '')
4131<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4132<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741046.57-6091861149046/file.py && sleep 0'"'"''
4133<192.168.80.32> (0, '\r\n{"owner": "postgres", "path": "/etc/postgresql/10/preprod/pg_ident.conf", "changed": false, "group": "postgres", "state": "file", "mode": "0640", "size": 1730, "uid": 108, "invocation": {"module_args": {"regexp": null, "serole": null, "group": "postgres", "_diff_peek": null, "backup": null, "remote_src": null, "path": "/etc/postgresql/10/preprod/pg_ident.conf", "follow": false, "attributes": null, "delimiter": null, "owner": "postgres", "state": "file", "directory_mode": null, "seuser": null, "mode": 416, "dest": "/etc/postgresql/10/preprod/pg_ident.conf", "src": null, "force": false, "content": null, "recurse": false, "selevel": null, "setype": null, "unsafe_writes": null, "_original_basename": "pg_ident.conf.j2"}}, "diff": {"after": {"path": "/etc/postgresql/10/preprod/pg_ident.conf"}, "before": {"path": "/etc/postgresql/10/preprod/pg_ident.conf"}}, "gid": 114}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
4134<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4135<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531741046.57-6091861149046/ > /dev/null 2>&1 && sleep 0'"'"''
4136<192.168.80.32> (0, '', '')
4137ok: [pg-preprod-1] => {
4138 "changed": false,
4139 "checksum": "545cb813954e5f6928c8f54f56ca09c5b00bdf13",
4140 "dest": "/etc/postgresql/10/preprod/pg_ident.conf",
4141 "diff": {
4142 "after": {
4143 "path": "/etc/postgresql/10/preprod/pg_ident.conf"
4144 },
4145 "before": {
4146 "path": "/etc/postgresql/10/preprod/pg_ident.conf"
4147 }
4148 },
4149 "gid": 114,
4150 "group": "postgres",
4151 "invocation": {
4152 "module_args": {
4153 "_diff_peek": null,
4154 "_original_basename": "pg_ident.conf.j2",
4155 "attributes": null,
4156 "backup": null,
4157 "content": null,
4158 "delimiter": null,
4159 "dest": "/etc/postgresql/10/preprod/pg_ident.conf",
4160 "directory_mode": null,
4161 "follow": false,
4162 "force": false,
4163 "group": "postgres",
4164 "mode": 416,
4165 "owner": "postgres",
4166 "path": "/etc/postgresql/10/preprod/pg_ident.conf",
4167 "recurse": false,
4168 "regexp": null,
4169 "remote_src": null,
4170 "selevel": null,
4171 "serole": null,
4172 "setype": null,
4173 "seuser": null,
4174 "src": null,
4175 "state": "file",
4176 "unsafe_writes": null
4177 }
4178 },
4179 "mode": "0640",
4180 "owner": "postgres",
4181 "path": "/etc/postgresql/10/preprod/pg_ident.conf",
4182 "size": 1730,
4183 "state": "file",
4184 "uid": 108
4185}
4186
4187TASK [postgresql : PostgreSQL | Create folder for additional configuration files] ************************************************************************************************************************************************************
4188task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/configure.yml:165
4189<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4190<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
4191<192.168.80.32> (0, '/root\n', '')
4192<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4193<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531741048.46-150749220956579 `" && echo ansible-tmp-1531741048.46-150749220956579="` echo /root/.ansible/tmp/ansible-tmp-1531741048.46-150749220956579 `" ) && sleep 0'"'"''
4194<192.168.80.32> (0, 'ansible-tmp-1531741048.46-150749220956579=/root/.ansible/tmp/ansible-tmp-1531741048.46-150749220956579\n', '')
4195Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/file.py
4196<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmprOlsh4 TO /root/.ansible/tmp/ansible-tmp-1531741048.46-150749220956579/file.py
4197<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
4198<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmprOlsh4 /root/.ansible/tmp/ansible-tmp-1531741048.46-150749220956579/file.py\n', '')
4199<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4200<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741048.46-150749220956579/ /root/.ansible/tmp/ansible-tmp-1531741048.46-150749220956579/file.py && sleep 0'"'"''
4201<192.168.80.32> (0, '', '')
4202<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4203<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741048.46-150749220956579/file.py && sleep 0'"'"''
4204<192.168.80.32> (0, '\r\n{"invocation": {"module_args": {"delimiter": null, "force": false, "directory_mode": null, "group": "postgres", "remote_src": null, "serole": null, "follow": true, "seuser": null, "attributes": null, "_original_basename": null, "backup": null, "name": "/etc/postgresql/10/preprod/conf.d", "recurse": false, "path": "/etc/postgresql/10/preprod/conf.d", "owner": "postgres", "unsafe_writes": null, "state": "directory", "setype": null, "regexp": null, "selevel": null, "content": null, "_diff_peek": null, "src": null, "mode": 493}}, "group": "postgres", "size": 4096, "uid": 108, "path": "/etc/postgresql/10/preprod/conf.d", "diff": {"after": {"path": "/etc/postgresql/10/preprod/conf.d"}, "before": {"path": "/etc/postgresql/10/preprod/conf.d"}}, "owner": "postgres", "changed": false, "state": "directory", "gid": 114, "mode": "0755"}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
4205<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4206<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531741048.46-150749220956579/ > /dev/null 2>&1 && sleep 0'"'"''
4207<192.168.80.32> (0, '', '')
4208ok: [pg-preprod-1] => {
4209 "changed": false,
4210 "diff": {
4211 "after": {
4212 "path": "/etc/postgresql/10/preprod/conf.d"
4213 },
4214 "before": {
4215 "path": "/etc/postgresql/10/preprod/conf.d"
4216 }
4217 },
4218 "gid": 114,
4219 "group": "postgres",
4220 "invocation": {
4221 "module_args": {
4222 "_diff_peek": null,
4223 "_original_basename": null,
4224 "attributes": null,
4225 "backup": null,
4226 "content": null,
4227 "delimiter": null,
4228 "directory_mode": null,
4229 "follow": true,
4230 "force": false,
4231 "group": "postgres",
4232 "mode": 493,
4233 "name": "/etc/postgresql/10/preprod/conf.d",
4234 "owner": "postgres",
4235 "path": "/etc/postgresql/10/preprod/conf.d",
4236 "recurse": false,
4237 "regexp": null,
4238 "remote_src": null,
4239 "selevel": null,
4240 "serole": null,
4241 "setype": null,
4242 "seuser": null,
4243 "src": null,
4244 "state": "directory",
4245 "unsafe_writes": null
4246 }
4247 },
4248 "mode": "0755",
4249 "owner": "postgres",
4250 "path": "/etc/postgresql/10/preprod/conf.d",
4251 "size": 4096,
4252 "state": "directory",
4253 "uid": 108
4254}
4255
4256TASK [postgresql : PostgreSQL | Ensure the systemd directory for PostgreSQL exists | RedHat] *************************************************************************************************************************************************
4257task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/configure.yml:173
4258skipping: [pg-preprod-1] => {
4259 "changed": false,
4260 "skip_reason": "Conditional result was False"
4261}
4262
4263TASK [postgresql : PostgreSQL | Use the conf directory when starting the Postgres service | RedHat] ******************************************************************************************************************************************
4264task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/configure.yml:181
4265skipping: [pg-preprod-1] => {
4266 "changed": false,
4267 "skip_reason": "Conditional result was False"
4268}
4269
4270TASK [postgresql : PostgreSQL | Ensure the pid directory for PostgreSQL exists] **************************************************************************************************************************************************************
4271task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/configure.yml:188
4272<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4273<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
4274<192.168.80.32> (0, '/root\n', '')
4275<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4276<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531741049.79-212514121763655 `" && echo ansible-tmp-1531741049.79-212514121763655="` echo /root/.ansible/tmp/ansible-tmp-1531741049.79-212514121763655 `" ) && sleep 0'"'"''
4277<192.168.80.32> (0, 'ansible-tmp-1531741049.79-212514121763655=/root/.ansible/tmp/ansible-tmp-1531741049.79-212514121763655\n', '')
4278Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/file.py
4279<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmp1_bElg TO /root/.ansible/tmp/ansible-tmp-1531741049.79-212514121763655/file.py
4280<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
4281<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmp1_bElg /root/.ansible/tmp/ansible-tmp-1531741049.79-212514121763655/file.py\n', '')
4282<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4283<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741049.79-212514121763655/ /root/.ansible/tmp/ansible-tmp-1531741049.79-212514121763655/file.py && sleep 0'"'"''
4284<192.168.80.32> (0, '', '')
4285<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4286<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741049.79-212514121763655/file.py && sleep 0'"'"''
4287<192.168.80.32> (0, '\r\n{"changed": false, "gid": 114, "size": 140, "group": "postgres", "path": "/var/run/postgresql", "uid": 108, "invocation": {"module_args": {"_diff_peek": null, "directory_mode": null, "regexp": null, "src": null, "recurse": false, "backup": null, "group": "postgres", "force": false, "setype": null, "owner": "postgres", "content": null, "_original_basename": null, "state": "directory", "seuser": null, "delimiter": null, "follow": true, "selevel": null, "remote_src": null, "serole": null, "attributes": null, "mode": "u=rwX,g=rwXs,o=rx", "name": "/var/run/postgresql", "unsafe_writes": null, "path": "/var/run/postgresql"}}, "mode": "02775", "owner": "postgres", "diff": {"before": {"path": "/var/run/postgresql"}, "after": {"path": "/var/run/postgresql"}}, "state": "directory"}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
4288<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4289<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531741049.79-212514121763655/ > /dev/null 2>&1 && sleep 0'"'"''
4290<192.168.80.32> (0, '', '')
4291ok: [pg-preprod-1] => {
4292 "changed": false,
4293 "diff": {
4294 "after": {
4295 "path": "/var/run/postgresql"
4296 },
4297 "before": {
4298 "path": "/var/run/postgresql"
4299 }
4300 },
4301 "gid": 114,
4302 "group": "postgres",
4303 "invocation": {
4304 "module_args": {
4305 "_diff_peek": null,
4306 "_original_basename": null,
4307 "attributes": null,
4308 "backup": null,
4309 "content": null,
4310 "delimiter": null,
4311 "directory_mode": null,
4312 "follow": true,
4313 "force": false,
4314 "group": "postgres",
4315 "mode": "u=rwX,g=rwXs,o=rx",
4316 "name": "/var/run/postgresql",
4317 "owner": "postgres",
4318 "path": "/var/run/postgresql",
4319 "recurse": false,
4320 "regexp": null,
4321 "remote_src": null,
4322 "selevel": null,
4323 "serole": null,
4324 "setype": null,
4325 "seuser": null,
4326 "src": null,
4327 "state": "directory",
4328 "unsafe_writes": null
4329 }
4330 },
4331 "mode": "02775",
4332 "owner": "postgres",
4333 "path": "/var/run/postgresql",
4334 "size": 140,
4335 "state": "directory",
4336 "uid": 108
4337}
4338
4339TASK [postgresql : PostgreSQL | Reload all conf files] ***************************************************************************************************************************************************************************************
4340task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/configure.yml:197
4341skipping: [pg-preprod-1] => {
4342 "changed": false,
4343 "skip_reason": "Conditional result was False"
4344}
4345
4346TASK [postgresql : PostgreSQL | Ensure PostgreSQL is running] ********************************************************************************************************************************************************************************
4347task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/users.yml:3
4348<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4349<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
4350<192.168.80.32> (0, '/root\n', '')
4351<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4352<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531741050.89-150972145651213 `" && echo ansible-tmp-1531741050.89-150972145651213="` echo /root/.ansible/tmp/ansible-tmp-1531741050.89-150972145651213 `" ) && sleep 0'"'"''
4353<192.168.80.32> (0, 'ansible-tmp-1531741050.89-150972145651213=/root/.ansible/tmp/ansible-tmp-1531741050.89-150972145651213\n', '')
4354Using module file /usr/lib/python2.7/dist-packages/ansible/modules/system/systemd.py
4355<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmptymqCd TO /root/.ansible/tmp/ansible-tmp-1531741050.89-150972145651213/systemd.py
4356<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
4357<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmptymqCd /root/.ansible/tmp/ansible-tmp-1531741050.89-150972145651213/systemd.py\n', '')
4358<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4359<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741050.89-150972145651213/ /root/.ansible/tmp/ansible-tmp-1531741050.89-150972145651213/systemd.py && sleep 0'"'"''
4360<192.168.80.32> (0, '', '')
4361<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4362<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741050.89-150972145651213/systemd.py && sleep 0'"'"''
4363<192.168.80.32> (0, '\r\n{"status": {"CanStart": "yes", "TasksCurrent": "18446744073709551615", "NoNewPrivileges": "no", "RootDirectoryStartOnly": "no", "WatchdogTimestampMonotonic": "0", "MemoryCurrent": "18446744073709551615", "PrivateTmp": "no", "Slice": "system.slice", "ConditionTimestamp": "Thu 2018-07-12 11:48:37 UTC", "LimitRTPRIO": "0", "CPUSchedulingPolicy": "0", "AssertResult": "yes", "SameProcessGroup": "no", "FragmentPath": "/lib/systemd/system/postgresql.service", "NeedDaemonReload": "no", "LimitRTPRIOSoft": "0", "CanStop": "yes", "AmbientCapabilities": "0", "StartupCPUShares": "18446744073709551615", "OnFailureJobMode": "replace", "UnitFileState": "enabled", "StartLimitAction": "none", "SyslogPriority": "30", "AllowIsolate": "no", "ProtectHome": "no", "StartLimitBurst": "5", "RuntimeDirectoryMode": "0755", "LimitNICE": "0", "FailureAction": "none", "CanIsolate": "no", "LimitCPUSoft": "18446744073709551615", "IgnoreSIGPIPE": "yes", "KillSignal": "15", "Requires": "sysinit.target system.slice", "LimitLOCKSSoft": "18446744073709551615", "RestartUSec": "100ms", "AssertTimestamp": "Thu 2018-07-12 11:48:37 UTC", "TTYReset": "no", "ControlPID": "0", "LimitFSIZE": "18446744073709551615", "InactiveEnterTimestampMonotonic": "0", "DefaultDependencies": "yes", "LimitSIGPENDING": "3917", "TimerSlackNSec": "50000", "ExecReload": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "Before": "shutdown.target repmgrd.service multi-user.target pgbouncer.service", "ActiveEnterTimestampMonotonic": "2452329", "CapabilityBoundingSet": "18446744073709551615", "PrivateDevices": "no", "JobTimeoutUSec": "infinity", "LimitNOFILESoft": "1024", "LoadState": "loaded", "SyslogLevel": "6", "IgnoreOnIsolate": "no", "PermissionsStartOnly": "no", "Result": "success", "SyslogFacility": "3", "ControlGroup": "/system.slice/postgresql.service", "GuessMainPID": "yes", "ConditionTimestampMonotonic": "2431109", "StateChangeTimestampMonotonic": "22436018317", "InactiveExitTimestamp": "Thu 2018-07-12 11:48:37 UTC", "Conflicts": "shutdown.target", "Wants": "postgresql@10-preprod.service", "LimitNOFILE": "4096", "LimitCORE": "18446744073709551615", "TTYVHangup": "no", "WatchdogUSec": "0", "DevicePolicy": "auto", "StandardError": "inherit", "LimitNPROC": "3917", "WantedBy": "multi-user.target", "CPUQuotaPerSecUSec": "infinity", "IOScheduling": "0", "BlockIOWeight": "18446744073709551615", "RefuseManualStart": "no", "FileDescriptorStoreMax": "0", "ExecMainExitTimestampMonotonic": "2452203", "ExecMainExitTimestamp": "Thu 2018-07-12 11:48:37 UTC", "LimitNPROCSoft": "3917", "LimitSTACK": "18446744073709551615", "CPUSchedulingPriority": "0", "LimitRSSSoft": "18446744073709551615", "StopWhenUnneeded": "no", "LimitMEMLOCK": "65536", "Transient": "no", "LimitMSGQUEUE": "819200", "Restart": "no", "SecureBits": "0", "SyslogLevelPrefix": "yes", "LimitMSGQUEUESoft": "819200", "ExecMainStatus": "0", "Id": "postgresql.service", "ExecMainPID": "387", "StartLimitInterval": "10000000", "BlockIOAccounting": "no", "InactiveExitTimestampMonotonic": "2432056", "RuntimeMaxUSec": "infinity", "MountFlags": "0", "MemoryAccounting": "no", "SendSIGKILL": "yes", "ActiveEnterTimestamp": "Thu 2018-07-12 11:48:37 UTC", "LimitCORESoft": "0", "LimitDATASoft": "18446744073709551615", "LimitSIGPENDINGSoft": "3917", "LimitRTTIMESoft": "18446744073709551615", "MainPID": "0", "ExecMainStartTimestampMonotonic": "2432001", "StandardOutput": "journal", "MemoryLimit": "18446744073709551615", "LimitMEMLOCKSoft": "65536", "ExecStart": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "RefuseManualStop": "no", "LimitLOCKS": "18446744073709551615", "Description": "PostgreSQL RDBMS", "StandardInput": "null", "CPUUsageNSec": "18446744073709551615", "Names": "postgresql.service", "AssertTimestampMonotonic": "2431109", "StartupBlockIOWeight": "18446744073709551615", "ProtectSystem": "no", "PropagatesReloadTo": "postgresql@10-preprod.service", "ExecMainStartTimestamp": "Thu 2018-07-12 11:48:37 UTC", "Nice": "0", "UMask": "0022", "CPUShares": "18446744073709551615", "NFileDescriptorStore": "0", "TasksMax": "18446744073709551615", "ConsistsOf": "postgresql@10-preprod.service", "TimeoutStopUSec": "1min 30s", "LimitRTTIME": "18446744073709551615", "ActiveExitTimestampMonotonic": "0", "ExecMainCode": "1", "CPUSchedulingResetOnFork": "no", "LimitNICESoft": "0", "ConditionResult": "yes", "StateChangeTimestamp": "Thu 2018-07-12 15:02:31 UTC", "TTYVTDisallocate": "no", "JobTimeoutAction": "none", "RemainAfterExit": "yes", "UtmpMode": "init", "NonBlocking": "no", "LimitFSIZESoft": "18446744073709551615", "Delegate": "no", "TasksAccounting": "no", "LimitASSoft": "18446744073709551615", "OOMScoreAdjust": "0", "CPUAccounting": "no", "TimeoutStartUSec": "infinity", "UnitFilePreset": "enabled", "ActiveState": "active", "SystemCallErrorNumber": "0", "KillMode": "control-group", "LimitCPU": "18446744073709551615", "SendSIGHUP": "no", "LimitDATA": "18446744073709551615", "LimitRSS": "18446744073709551615", "PrivateNetwork": "no", "NotifyAccess": "none", "CanReload": "yes", "Type": "oneshot", "StatusErrno": "0", "After": "system.slice basic.target postgresql@10-preprod.service systemd-journald.socket sysinit.target", "SubState": "exited", "LimitSTACKSoft": "8388608", "LimitAS": "18446744073709551615"}, "name": "postgresql", "invocation": {"module_args": {"force": null, "name": "postgresql", "enabled": null, "masked": null, "state": "started", "daemon_reload": false, "user": false, "no_block": false}}, "state": "started", "changed": false}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
4364<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4365<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531741050.89-150972145651213/ > /dev/null 2>&1 && sleep 0'"'"''
4366<192.168.80.32> (0, '', '')
4367ok: [pg-preprod-1] => {
4368 "changed": false,
4369 "invocation": {
4370 "module_args": {
4371 "daemon_reload": false,
4372 "enabled": null,
4373 "force": null,
4374 "masked": null,
4375 "name": "postgresql",
4376 "no_block": false,
4377 "state": "started",
4378 "user": false
4379 }
4380 },
4381 "name": "postgresql",
4382 "state": "started",
4383 "status": {
4384 "ActiveEnterTimestamp": "Thu 2018-07-12 11:48:37 UTC",
4385 "ActiveEnterTimestampMonotonic": "2452329",
4386 "ActiveExitTimestampMonotonic": "0",
4387 "ActiveState": "active",
4388 "After": "system.slice basic.target postgresql@10-preprod.service systemd-journald.socket sysinit.target",
4389 "AllowIsolate": "no",
4390 "AmbientCapabilities": "0",
4391 "AssertResult": "yes",
4392 "AssertTimestamp": "Thu 2018-07-12 11:48:37 UTC",
4393 "AssertTimestampMonotonic": "2431109",
4394 "Before": "shutdown.target repmgrd.service multi-user.target pgbouncer.service",
4395 "BlockIOAccounting": "no",
4396 "BlockIOWeight": "18446744073709551615",
4397 "CPUAccounting": "no",
4398 "CPUQuotaPerSecUSec": "infinity",
4399 "CPUSchedulingPolicy": "0",
4400 "CPUSchedulingPriority": "0",
4401 "CPUSchedulingResetOnFork": "no",
4402 "CPUShares": "18446744073709551615",
4403 "CPUUsageNSec": "18446744073709551615",
4404 "CanIsolate": "no",
4405 "CanReload": "yes",
4406 "CanStart": "yes",
4407 "CanStop": "yes",
4408 "CapabilityBoundingSet": "18446744073709551615",
4409 "ConditionResult": "yes",
4410 "ConditionTimestamp": "Thu 2018-07-12 11:48:37 UTC",
4411 "ConditionTimestampMonotonic": "2431109",
4412 "Conflicts": "shutdown.target",
4413 "ConsistsOf": "postgresql@10-preprod.service",
4414 "ControlGroup": "/system.slice/postgresql.service",
4415 "ControlPID": "0",
4416 "DefaultDependencies": "yes",
4417 "Delegate": "no",
4418 "Description": "PostgreSQL RDBMS",
4419 "DevicePolicy": "auto",
4420 "ExecMainCode": "1",
4421 "ExecMainExitTimestamp": "Thu 2018-07-12 11:48:37 UTC",
4422 "ExecMainExitTimestampMonotonic": "2452203",
4423 "ExecMainPID": "387",
4424 "ExecMainStartTimestamp": "Thu 2018-07-12 11:48:37 UTC",
4425 "ExecMainStartTimestampMonotonic": "2432001",
4426 "ExecMainStatus": "0",
4427 "ExecReload": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }",
4428 "ExecStart": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }",
4429 "FailureAction": "none",
4430 "FileDescriptorStoreMax": "0",
4431 "FragmentPath": "/lib/systemd/system/postgresql.service",
4432 "GuessMainPID": "yes",
4433 "IOScheduling": "0",
4434 "Id": "postgresql.service",
4435 "IgnoreOnIsolate": "no",
4436 "IgnoreSIGPIPE": "yes",
4437 "InactiveEnterTimestampMonotonic": "0",
4438 "InactiveExitTimestamp": "Thu 2018-07-12 11:48:37 UTC",
4439 "InactiveExitTimestampMonotonic": "2432056",
4440 "JobTimeoutAction": "none",
4441 "JobTimeoutUSec": "infinity",
4442 "KillMode": "control-group",
4443 "KillSignal": "15",
4444 "LimitAS": "18446744073709551615",
4445 "LimitASSoft": "18446744073709551615",
4446 "LimitCORE": "18446744073709551615",
4447 "LimitCORESoft": "0",
4448 "LimitCPU": "18446744073709551615",
4449 "LimitCPUSoft": "18446744073709551615",
4450 "LimitDATA": "18446744073709551615",
4451 "LimitDATASoft": "18446744073709551615",
4452 "LimitFSIZE": "18446744073709551615",
4453 "LimitFSIZESoft": "18446744073709551615",
4454 "LimitLOCKS": "18446744073709551615",
4455 "LimitLOCKSSoft": "18446744073709551615",
4456 "LimitMEMLOCK": "65536",
4457 "LimitMEMLOCKSoft": "65536",
4458 "LimitMSGQUEUE": "819200",
4459 "LimitMSGQUEUESoft": "819200",
4460 "LimitNICE": "0",
4461 "LimitNICESoft": "0",
4462 "LimitNOFILE": "4096",
4463 "LimitNOFILESoft": "1024",
4464 "LimitNPROC": "3917",
4465 "LimitNPROCSoft": "3917",
4466 "LimitRSS": "18446744073709551615",
4467 "LimitRSSSoft": "18446744073709551615",
4468 "LimitRTPRIO": "0",
4469 "LimitRTPRIOSoft": "0",
4470 "LimitRTTIME": "18446744073709551615",
4471 "LimitRTTIMESoft": "18446744073709551615",
4472 "LimitSIGPENDING": "3917",
4473 "LimitSIGPENDINGSoft": "3917",
4474 "LimitSTACK": "18446744073709551615",
4475 "LimitSTACKSoft": "8388608",
4476 "LoadState": "loaded",
4477 "MainPID": "0",
4478 "MemoryAccounting": "no",
4479 "MemoryCurrent": "18446744073709551615",
4480 "MemoryLimit": "18446744073709551615",
4481 "MountFlags": "0",
4482 "NFileDescriptorStore": "0",
4483 "Names": "postgresql.service",
4484 "NeedDaemonReload": "no",
4485 "Nice": "0",
4486 "NoNewPrivileges": "no",
4487 "NonBlocking": "no",
4488 "NotifyAccess": "none",
4489 "OOMScoreAdjust": "0",
4490 "OnFailureJobMode": "replace",
4491 "PermissionsStartOnly": "no",
4492 "PrivateDevices": "no",
4493 "PrivateNetwork": "no",
4494 "PrivateTmp": "no",
4495 "PropagatesReloadTo": "postgresql@10-preprod.service",
4496 "ProtectHome": "no",
4497 "ProtectSystem": "no",
4498 "RefuseManualStart": "no",
4499 "RefuseManualStop": "no",
4500 "RemainAfterExit": "yes",
4501 "Requires": "sysinit.target system.slice",
4502 "Restart": "no",
4503 "RestartUSec": "100ms",
4504 "Result": "success",
4505 "RootDirectoryStartOnly": "no",
4506 "RuntimeDirectoryMode": "0755",
4507 "RuntimeMaxUSec": "infinity",
4508 "SameProcessGroup": "no",
4509 "SecureBits": "0",
4510 "SendSIGHUP": "no",
4511 "SendSIGKILL": "yes",
4512 "Slice": "system.slice",
4513 "StandardError": "inherit",
4514 "StandardInput": "null",
4515 "StandardOutput": "journal",
4516 "StartLimitAction": "none",
4517 "StartLimitBurst": "5",
4518 "StartLimitInterval": "10000000",
4519 "StartupBlockIOWeight": "18446744073709551615",
4520 "StartupCPUShares": "18446744073709551615",
4521 "StateChangeTimestamp": "Thu 2018-07-12 15:02:31 UTC",
4522 "StateChangeTimestampMonotonic": "22436018317",
4523 "StatusErrno": "0",
4524 "StopWhenUnneeded": "no",
4525 "SubState": "exited",
4526 "SyslogFacility": "3",
4527 "SyslogLevel": "6",
4528 "SyslogLevelPrefix": "yes",
4529 "SyslogPriority": "30",
4530 "SystemCallErrorNumber": "0",
4531 "TTYReset": "no",
4532 "TTYVHangup": "no",
4533 "TTYVTDisallocate": "no",
4534 "TasksAccounting": "no",
4535 "TasksCurrent": "18446744073709551615",
4536 "TasksMax": "18446744073709551615",
4537 "TimeoutStartUSec": "infinity",
4538 "TimeoutStopUSec": "1min 30s",
4539 "TimerSlackNSec": "50000",
4540 "Transient": "no",
4541 "Type": "oneshot",
4542 "UMask": "0022",
4543 "UnitFilePreset": "enabled",
4544 "UnitFileState": "enabled",
4545 "UtmpMode": "init",
4546 "WantedBy": "multi-user.target",
4547 "Wants": "postgresql@10-preprod.service",
4548 "WatchdogTimestampMonotonic": "0",
4549 "WatchdogUSec": "0"
4550 }
4551}
4552
4553TASK [postgresql : PostgreSQL | Make sure the PostgreSQL users are present] ******************************************************************************************************************************************************************
4554task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/users.yml:8
4555<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4556<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
4557<192.168.80.32> (0, '/root\n', '')
4558<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4559<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /var/tmp/ansible-tmp-1531741052.07-74363148620332 `" && echo ansible-tmp-1531741052.07-74363148620332="` echo /var/tmp/ansible-tmp-1531741052.07-74363148620332 `" ) && sleep 0'"'"''
4560<192.168.80.32> (0, 'ansible-tmp-1531741052.07-74363148620332=/var/tmp/ansible-tmp-1531741052.07-74363148620332\n', '')
4561Using module file /usr/lib/python2.7/dist-packages/ansible/modules/database/postgresql/postgresql_user.py
4562<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmp_3_yXa TO /var/tmp/ansible-tmp-1531741052.07-74363148620332/postgresql_user.py
4563<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
4564<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmp_3_yXa /var/tmp/ansible-tmp-1531741052.07-74363148620332/postgresql_user.py\n', '')
4565<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4566<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'setfacl -m u:postgres:r-x /var/tmp/ansible-tmp-1531741052.07-74363148620332/ /var/tmp/ansible-tmp-1531741052.07-74363148620332/postgresql_user.py && sleep 0'"'"''
4567<192.168.80.32> (0, '', '')
4568<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4569<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'sudo -H -S -n -u postgres /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-aulsbdhhgqlsooxjsonevxfbrrskznqp; python3 /var/tmp/ansible-tmp-1531741052.07-74363148620332/postgresql_user.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
4570Escalation succeeded
4571<192.168.80.32> (0, '\r\n{"invocation": {"module_args": {"conn_limit": null, "ssl_mode": "prefer", "login_unix_socket": "", "fail_on_user": true, "user": "backend_preprod", "state": "present", "login_user": "postgres", "login_host": "", "ssl_rootcert": null, "port": "5433", "role_attr_flags": "", "no_password_changes": false, "db": "", "encrypted": true, "priv": null, "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "expires": null, "name": "backend_preprod", "login_password": ""}}, "changed": false, "user": "backend_preprod"}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
4572<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4573<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /var/tmp/ansible-tmp-1531741052.07-74363148620332/ > /dev/null 2>&1 && sleep 0'"'"''
4574<192.168.80.32> (0, '', '')
4575ok: [pg-preprod-1] => (item=None) => {
4576 "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result",
4577 "changed": false
4578}
4579<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4580<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
4581<192.168.80.32> (0, '/root\n', '')
4582<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4583<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /var/tmp/ansible-tmp-1531741053.29-46496972795812 `" && echo ansible-tmp-1531741053.29-46496972795812="` echo /var/tmp/ansible-tmp-1531741053.29-46496972795812 `" ) && sleep 0'"'"''
4584<192.168.80.32> (0, 'ansible-tmp-1531741053.29-46496972795812=/var/tmp/ansible-tmp-1531741053.29-46496972795812\n', '')
4585Using module file /usr/lib/python2.7/dist-packages/ansible/modules/database/postgresql/postgresql_user.py
4586<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpq1Nrpy TO /var/tmp/ansible-tmp-1531741053.29-46496972795812/postgresql_user.py
4587<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
4588<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpq1Nrpy /var/tmp/ansible-tmp-1531741053.29-46496972795812/postgresql_user.py\n', '')
4589<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4590<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'setfacl -m u:postgres:r-x /var/tmp/ansible-tmp-1531741053.29-46496972795812/ /var/tmp/ansible-tmp-1531741053.29-46496972795812/postgresql_user.py && sleep 0'"'"''
4591<192.168.80.32> (0, '', '')
4592<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4593<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'sudo -H -S -n -u postgres /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-iyqlwolqstxrlhmhzpwhtctwlayugoyv; python3 /var/tmp/ansible-tmp-1531741053.29-46496972795812/postgresql_user.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
4594Escalation succeeded
4595<192.168.80.32> (0, '\r\n{"changed": false, "user": "fakeaccouting_preprod", "invocation": {"module_args": {"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "ssl_mode": "prefer", "priv": null, "role_attr_flags": "", "conn_limit": null, "login_host": "", "ssl_rootcert": null, "port": "5433", "state": "present", "login_password": "", "name": "fakeaccouting_preprod", "expires": null, "db": "", "fail_on_user": true, "login_user": "postgres", "user": "fakeaccouting_preprod", "no_password_changes": false, "login_unix_socket": "", "encrypted": true}}}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
4596<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4597<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /var/tmp/ansible-tmp-1531741053.29-46496972795812/ > /dev/null 2>&1 && sleep 0'"'"''
4598<192.168.80.32> (0, '', '')
4599ok: [pg-preprod-1] => (item=None) => {
4600 "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result",
4601 "changed": false
4602}
4603<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4604<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
4605<192.168.80.32> (0, '/root\n', '')
4606<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4607<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /var/tmp/ansible-tmp-1531741054.47-100880763612787 `" && echo ansible-tmp-1531741054.47-100880763612787="` echo /var/tmp/ansible-tmp-1531741054.47-100880763612787 `" ) && sleep 0'"'"''
4608<192.168.80.32> (0, 'ansible-tmp-1531741054.47-100880763612787=/var/tmp/ansible-tmp-1531741054.47-100880763612787\n', '')
4609Using module file /usr/lib/python2.7/dist-packages/ansible/modules/database/postgresql/postgresql_user.py
4610<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpqsLoJV TO /var/tmp/ansible-tmp-1531741054.47-100880763612787/postgresql_user.py
4611<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
4612<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpqsLoJV /var/tmp/ansible-tmp-1531741054.47-100880763612787/postgresql_user.py\n', '')
4613<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4614<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'setfacl -m u:postgres:r-x /var/tmp/ansible-tmp-1531741054.47-100880763612787/ /var/tmp/ansible-tmp-1531741054.47-100880763612787/postgresql_user.py && sleep 0'"'"''
4615<192.168.80.32> (0, '', '')
4616<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4617<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'sudo -H -S -n -u postgres /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-rmoripjquumdpiajzrksnmtxannbzood; python3 /var/tmp/ansible-tmp-1531741054.47-100880763612787/postgresql_user.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
4618Escalation succeeded
4619<192.168.80.32> (0, '\r\n{"invocation": {"module_args": {"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "conn_limit": null, "user": "postgres", "name": "postgres", "role_attr_flags": "", "login_host": "", "ssl_mode": "prefer", "login_unix_socket": "", "expires": null, "ssl_rootcert": null, "no_password_changes": false, "priv": null, "encrypted": true, "db": "", "login_password": "", "state": "present", "fail_on_user": true, "login_user": "postgres", "port": "5433"}}, "changed": false, "user": "postgres"}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
4620<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4621<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /var/tmp/ansible-tmp-1531741054.47-100880763612787/ > /dev/null 2>&1 && sleep 0'"'"''
4622<192.168.80.32> (0, '', '')
4623ok: [pg-preprod-1] => (item=None) => {
4624 "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result",
4625 "changed": false
4626}
4627<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4628<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
4629<192.168.80.32> (0, '/root\n', '')
4630<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4631<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /var/tmp/ansible-tmp-1531741055.63-240741870639688 `" && echo ansible-tmp-1531741055.63-240741870639688="` echo /var/tmp/ansible-tmp-1531741055.63-240741870639688 `" ) && sleep 0'"'"''
4632<192.168.80.32> (0, 'ansible-tmp-1531741055.63-240741870639688=/var/tmp/ansible-tmp-1531741055.63-240741870639688\n', '')
4633Using module file /usr/lib/python2.7/dist-packages/ansible/modules/database/postgresql/postgresql_user.py
4634<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmp99p4rB TO /var/tmp/ansible-tmp-1531741055.63-240741870639688/postgresql_user.py
4635<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
4636<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmp99p4rB /var/tmp/ansible-tmp-1531741055.63-240741870639688/postgresql_user.py\n', '')
4637<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4638<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'setfacl -m u:postgres:r-x /var/tmp/ansible-tmp-1531741055.63-240741870639688/ /var/tmp/ansible-tmp-1531741055.63-240741870639688/postgresql_user.py && sleep 0'"'"''
4639<192.168.80.32> (0, '', '')
4640<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4641<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'sudo -H -S -n -u postgres /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-cokxengnoiearjbvogpvvbgckegdtumr; python3 /var/tmp/ansible-tmp-1531741055.63-240741870639688/postgresql_user.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
4642Escalation succeeded
4643<192.168.80.32> (0, '\r\n{"user": "repmgr", "invocation": {"module_args": {"no_password_changes": false, "ssl_rootcert": null, "name": "repmgr", "user": "repmgr", "login_unix_socket": "", "login_password": "", "conn_limit": null, "state": "present", "encrypted": true, "priv": null, "fail_on_user": true, "ssl_mode": "prefer", "db": "", "login_host": "", "port": "5433", "expires": null, "login_user": "postgres", "role_attr_flags": "", "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"}}, "changed": false}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
4644<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4645<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /var/tmp/ansible-tmp-1531741055.63-240741870639688/ > /dev/null 2>&1 && sleep 0'"'"''
4646<192.168.80.32> (0, '', '')
4647ok: [pg-preprod-1] => (item=None) => {
4648 "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result",
4649 "changed": false
4650}
4651ok: [pg-preprod-1] => {
4652 "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result",
4653 "changed": false
4654}
4655
4656TASK [postgresql : PostgreSQL | Ensure PostgreSQL is running] ********************************************************************************************************************************************************************************
4657task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/databases.yml:3
4658<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4659<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
4660<192.168.80.32> (0, '/root\n', '')
4661<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4662<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531741056.93-143140938234133 `" && echo ansible-tmp-1531741056.93-143140938234133="` echo /root/.ansible/tmp/ansible-tmp-1531741056.93-143140938234133 `" ) && sleep 0'"'"''
4663<192.168.80.32> (0, 'ansible-tmp-1531741056.93-143140938234133=/root/.ansible/tmp/ansible-tmp-1531741056.93-143140938234133\n', '')
4664Using module file /usr/lib/python2.7/dist-packages/ansible/modules/system/systemd.py
4665<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmped0F9i TO /root/.ansible/tmp/ansible-tmp-1531741056.93-143140938234133/systemd.py
4666<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
4667<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmped0F9i /root/.ansible/tmp/ansible-tmp-1531741056.93-143140938234133/systemd.py\n', '')
4668<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4669<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741056.93-143140938234133/ /root/.ansible/tmp/ansible-tmp-1531741056.93-143140938234133/systemd.py && sleep 0'"'"''
4670<192.168.80.32> (0, '', '')
4671<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4672<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741056.93-143140938234133/systemd.py && sleep 0'"'"''
4673<192.168.80.32> (0, '\r\n{"state": "started", "status": {"StandardOutput": "journal", "Conflicts": "shutdown.target", "FailureAction": "none", "ExecReload": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "DefaultDependencies": "yes", "LimitRTTIME": "18446744073709551615", "ProtectHome": "no", "NotifyAccess": "none", "LimitFSIZE": "18446744073709551615", "TasksAccounting": "no", "LimitRSS": "18446744073709551615", "ActiveState": "active", "ExecMainExitTimestampMonotonic": "2452203", "LimitNPROCSoft": "3917", "Description": "PostgreSQL RDBMS", "WatchdogUSec": "0", "ExecMainExitTimestamp": "Thu 2018-07-12 11:48:37 UTC", "BlockIOAccounting": "no", "InactiveEnterTimestampMonotonic": "0", "LimitMEMLOCKSoft": "65536", "TTYVTDisallocate": "no", "KillMode": "control-group", "CanReload": "yes", "LimitMSGQUEUESoft": "819200", "StartupBlockIOWeight": "18446744073709551615", "WatchdogTimestampMonotonic": "0", "StartLimitAction": "none", "NeedDaemonReload": "no", "FileDescriptorStoreMax": "0", "CapabilityBoundingSet": "18446744073709551615", "ExecMainStartTimestampMonotonic": "2432001", "BlockIOWeight": "18446744073709551615", "ConsistsOf": "postgresql@10-preprod.service", "ExecMainStatus": "0", "KillSignal": "15", "LimitSIGPENDINGSoft": "3917", "UtmpMode": "init", "LimitRSSSoft": "18446744073709551615", "MainPID": "0", "LimitASSoft": "18446744073709551615", "StandardError": "inherit", "AmbientCapabilities": "0", "SyslogLevel": "6", "GuessMainPID": "yes", "Before": "shutdown.target repmgrd.service multi-user.target pgbouncer.service", "OnFailureJobMode": "replace", "Restart": "no", "JobTimeoutAction": "none", "StatusErrno": "0", "InactiveExitTimestampMonotonic": "2432056", "OOMScoreAdjust": "0", "UnitFileState": "enabled", "LimitCORE": "18446744073709551615", "After": "system.slice basic.target postgresql@10-preprod.service systemd-journald.socket sysinit.target", "LimitDATASoft": "18446744073709551615", "LimitRTPRIOSoft": "0", "PrivateTmp": "no", "Wants": "postgresql@10-preprod.service", "JobTimeoutUSec": "infinity", "ConditionTimestamp": "Thu 2018-07-12 11:48:37 UTC", "TasksCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "UnitFilePreset": "enabled", "ExecMainStartTimestamp": "Thu 2018-07-12 11:48:37 UTC", "LimitLOCKSSoft": "18446744073709551615", "MemoryAccounting": "no", "AssertResult": "yes", "ControlGroup": "/system.slice/postgresql.service", "MountFlags": "0", "LimitNICESoft": "0", "LoadState": "loaded", "InactiveExitTimestamp": "Thu 2018-07-12 11:48:37 UTC", "LimitRTTIMESoft": "18446744073709551615", "CanIsolate": "no", "CanStop": "yes", "StartLimitInterval": "10000000", "PrivateNetwork": "no", "CPUSchedulingPolicy": "0", "TimeoutStopUSec": "1min 30s", "CPUUsageNSec": "18446744073709551615", "AllowIsolate": "no", "Result": "success", "SameProcessGroup": "no", "TimerSlackNSec": "50000", "LimitNPROC": "3917", "Delegate": "no", "IgnoreSIGPIPE": "yes", "PrivateDevices": "no", "ProtectSystem": "no", "CPUAccounting": "no", "SyslogFacility": "3", "SecureBits": "0", "TTYReset": "no", "LimitRTPRIO": "0", "ActiveExitTimestampMonotonic": "0", "DevicePolicy": "auto", "SyslogPriority": "30", "RefuseManualStart": "no", "Transient": "no", "RuntimeDirectoryMode": "0755", "AssertTimestampMonotonic": "2431109", "SyslogLevelPrefix": "yes", "RuntimeMaxUSec": "infinity", "RemainAfterExit": "yes", "Names": "postgresql.service", "ControlPID": "0", "SendSIGKILL": "yes", "StateChangeTimestampMonotonic": "22436018317", "RootDirectoryStartOnly": "no", "LimitDATA": "18446744073709551615", "StateChangeTimestamp": "Thu 2018-07-12 15:02:31 UTC", "IgnoreOnIsolate": "no", "CPUSchedulingPriority": "0", "ConditionTimestampMonotonic": "2431109", "LimitSTACKSoft": "8388608", "CPUSchedulingResetOnFork": "no", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "infinity", "RestartUSec": "100ms", "LimitMEMLOCK": "65536", "NoNewPrivileges": "no", "LimitAS": "18446744073709551615", "LimitFSIZESoft": "18446744073709551615", "LimitNOFILESoft": "1024", "Id": "postgresql.service", "MemoryCurrent": "18446744073709551615", "ExecMainPID": "387", "CanStart": "yes", "LimitCORESoft": "0", "SystemCallErrorNumber": "0", "StopWhenUnneeded": "no", "CPUShares": "18446744073709551615", "StartLimitBurst": "5", "SendSIGHUP": "no", "UMask": "0022", "Nice": "0", "Type": "oneshot", "NFileDescriptorStore": "0", "SubState": "exited", "LimitMSGQUEUE": "819200", "Requires": "sysinit.target system.slice", "CPUQuotaPerSecUSec": "infinity", "FragmentPath": "/lib/systemd/system/postgresql.service", "IOScheduling": "0", "LimitNICE": "0", "StartupCPUShares": "18446744073709551615", "TTYVHangup": "no", "RefuseManualStop": "no", "LimitCPU": "18446744073709551615", "LimitNOFILE": "4096", "PermissionsStartOnly": "no", "PropagatesReloadTo": "postgresql@10-preprod.service", "ActiveEnterTimestamp": "Thu 2018-07-12 11:48:37 UTC", "LimitSTACK": "18446744073709551615", "NonBlocking": "no", "ExecStart": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "LimitSIGPENDING": "3917", "WantedBy": "multi-user.target", "Slice": "system.slice", "LimitLOCKS": "18446744073709551615", "ExecMainCode": "1", "ActiveEnterTimestampMonotonic": "2452329", "AssertTimestamp": "Thu 2018-07-12 11:48:37 UTC", "StandardInput": "null", "ConditionResult": "yes", "LimitCPUSoft": "18446744073709551615"}, "invocation": {"module_args": {"force": null, "no_block": false, "name": "postgresql", "user": false, "daemon_reload": false, "state": "started", "masked": null, "enabled": null}}, "changed": false, "name": "postgresql"}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
4674<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4675<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531741056.93-143140938234133/ > /dev/null 2>&1 && sleep 0'"'"''
4676<192.168.80.32> (0, '', '')
4677ok: [pg-preprod-1] => {
4678 "changed": false,
4679 "invocation": {
4680 "module_args": {
4681 "daemon_reload": false,
4682 "enabled": null,
4683 "force": null,
4684 "masked": null,
4685 "name": "postgresql",
4686 "no_block": false,
4687 "state": "started",
4688 "user": false
4689 }
4690 },
4691 "name": "postgresql",
4692 "state": "started",
4693 "status": {
4694 "ActiveEnterTimestamp": "Thu 2018-07-12 11:48:37 UTC",
4695 "ActiveEnterTimestampMonotonic": "2452329",
4696 "ActiveExitTimestampMonotonic": "0",
4697 "ActiveState": "active",
4698 "After": "system.slice basic.target postgresql@10-preprod.service systemd-journald.socket sysinit.target",
4699 "AllowIsolate": "no",
4700 "AmbientCapabilities": "0",
4701 "AssertResult": "yes",
4702 "AssertTimestamp": "Thu 2018-07-12 11:48:37 UTC",
4703 "AssertTimestampMonotonic": "2431109",
4704 "Before": "shutdown.target repmgrd.service multi-user.target pgbouncer.service",
4705 "BlockIOAccounting": "no",
4706 "BlockIOWeight": "18446744073709551615",
4707 "CPUAccounting": "no",
4708 "CPUQuotaPerSecUSec": "infinity",
4709 "CPUSchedulingPolicy": "0",
4710 "CPUSchedulingPriority": "0",
4711 "CPUSchedulingResetOnFork": "no",
4712 "CPUShares": "18446744073709551615",
4713 "CPUUsageNSec": "18446744073709551615",
4714 "CanIsolate": "no",
4715 "CanReload": "yes",
4716 "CanStart": "yes",
4717 "CanStop": "yes",
4718 "CapabilityBoundingSet": "18446744073709551615",
4719 "ConditionResult": "yes",
4720 "ConditionTimestamp": "Thu 2018-07-12 11:48:37 UTC",
4721 "ConditionTimestampMonotonic": "2431109",
4722 "Conflicts": "shutdown.target",
4723 "ConsistsOf": "postgresql@10-preprod.service",
4724 "ControlGroup": "/system.slice/postgresql.service",
4725 "ControlPID": "0",
4726 "DefaultDependencies": "yes",
4727 "Delegate": "no",
4728 "Description": "PostgreSQL RDBMS",
4729 "DevicePolicy": "auto",
4730 "ExecMainCode": "1",
4731 "ExecMainExitTimestamp": "Thu 2018-07-12 11:48:37 UTC",
4732 "ExecMainExitTimestampMonotonic": "2452203",
4733 "ExecMainPID": "387",
4734 "ExecMainStartTimestamp": "Thu 2018-07-12 11:48:37 UTC",
4735 "ExecMainStartTimestampMonotonic": "2432001",
4736 "ExecMainStatus": "0",
4737 "ExecReload": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }",
4738 "ExecStart": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }",
4739 "FailureAction": "none",
4740 "FileDescriptorStoreMax": "0",
4741 "FragmentPath": "/lib/systemd/system/postgresql.service",
4742 "GuessMainPID": "yes",
4743 "IOScheduling": "0",
4744 "Id": "postgresql.service",
4745 "IgnoreOnIsolate": "no",
4746 "IgnoreSIGPIPE": "yes",
4747 "InactiveEnterTimestampMonotonic": "0",
4748 "InactiveExitTimestamp": "Thu 2018-07-12 11:48:37 UTC",
4749 "InactiveExitTimestampMonotonic": "2432056",
4750 "JobTimeoutAction": "none",
4751 "JobTimeoutUSec": "infinity",
4752 "KillMode": "control-group",
4753 "KillSignal": "15",
4754 "LimitAS": "18446744073709551615",
4755 "LimitASSoft": "18446744073709551615",
4756 "LimitCORE": "18446744073709551615",
4757 "LimitCORESoft": "0",
4758 "LimitCPU": "18446744073709551615",
4759 "LimitCPUSoft": "18446744073709551615",
4760 "LimitDATA": "18446744073709551615",
4761 "LimitDATASoft": "18446744073709551615",
4762 "LimitFSIZE": "18446744073709551615",
4763 "LimitFSIZESoft": "18446744073709551615",
4764 "LimitLOCKS": "18446744073709551615",
4765 "LimitLOCKSSoft": "18446744073709551615",
4766 "LimitMEMLOCK": "65536",
4767 "LimitMEMLOCKSoft": "65536",
4768 "LimitMSGQUEUE": "819200",
4769 "LimitMSGQUEUESoft": "819200",
4770 "LimitNICE": "0",
4771 "LimitNICESoft": "0",
4772 "LimitNOFILE": "4096",
4773 "LimitNOFILESoft": "1024",
4774 "LimitNPROC": "3917",
4775 "LimitNPROCSoft": "3917",
4776 "LimitRSS": "18446744073709551615",
4777 "LimitRSSSoft": "18446744073709551615",
4778 "LimitRTPRIO": "0",
4779 "LimitRTPRIOSoft": "0",
4780 "LimitRTTIME": "18446744073709551615",
4781 "LimitRTTIMESoft": "18446744073709551615",
4782 "LimitSIGPENDING": "3917",
4783 "LimitSIGPENDINGSoft": "3917",
4784 "LimitSTACK": "18446744073709551615",
4785 "LimitSTACKSoft": "8388608",
4786 "LoadState": "loaded",
4787 "MainPID": "0",
4788 "MemoryAccounting": "no",
4789 "MemoryCurrent": "18446744073709551615",
4790 "MemoryLimit": "18446744073709551615",
4791 "MountFlags": "0",
4792 "NFileDescriptorStore": "0",
4793 "Names": "postgresql.service",
4794 "NeedDaemonReload": "no",
4795 "Nice": "0",
4796 "NoNewPrivileges": "no",
4797 "NonBlocking": "no",
4798 "NotifyAccess": "none",
4799 "OOMScoreAdjust": "0",
4800 "OnFailureJobMode": "replace",
4801 "PermissionsStartOnly": "no",
4802 "PrivateDevices": "no",
4803 "PrivateNetwork": "no",
4804 "PrivateTmp": "no",
4805 "PropagatesReloadTo": "postgresql@10-preprod.service",
4806 "ProtectHome": "no",
4807 "ProtectSystem": "no",
4808 "RefuseManualStart": "no",
4809 "RefuseManualStop": "no",
4810 "RemainAfterExit": "yes",
4811 "Requires": "sysinit.target system.slice",
4812 "Restart": "no",
4813 "RestartUSec": "100ms",
4814 "Result": "success",
4815 "RootDirectoryStartOnly": "no",
4816 "RuntimeDirectoryMode": "0755",
4817 "RuntimeMaxUSec": "infinity",
4818 "SameProcessGroup": "no",
4819 "SecureBits": "0",
4820 "SendSIGHUP": "no",
4821 "SendSIGKILL": "yes",
4822 "Slice": "system.slice",
4823 "StandardError": "inherit",
4824 "StandardInput": "null",
4825 "StandardOutput": "journal",
4826 "StartLimitAction": "none",
4827 "StartLimitBurst": "5",
4828 "StartLimitInterval": "10000000",
4829 "StartupBlockIOWeight": "18446744073709551615",
4830 "StartupCPUShares": "18446744073709551615",
4831 "StateChangeTimestamp": "Thu 2018-07-12 15:02:31 UTC",
4832 "StateChangeTimestampMonotonic": "22436018317",
4833 "StatusErrno": "0",
4834 "StopWhenUnneeded": "no",
4835 "SubState": "exited",
4836 "SyslogFacility": "3",
4837 "SyslogLevel": "6",
4838 "SyslogLevelPrefix": "yes",
4839 "SyslogPriority": "30",
4840 "SystemCallErrorNumber": "0",
4841 "TTYReset": "no",
4842 "TTYVHangup": "no",
4843 "TTYVTDisallocate": "no",
4844 "TasksAccounting": "no",
4845 "TasksCurrent": "18446744073709551615",
4846 "TasksMax": "18446744073709551615",
4847 "TimeoutStartUSec": "infinity",
4848 "TimeoutStopUSec": "1min 30s",
4849 "TimerSlackNSec": "50000",
4850 "Transient": "no",
4851 "Type": "oneshot",
4852 "UMask": "0022",
4853 "UnitFilePreset": "enabled",
4854 "UnitFileState": "enabled",
4855 "UtmpMode": "init",
4856 "WantedBy": "multi-user.target",
4857 "Wants": "postgresql@10-preprod.service",
4858 "WatchdogTimestampMonotonic": "0",
4859 "WatchdogUSec": "0"
4860 }
4861}
4862
4863TASK [postgresql : PostgreSQL | Make sure the PostgreSQL databases are present] **************************************************************************************************************************************************************
4864task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/databases.yml:8
4865<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4866<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
4867<192.168.80.32> (0, '/root\n', '')
4868<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4869<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /var/tmp/ansible-tmp-1531741058.64-162871391689507 `" && echo ansible-tmp-1531741058.64-162871391689507="` echo /var/tmp/ansible-tmp-1531741058.64-162871391689507 `" ) && sleep 0'"'"''
4870<192.168.80.32> (0, 'ansible-tmp-1531741058.64-162871391689507=/var/tmp/ansible-tmp-1531741058.64-162871391689507\n', '')
4871Using module file /usr/lib/python2.7/dist-packages/ansible/modules/database/postgresql/postgresql_db.py
4872<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpY2eCpw TO /var/tmp/ansible-tmp-1531741058.64-162871391689507/postgresql_db.py
4873<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
4874<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpY2eCpw /var/tmp/ansible-tmp-1531741058.64-162871391689507/postgresql_db.py\n', '')
4875<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4876<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'setfacl -m u:postgres:r-x /var/tmp/ansible-tmp-1531741058.64-162871391689507/ /var/tmp/ansible-tmp-1531741058.64-162871391689507/postgresql_db.py && sleep 0'"'"''
4877<192.168.80.32> (0, '', '')
4878<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4879<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'sudo -H -S -n -u postgres /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-khconowzmpcijxhzokhefmnyxyneneib; python3 /var/tmp/ansible-tmp-1531741058.64-162871391689507/postgresql_db.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
4880Escalation succeeded
4881<192.168.80.32> (0, '\r\n{"db": "backend_preprod", "changed": false, "invocation": {"module_args": {"port": 5433, "target": "", "login_user": "postgres", "encoding": "UTF-8", "ssl_rootcert": null, "maintenance_db": "postgres", "db": "backend_preprod", "login_password": "", "state": "present", "ssl_mode": "prefer", "name": "backend_preprod", "target_opts": "", "login_host": "", "lc_collate": "en_US.UTF-8", "owner": "backend_preprod", "login_unix_socket": "", "template": "template0", "lc_ctype": "en_US.UTF-8"}}}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
4882<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4883<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /var/tmp/ansible-tmp-1531741058.64-162871391689507/ > /dev/null 2>&1 && sleep 0'"'"''
4884<192.168.80.32> (0, '', '')
4885ok: [pg-preprod-1] => (item={u'owner': u'backend_preprod', u'name': u'backend_preprod'}) => {
4886 "changed": false,
4887 "db": "backend_preprod",
4888 "invocation": {
4889 "module_args": {
4890 "db": "backend_preprod",
4891 "encoding": "UTF-8",
4892 "lc_collate": "en_US.UTF-8",
4893 "lc_ctype": "en_US.UTF-8",
4894 "login_host": "",
4895 "login_password": "",
4896 "login_unix_socket": "",
4897 "login_user": "postgres",
4898 "maintenance_db": "postgres",
4899 "name": "backend_preprod",
4900 "owner": "backend_preprod",
4901 "port": 5433,
4902 "ssl_mode": "prefer",
4903 "ssl_rootcert": null,
4904 "state": "present",
4905 "target": "",
4906 "target_opts": "",
4907 "template": "template0"
4908 }
4909 },
4910 "item": {
4911 "name": "backend_preprod",
4912 "owner": "backend_preprod"
4913 }
4914}
4915<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4916<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
4917<192.168.80.32> (0, '/root\n', '')
4918<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4919<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /var/tmp/ansible-tmp-1531741060.84-113746624287107 `" && echo ansible-tmp-1531741060.84-113746624287107="` echo /var/tmp/ansible-tmp-1531741060.84-113746624287107 `" ) && sleep 0'"'"''
4920<192.168.80.32> (0, 'ansible-tmp-1531741060.84-113746624287107=/var/tmp/ansible-tmp-1531741060.84-113746624287107\n', '')
4921Using module file /usr/lib/python2.7/dist-packages/ansible/modules/database/postgresql/postgresql_db.py
4922<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpnHNz0k TO /var/tmp/ansible-tmp-1531741060.84-113746624287107/postgresql_db.py
4923<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
4924<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpnHNz0k /var/tmp/ansible-tmp-1531741060.84-113746624287107/postgresql_db.py\n', '')
4925<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4926<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'setfacl -m u:postgres:r-x /var/tmp/ansible-tmp-1531741060.84-113746624287107/ /var/tmp/ansible-tmp-1531741060.84-113746624287107/postgresql_db.py && sleep 0'"'"''
4927<192.168.80.32> (0, '', '')
4928<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4929<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'sudo -H -S -n -u postgres /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-xjeaxggubcswbvabcqqlujheqlkwhjaq; python3 /var/tmp/ansible-tmp-1531741060.84-113746624287107/postgresql_db.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
4930Escalation succeeded
4931<192.168.80.32> (0, '\r\n{"changed": false, "invocation": {"module_args": {"owner": "fakeaccouting_preprod", "lc_collate": "en_US.UTF-8", "login_unix_socket": "", "maintenance_db": "postgres", "target_opts": "", "target": "", "login_host": "", "login_user": "postgres", "db": "fakeaccouting_preprod", "name": "fakeaccouting_preprod", "ssl_rootcert": null, "ssl_mode": "prefer", "lc_ctype": "en_US.UTF-8", "state": "present", "encoding": "UTF-8", "login_password": "", "template": "template0", "port": 5433}}, "db": "fakeaccouting_preprod"}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
4932<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
4933<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /var/tmp/ansible-tmp-1531741060.84-113746624287107/ > /dev/null 2>&1 && sleep 0'"'"''
4934<192.168.80.32> (0, '', '')
4935ok: [pg-preprod-1] => (item={u'owner': u'fakeaccouting_preprod', u'name': u'fakeaccouting_preprod'}) => {
4936 "changed": false,
4937 "db": "fakeaccouting_preprod",
4938 "invocation": {
4939 "module_args": {
4940 "db": "fakeaccouting_preprod",
4941 "encoding": "UTF-8",
4942 "lc_collate": "en_US.UTF-8",
4943 "lc_ctype": "en_US.UTF-8",
4944 "login_host": "",
4945 "login_password": "",
4946 "login_unix_socket": "",
4947 "login_user": "postgres",
4948 "maintenance_db": "postgres",
4949 "name": "fakeaccouting_preprod",
4950 "owner": "fakeaccouting_preprod",
4951 "port": 5433,
4952 "ssl_mode": "prefer",
4953 "ssl_rootcert": null,
4954 "state": "present",
4955 "target": "",
4956 "target_opts": "",
4957 "template": "template0"
4958 }
4959 },
4960 "item": {
4961 "name": "fakeaccouting_preprod",
4962 "owner": "fakeaccouting_preprod"
4963 }
4964}
4965
4966TASK [postgresql : PostgreSQL | Add extensions to the databases] *****************************************************************************************************************************************************************************
4967task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/databases.yml:24
4968
4969TASK [postgresql : PostgreSQL | Add hstore to the databases with the requirement] ************************************************************************************************************************************************************
4970task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/databases.yml:37
4971skipping: [pg-preprod-1] => (item={u'owner': u'backend_preprod', u'name': u'backend_preprod'}) => {
4972 "changed": false,
4973 "item": {
4974 "name": "backend_preprod",
4975 "owner": "backend_preprod"
4976 },
4977 "skip_reason": "Conditional result was False"
4978}
4979skipping: [pg-preprod-1] => (item={u'owner': u'fakeaccouting_preprod', u'name': u'fakeaccouting_preprod'}) => {
4980 "changed": false,
4981 "item": {
4982 "name": "fakeaccouting_preprod",
4983 "owner": "fakeaccouting_preprod"
4984 },
4985 "skip_reason": "Conditional result was False"
4986}
4987
4988TASK [postgresql : PostgreSQL | Add uuid-ossp to the database with the requirement] **********************************************************************************************************************************************************
4989task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/databases.yml:47
4990skipping: [pg-preprod-1] => (item={u'owner': u'backend_preprod', u'name': u'backend_preprod'}) => {
4991 "changed": false,
4992 "item": {
4993 "name": "backend_preprod",
4994 "owner": "backend_preprod"
4995 },
4996 "skip_reason": "Conditional result was False"
4997}
4998skipping: [pg-preprod-1] => (item={u'owner': u'fakeaccouting_preprod', u'name': u'fakeaccouting_preprod'}) => {
4999 "changed": false,
5000 "item": {
5001 "name": "fakeaccouting_preprod",
5002 "owner": "fakeaccouting_preprod"
5003 },
5004 "skip_reason": "Conditional result was False"
5005}
5006
5007TASK [postgresql : PostgreSQL | Add postgis to the databases with the requirement] ***********************************************************************************************************************************************************
5008task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/databases.yml:57
5009skipping: [pg-preprod-1] => (item={u'owner': u'backend_preprod', u'name': u'backend_preprod'}) => {
5010 "changed": false,
5011 "item": {
5012 "name": "backend_preprod",
5013 "owner": "backend_preprod"
5014 },
5015 "skip_reason": "Conditional result was False"
5016}
5017skipping: [pg-preprod-1] => (item={u'owner': u'fakeaccouting_preprod', u'name': u'fakeaccouting_preprod'}) => {
5018 "changed": false,
5019 "item": {
5020 "name": "fakeaccouting_preprod",
5021 "owner": "fakeaccouting_preprod"
5022 },
5023 "skip_reason": "Conditional result was False"
5024}
5025
5026TASK [postgresql : PostgreSQL | add cube to the database with the requirement] ***************************************************************************************************************************************************************
5027task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/databases.yml:64
5028skipping: [pg-preprod-1] => (item={u'owner': u'backend_preprod', u'name': u'backend_preprod'}) => {
5029 "changed": false,
5030 "item": {
5031 "name": "backend_preprod",
5032 "owner": "backend_preprod"
5033 },
5034 "skip_reason": "Conditional result was False"
5035}
5036skipping: [pg-preprod-1] => (item={u'owner': u'fakeaccouting_preprod', u'name': u'fakeaccouting_preprod'}) => {
5037 "changed": false,
5038 "item": {
5039 "name": "fakeaccouting_preprod",
5040 "owner": "fakeaccouting_preprod"
5041 },
5042 "skip_reason": "Conditional result was False"
5043}
5044
5045TASK [postgresql : PostgreSQL | Add plpgsql to the database with the requirement] ************************************************************************************************************************************************************
5046task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/databases.yml:71
5047skipping: [pg-preprod-1] => (item={u'owner': u'backend_preprod', u'name': u'backend_preprod'}) => {
5048 "changed": false,
5049 "item": {
5050 "name": "backend_preprod",
5051 "owner": "backend_preprod"
5052 },
5053 "skip_reason": "Conditional result was False"
5054}
5055skipping: [pg-preprod-1] => (item={u'owner': u'fakeaccouting_preprod', u'name': u'fakeaccouting_preprod'}) => {
5056 "changed": false,
5057 "item": {
5058 "name": "fakeaccouting_preprod",
5059 "owner": "fakeaccouting_preprod"
5060 },
5061 "skip_reason": "Conditional result was False"
5062}
5063
5064TASK [postgresql : PostgreSQL | add earthdistance to the database with the requirement] ******************************************************************************************************************************************************
5065task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/databases.yml:78
5066skipping: [pg-preprod-1] => (item={u'owner': u'backend_preprod', u'name': u'backend_preprod'}) => {
5067 "changed": false,
5068 "item": {
5069 "name": "backend_preprod",
5070 "owner": "backend_preprod"
5071 },
5072 "skip_reason": "Conditional result was False"
5073}
5074skipping: [pg-preprod-1] => (item={u'owner': u'fakeaccouting_preprod', u'name': u'fakeaccouting_preprod'}) => {
5075 "changed": false,
5076 "item": {
5077 "name": "fakeaccouting_preprod",
5078 "owner": "fakeaccouting_preprod"
5079 },
5080 "skip_reason": "Conditional result was False"
5081}
5082
5083TASK [postgresql : PostgreSQL | Add citext to the database with the requirement] *************************************************************************************************************************************************************
5084task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/databases.yml:85
5085skipping: [pg-preprod-1] => (item={u'owner': u'backend_preprod', u'name': u'backend_preprod'}) => {
5086 "changed": false,
5087 "item": {
5088 "name": "backend_preprod",
5089 "owner": "backend_preprod"
5090 },
5091 "skip_reason": "Conditional result was False"
5092}
5093skipping: [pg-preprod-1] => (item={u'owner': u'fakeaccouting_preprod', u'name': u'fakeaccouting_preprod'}) => {
5094 "changed": false,
5095 "item": {
5096 "name": "fakeaccouting_preprod",
5097 "owner": "fakeaccouting_preprod"
5098 },
5099 "skip_reason": "Conditional result was False"
5100}
5101
5102TASK [postgresql : PostgreSQL | Add Schema to databases] *************************************************************************************************************************************************************************************
5103task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/schemas.yml:3
5104
5105TASK [postgresql : PostgreSQL | Update the user privileges] **********************************************************************************************************************************************************************************
5106task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/users_privileges.yml:3
5107<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5108<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
5109<192.168.80.32> (0, '/root\n', '')
5110<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5111<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /var/tmp/ansible-tmp-1531741063.19-68822328995945 `" && echo ansible-tmp-1531741063.19-68822328995945="` echo /var/tmp/ansible-tmp-1531741063.19-68822328995945 `" ) && sleep 0'"'"''
5112<192.168.80.32> (0, 'ansible-tmp-1531741063.19-68822328995945=/var/tmp/ansible-tmp-1531741063.19-68822328995945\n', '')
5113Using module file /usr/lib/python2.7/dist-packages/ansible/modules/database/postgresql/postgresql_user.py
5114<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpY_XCbg TO /var/tmp/ansible-tmp-1531741063.19-68822328995945/postgresql_user.py
5115<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
5116<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpY_XCbg /var/tmp/ansible-tmp-1531741063.19-68822328995945/postgresql_user.py\n', '')
5117<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5118<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'setfacl -m u:postgres:r-x /var/tmp/ansible-tmp-1531741063.19-68822328995945/ /var/tmp/ansible-tmp-1531741063.19-68822328995945/postgresql_user.py && sleep 0'"'"''
5119<192.168.80.32> (0, '', '')
5120<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5121<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'sudo -H -S -n -u postgres /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-fsfpwjkybhcgiolbttuoxlrxtclexlwl; python3 /var/tmp/ansible-tmp-1531741063.19-68822328995945/postgresql_user.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
5122Escalation succeeded
5123<192.168.80.32> (0, '\r\n{"changed": false, "invocation": {"module_args": {"conn_limit": null, "name": "backend_preprod", "role_attr_flags": "CREATEDB", "encrypted": true, "port": "5433", "login_unix_socket": "", "fail_on_user": true, "login_password": "", "ssl_mode": "prefer", "ssl_rootcert": null, "state": "present", "priv": "ALL", "login_user": "postgres", "expires": null, "password": null, "login_host": "", "db": "backend_preprod", "user": "backend_preprod", "no_password_changes": false}}, "user": "backend_preprod"}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
5124<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5125<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /var/tmp/ansible-tmp-1531741063.19-68822328995945/ > /dev/null 2>&1 && sleep 0'"'"''
5126<192.168.80.32> (0, '', '')
5127ok: [pg-preprod-1] => (item={u'priv': u'ALL', u'db': u'backend_preprod', u'role_attr_flags': u'CREATEDB', u'name': u'backend_preprod'}) => {
5128 "changed": false,
5129 "invocation": {
5130 "module_args": {
5131 "conn_limit": null,
5132 "db": "backend_preprod",
5133 "encrypted": true,
5134 "expires": null,
5135 "fail_on_user": true,
5136 "login_host": "",
5137 "login_password": "",
5138 "login_unix_socket": "",
5139 "login_user": "postgres",
5140 "name": "backend_preprod",
5141 "no_password_changes": false,
5142 "password": null,
5143 "port": "5433",
5144 "priv": "ALL",
5145 "role_attr_flags": "CREATEDB",
5146 "ssl_mode": "prefer",
5147 "ssl_rootcert": null,
5148 "state": "present",
5149 "user": "backend_preprod"
5150 }
5151 },
5152 "item": {
5153 "db": "backend_preprod",
5154 "name": "backend_preprod",
5155 "priv": "ALL",
5156 "role_attr_flags": "CREATEDB"
5157 },
5158 "user": "backend_preprod"
5159}
5160<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5161<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
5162<192.168.80.32> (0, '/root\n', '')
5163<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5164<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /var/tmp/ansible-tmp-1531741064.87-249731267891419 `" && echo ansible-tmp-1531741064.87-249731267891419="` echo /var/tmp/ansible-tmp-1531741064.87-249731267891419 `" ) && sleep 0'"'"''
5165<192.168.80.32> (0, 'ansible-tmp-1531741064.87-249731267891419=/var/tmp/ansible-tmp-1531741064.87-249731267891419\n', '')
5166Using module file /usr/lib/python2.7/dist-packages/ansible/modules/database/postgresql/postgresql_user.py
5167<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpT2TMNV TO /var/tmp/ansible-tmp-1531741064.87-249731267891419/postgresql_user.py
5168<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
5169<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpT2TMNV /var/tmp/ansible-tmp-1531741064.87-249731267891419/postgresql_user.py\n', '')
5170<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5171<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'setfacl -m u:postgres:r-x /var/tmp/ansible-tmp-1531741064.87-249731267891419/ /var/tmp/ansible-tmp-1531741064.87-249731267891419/postgresql_user.py && sleep 0'"'"''
5172<192.168.80.32> (0, '', '')
5173<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5174<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'sudo -H -S -n -u postgres /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-elgidqpuohsaeycqymamdeeqhjlhzofz; python3 /var/tmp/ansible-tmp-1531741064.87-249731267891419/postgresql_user.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
5175Escalation succeeded
5176<192.168.80.32> (0, '\r\n{"changed": false, "invocation": {"module_args": {"password": null, "ssl_rootcert": null, "db": "fakeaccouting_preprod", "priv": "ALL", "user": "fakeaccouting_preprod", "login_password": "", "state": "present", "expires": null, "login_user": "postgres", "port": "5433", "ssl_mode": "prefer", "no_password_changes": false, "fail_on_user": true, "conn_limit": null, "name": "fakeaccouting_preprod", "login_host": "", "login_unix_socket": "", "encrypted": true, "role_attr_flags": "CREATEDB"}}, "user": "fakeaccouting_preprod"}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
5177<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5178<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /var/tmp/ansible-tmp-1531741064.87-249731267891419/ > /dev/null 2>&1 && sleep 0'"'"''
5179<192.168.80.32> (0, '', '')
5180ok: [pg-preprod-1] => (item={u'priv': u'ALL', u'db': u'fakeaccouting_preprod', u'role_attr_flags': u'CREATEDB', u'name': u'fakeaccouting_preprod'}) => {
5181 "changed": false,
5182 "invocation": {
5183 "module_args": {
5184 "conn_limit": null,
5185 "db": "fakeaccouting_preprod",
5186 "encrypted": true,
5187 "expires": null,
5188 "fail_on_user": true,
5189 "login_host": "",
5190 "login_password": "",
5191 "login_unix_socket": "",
5192 "login_user": "postgres",
5193 "name": "fakeaccouting_preprod",
5194 "no_password_changes": false,
5195 "password": null,
5196 "port": "5433",
5197 "priv": "ALL",
5198 "role_attr_flags": "CREATEDB",
5199 "ssl_mode": "prefer",
5200 "ssl_rootcert": null,
5201 "state": "present",
5202 "user": "fakeaccouting_preprod"
5203 }
5204 },
5205 "item": {
5206 "db": "fakeaccouting_preprod",
5207 "name": "fakeaccouting_preprod",
5208 "priv": "ALL",
5209 "role_attr_flags": "CREATEDB"
5210 },
5211 "user": "fakeaccouting_preprod"
5212}
5213
5214TASK [postgresql : PostgreSQL | (Monit) Copy the postgresql monit service file] **************************************************************************************************************************************************************
5215task path: /home/bazz/git/devops/ansible/postgres/roles/postgresql/tasks/monit.yml:3
5216skipping: [pg-preprod-1] => {
5217 "changed": false,
5218 "skip_reason": "Conditional result was False"
5219}
5220
5221TASK [alexey-medvedchikov.repmgr : install required packages] ********************************************************************************************************************************************************************************
5222task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.repmgr/tasks/install.yml:3
5223<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5224<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
5225<192.168.80.32> (0, '/root\n', '')
5226<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5227<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531741066.18-217323454153866 `" && echo ansible-tmp-1531741066.18-217323454153866="` echo /root/.ansible/tmp/ansible-tmp-1531741066.18-217323454153866 `" ) && sleep 0'"'"''
5228<192.168.80.32> (0, 'ansible-tmp-1531741066.18-217323454153866=/root/.ansible/tmp/ansible-tmp-1531741066.18-217323454153866\n', '')
5229Using module file /usr/lib/python2.7/dist-packages/ansible/modules/packaging/os/apt.py
5230<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpDv3mEF TO /root/.ansible/tmp/ansible-tmp-1531741066.18-217323454153866/apt.py
5231<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
5232<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpDv3mEF /root/.ansible/tmp/ansible-tmp-1531741066.18-217323454153866/apt.py\n', '')
5233<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5234<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741066.18-217323454153866/ /root/.ansible/tmp/ansible-tmp-1531741066.18-217323454153866/apt.py && sleep 0'"'"''
5235<192.168.80.32> (0, '', '')
5236<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5237<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741066.18-217323454153866/apt.py && sleep 0'"'"''
5238<192.168.80.32> (0, '\r\n{"changed": false, "cache_update_time": 1531733776, "cache_updated": false, "invocation": {"module_args": {"package": ["repmgr", "python-psycopg2", "rsync", "ssh"], "update_cache": null, "only_upgrade": false, "autoclean": false, "default_release": null, "deb": null, "state": "present", "cache_valid_time": 0, "purge": false, "force": false, "allow_unauthenticated": false, "name": ["repmgr", "python-psycopg2", "rsync", "ssh"], "upgrade": null, "install_recommends": null, "force_apt_get": false, "dpkg_options": "force-confdef,force-confold", "autoremove": false}}}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
5239<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5240<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531741066.18-217323454153866/ > /dev/null 2>&1 && sleep 0'"'"''
5241<192.168.80.32> (0, '', '')
5242ok: [pg-preprod-1] => (item=[u'repmgr', u'python-psycopg2', u'rsync', u'ssh']) => {
5243 "cache_update_time": 1531733776,
5244 "cache_updated": false,
5245 "changed": false,
5246 "invocation": {
5247 "module_args": {
5248 "allow_unauthenticated": false,
5249 "autoclean": false,
5250 "autoremove": false,
5251 "cache_valid_time": 0,
5252 "deb": null,
5253 "default_release": null,
5254 "dpkg_options": "force-confdef,force-confold",
5255 "force": false,
5256 "force_apt_get": false,
5257 "install_recommends": null,
5258 "name": [
5259 "repmgr",
5260 "python-psycopg2",
5261 "rsync",
5262 "ssh"
5263 ],
5264 "only_upgrade": false,
5265 "package": [
5266 "repmgr",
5267 "python-psycopg2",
5268 "rsync",
5269 "ssh"
5270 ],
5271 "purge": false,
5272 "state": "present",
5273 "update_cache": null,
5274 "upgrade": null
5275 }
5276 },
5277 "item": [
5278 "repmgr",
5279 "python-psycopg2",
5280 "rsync",
5281 "ssh"
5282 ]
5283}
5284
5285TASK [alexey-medvedchikov.repmgr : short command wrapper] ************************************************************************************************************************************************************************************
5286task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.repmgr/tasks/install.yml:9
5287<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5288<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
5289<192.168.80.32> (0, '/root\n', '')
5290<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5291<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531741068.08-12925792742110 `" && echo ansible-tmp-1531741068.08-12925792742110="` echo /root/.ansible/tmp/ansible-tmp-1531741068.08-12925792742110 `" ) && sleep 0'"'"''
5292<192.168.80.32> (0, 'ansible-tmp-1531741068.08-12925792742110=/root/.ansible/tmp/ansible-tmp-1531741068.08-12925792742110\n', '')
5293Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
5294<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpqhCrEx TO /root/.ansible/tmp/ansible-tmp-1531741068.08-12925792742110/stat.py
5295<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
5296<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpqhCrEx /root/.ansible/tmp/ansible-tmp-1531741068.08-12925792742110/stat.py\n', '')
5297<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5298<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741068.08-12925792742110/ /root/.ansible/tmp/ansible-tmp-1531741068.08-12925792742110/stat.py && sleep 0'"'"''
5299<192.168.80.32> (0, '', '')
5300<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5301<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741068.08-12925792742110/stat.py && sleep 0'"'"''
5302<192.168.80.32> (0, '\r\n{"invocation": {"module_args": {"path": "/usr/local/bin/repmgrctl", "follow": false, "get_checksum": true, "get_attributes": true, "get_mime": true, "checksum_algorithm": "sha1", "get_md5": null, "checksum_algo": "sha1"}}, "stat": {"device_type": 0, "gr_name": "root", "xoth": true, "nlink": 1, "isgid": false, "inode": 142447, "executable": true, "dev": 2049, "issock": false, "size": 77, "ischr": false, "rgrp": true, "exists": true, "woth": false, "roth": true, "wgrp": false, "isfifo": false, "isdir": false, "rusr": true, "charset": "us-ascii", "isreg": true, "isblk": false, "attr_flags": "e", "uid": 0, "xusr": true, "mimetype": "text/x-shellscript", "pw_name": "root", "readable": true, "block_size": 4096, "xgrp": true, "path": "/usr/local/bin/repmgrctl", "version": "18446744072598201974", "writeable": true, "ctime": 1531411796.3191833, "gid": 0, "blocks": 8, "checksum": "fe914a4a87e0cd47f2e1a406149ac2f220672746", "mtime": 1531411795.5431926, "mode": "0755", "atime": 1531728341.4039588, "islnk": false, "wusr": true, "isuid": false, "attributes": ["extents"]}, "changed": false}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
5303Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/file.py
5304<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpx1_cfO TO /root/.ansible/tmp/ansible-tmp-1531741068.08-12925792742110/file.py
5305<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
5306<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpx1_cfO /root/.ansible/tmp/ansible-tmp-1531741068.08-12925792742110/file.py\n', '')
5307<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5308<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741068.08-12925792742110/ /root/.ansible/tmp/ansible-tmp-1531741068.08-12925792742110/file.py && sleep 0'"'"''
5309<192.168.80.32> (0, '', '')
5310<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5311<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741068.08-12925792742110/file.py && sleep 0'"'"''
5312<192.168.80.32> (0, '\r\n{"uid": 0, "invocation": {"module_args": {"content": null, "state": "file", "setype": null, "directory_mode": null, "unsafe_writes": null, "src": null, "mode": 493, "backup": null, "_original_basename": "tmpdYwfAf", "_diff_peek": null, "delimiter": null, "group": "root", "force": false, "follow": true, "regexp": null, "dest": "/usr/local/bin/repmgrctl", "seuser": null, "remote_src": null, "selevel": null, "path": "/usr/local/bin/repmgrctl", "recurse": false, "attributes": null, "owner": "root", "serole": null}}, "gid": 0, "owner": "root", "size": 77, "changed": false, "diff": {"after": {"path": "/usr/local/bin/repmgrctl"}, "before": {"path": "/usr/local/bin/repmgrctl"}}, "path": "/usr/local/bin/repmgrctl", "state": "file", "mode": "0755", "group": "root"}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
5313<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5314<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531741068.08-12925792742110/ > /dev/null 2>&1 && sleep 0'"'"''
5315<192.168.80.32> (0, '', '')
5316ok: [pg-preprod-1] => {
5317 "changed": false,
5318 "checksum": "fe914a4a87e0cd47f2e1a406149ac2f220672746",
5319 "dest": "/usr/local/bin/repmgrctl",
5320 "diff": {
5321 "after": {
5322 "path": "/usr/local/bin/repmgrctl"
5323 },
5324 "before": {
5325 "path": "/usr/local/bin/repmgrctl"
5326 }
5327 },
5328 "gid": 0,
5329 "group": "root",
5330 "invocation": {
5331 "module_args": {
5332 "_diff_peek": null,
5333 "_original_basename": "tmpdYwfAf",
5334 "attributes": null,
5335 "backup": null,
5336 "content": null,
5337 "delimiter": null,
5338 "dest": "/usr/local/bin/repmgrctl",
5339 "directory_mode": null,
5340 "follow": true,
5341 "force": false,
5342 "group": "root",
5343 "mode": 493,
5344 "owner": "root",
5345 "path": "/usr/local/bin/repmgrctl",
5346 "recurse": false,
5347 "regexp": null,
5348 "remote_src": null,
5349 "selevel": null,
5350 "serole": null,
5351 "setype": null,
5352 "seuser": null,
5353 "src": null,
5354 "state": "file",
5355 "unsafe_writes": null
5356 }
5357 },
5358 "mode": "0755",
5359 "owner": "root",
5360 "path": "/usr/local/bin/repmgrctl",
5361 "size": 77,
5362 "state": "file",
5363 "uid": 0
5364}
5365
5366TASK [alexey-medvedchikov.repmgr : add password to .pgpass file] *****************************************************************************************************************************************************************************
5367task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.repmgr/tasks/configure.yml:3
5368<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5369<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
5370<192.168.80.32> (0, '/root\n', '')
5371<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5372<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531741070.13-29817615950905 `" && echo ansible-tmp-1531741070.13-29817615950905="` echo /root/.ansible/tmp/ansible-tmp-1531741070.13-29817615950905 `" ) && sleep 0'"'"''
5373<192.168.80.32> (0, 'ansible-tmp-1531741070.13-29817615950905=/root/.ansible/tmp/ansible-tmp-1531741070.13-29817615950905\n', '')
5374Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/lineinfile.py
5375<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpL66IXq TO /root/.ansible/tmp/ansible-tmp-1531741070.13-29817615950905/lineinfile.py
5376<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
5377<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpL66IXq /root/.ansible/tmp/ansible-tmp-1531741070.13-29817615950905/lineinfile.py\n', '')
5378<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5379<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741070.13-29817615950905/ /root/.ansible/tmp/ansible-tmp-1531741070.13-29817615950905/lineinfile.py && sleep 0'"'"''
5380<192.168.80.32> (0, '', '')
5381<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5382<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741070.13-29817615950905/lineinfile.py && sleep 0'"'"''
5383<192.168.80.32> (0, '\r\n{"backup": "", "changed": false, "invocation": {"module_args": {"validate": null, "remote_src": null, "serole": null, "seuser": null, "follow": false, "unsafe_writes": null, "firstmatch": false, "regexp": null, "selevel": null, "attributes": null, "path": "/var/lib/postgresql/.pgpass", "state": "present", "content": null, "force": null, "mode": 384, "owner": "postgres", "backrefs": false, "insertafter": null, "directory_mode": null, "delimiter": null, "setype": null, "src": null, "dest": "~postgres/.pgpass", "backup": false, "create": true, "insertbefore": null, "group": "postgres", "line": "*:*:*:repmgr:Mow5DratAigg"}}, "msg": "", "diff": [{"after_header": "/var/lib/postgresql/.pgpass (content)", "before_header": "/var/lib/postgresql/.pgpass (content)", "after": "", "before": ""}, {"after_header": "/var/lib/postgresql/.pgpass (file attributes)", "before_header": "/var/lib/postgresql/.pgpass (file attributes)"}]}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
5384<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5385<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531741070.13-29817615950905/ > /dev/null 2>&1 && sleep 0'"'"''
5386<192.168.80.32> (0, '', '')
5387ok: [pg-preprod-1] => (item=~postgres/.pgpass) => {
5388 "backup": "",
5389 "changed": false,
5390 "diff": [
5391 {
5392 "after": "",
5393 "after_header": "/var/lib/postgresql/.pgpass (content)",
5394 "before": "",
5395 "before_header": "/var/lib/postgresql/.pgpass (content)"
5396 },
5397 {
5398 "after_header": "/var/lib/postgresql/.pgpass (file attributes)",
5399 "before_header": "/var/lib/postgresql/.pgpass (file attributes)"
5400 }
5401 ],
5402 "invocation": {
5403 "module_args": {
5404 "attributes": null,
5405 "backrefs": false,
5406 "backup": false,
5407 "content": null,
5408 "create": true,
5409 "delimiter": null,
5410 "dest": "~postgres/.pgpass",
5411 "directory_mode": null,
5412 "firstmatch": false,
5413 "follow": false,
5414 "force": null,
5415 "group": "postgres",
5416 "insertafter": null,
5417 "insertbefore": null,
5418 "line": "*:*:*:repmgr:Mow5DratAigg",
5419 "mode": 384,
5420 "owner": "postgres",
5421 "path": "/var/lib/postgresql/.pgpass",
5422 "regexp": null,
5423 "remote_src": null,
5424 "selevel": null,
5425 "serole": null,
5426 "setype": null,
5427 "seuser": null,
5428 "src": null,
5429 "state": "present",
5430 "unsafe_writes": null,
5431 "validate": null
5432 }
5433 },
5434 "item": "~postgres/.pgpass",
5435 "msg": ""
5436}
5437<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5438<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
5439<192.168.80.32> (0, '/root\n', '')
5440<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5441<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531741071.15-152191558916412 `" && echo ansible-tmp-1531741071.15-152191558916412="` echo /root/.ansible/tmp/ansible-tmp-1531741071.15-152191558916412 `" ) && sleep 0'"'"''
5442<192.168.80.32> (0, 'ansible-tmp-1531741071.15-152191558916412=/root/.ansible/tmp/ansible-tmp-1531741071.15-152191558916412\n', '')
5443Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/lineinfile.py
5444<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmprtlL9C TO /root/.ansible/tmp/ansible-tmp-1531741071.15-152191558916412/lineinfile.py
5445<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
5446<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmprtlL9C /root/.ansible/tmp/ansible-tmp-1531741071.15-152191558916412/lineinfile.py\n', '')
5447<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5448<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741071.15-152191558916412/ /root/.ansible/tmp/ansible-tmp-1531741071.15-152191558916412/lineinfile.py && sleep 0'"'"''
5449<192.168.80.32> (0, '', '')
5450<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5451<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741071.15-152191558916412/lineinfile.py && sleep 0'"'"''
5452<192.168.80.32> (0, '\r\n{"invocation": {"module_args": {"owner": "postgres", "create": true, "delimiter": null, "state": "present", "selevel": null, "backrefs": false, "group": "postgres", "seuser": null, "insertafter": null, "backup": false, "attributes": null, "serole": null, "line": "*:*:*:repmgr:Mow5DratAigg", "remote_src": null, "setype": null, "regexp": null, "path": "/root/.pgpass", "insertbefore": null, "src": null, "unsafe_writes": null, "force": null, "directory_mode": null, "content": null, "firstmatch": false, "dest": "~root/.pgpass", "mode": 384, "follow": false, "validate": null}}, "msg": "", "diff": [{"after": "", "before": "", "after_header": "/root/.pgpass (content)", "before_header": "/root/.pgpass (content)"}, {"before_header": "/root/.pgpass (file attributes)", "after_header": "/root/.pgpass (file attributes)"}], "backup": "", "changed": false}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
5453<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5454<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531741071.15-152191558916412/ > /dev/null 2>&1 && sleep 0'"'"''
5455<192.168.80.32> (0, '', '')
5456ok: [pg-preprod-1] => (item=~root/.pgpass) => {
5457 "backup": "",
5458 "changed": false,
5459 "diff": [
5460 {
5461 "after": "",
5462 "after_header": "/root/.pgpass (content)",
5463 "before": "",
5464 "before_header": "/root/.pgpass (content)"
5465 },
5466 {
5467 "after_header": "/root/.pgpass (file attributes)",
5468 "before_header": "/root/.pgpass (file attributes)"
5469 }
5470 ],
5471 "invocation": {
5472 "module_args": {
5473 "attributes": null,
5474 "backrefs": false,
5475 "backup": false,
5476 "content": null,
5477 "create": true,
5478 "delimiter": null,
5479 "dest": "~root/.pgpass",
5480 "directory_mode": null,
5481 "firstmatch": false,
5482 "follow": false,
5483 "force": null,
5484 "group": "postgres",
5485 "insertafter": null,
5486 "insertbefore": null,
5487 "line": "*:*:*:repmgr:Mow5DratAigg",
5488 "mode": 384,
5489 "owner": "postgres",
5490 "path": "/root/.pgpass",
5491 "regexp": null,
5492 "remote_src": null,
5493 "selevel": null,
5494 "serole": null,
5495 "setype": null,
5496 "seuser": null,
5497 "src": null,
5498 "state": "present",
5499 "unsafe_writes": null,
5500 "validate": null
5501 }
5502 },
5503 "item": "~root/.pgpass",
5504 "msg": ""
5505}
5506
5507TASK [alexey-medvedchikov.repmgr : repmgr configuration directory] ***************************************************************************************************************************************************************************
5508task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.repmgr/tasks/configure.yml:15
5509<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5510<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
5511<192.168.80.32> (0, '/root\n', '')
5512<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5513<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531741072.27-115398060427143 `" && echo ansible-tmp-1531741072.27-115398060427143="` echo /root/.ansible/tmp/ansible-tmp-1531741072.27-115398060427143 `" ) && sleep 0'"'"''
5514<192.168.80.32> (0, 'ansible-tmp-1531741072.27-115398060427143=/root/.ansible/tmp/ansible-tmp-1531741072.27-115398060427143\n', '')
5515Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/file.py
5516<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmphiev4E TO /root/.ansible/tmp/ansible-tmp-1531741072.27-115398060427143/file.py
5517<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
5518<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmphiev4E /root/.ansible/tmp/ansible-tmp-1531741072.27-115398060427143/file.py\n', '')
5519<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5520<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741072.27-115398060427143/ /root/.ansible/tmp/ansible-tmp-1531741072.27-115398060427143/file.py && sleep 0'"'"''
5521<192.168.80.32> (0, '', '')
5522<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5523<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741072.27-115398060427143/file.py && sleep 0'"'"''
5524<192.168.80.32> (0, '\r\n{"diff": {"before": {"path": "/etc"}, "after": {"path": "/etc"}}, "changed": false, "owner": "root", "gid": 0, "uid": 0, "group": "root", "path": "/etc", "state": "directory", "mode": "0755", "invocation": {"module_args": {"_diff_peek": null, "path": "/etc", "serole": null, "setype": null, "backup": null, "delimiter": null, "selevel": null, "group": "root", "unsafe_writes": null, "content": null, "src": null, "recurse": false, "regexp": null, "_original_basename": null, "state": "directory", "attributes": null, "remote_src": null, "follow": true, "owner": "root", "seuser": null, "force": false, "mode": "0755", "directory_mode": null}}, "size": 4096}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
5525<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5526<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531741072.27-115398060427143/ > /dev/null 2>&1 && sleep 0'"'"''
5527<192.168.80.32> (0, '', '')
5528ok: [pg-preprod-1] => {
5529 "changed": false,
5530 "diff": {
5531 "after": {
5532 "path": "/etc"
5533 },
5534 "before": {
5535 "path": "/etc"
5536 }
5537 },
5538 "gid": 0,
5539 "group": "root",
5540 "invocation": {
5541 "module_args": {
5542 "_diff_peek": null,
5543 "_original_basename": null,
5544 "attributes": null,
5545 "backup": null,
5546 "content": null,
5547 "delimiter": null,
5548 "directory_mode": null,
5549 "follow": true,
5550 "force": false,
5551 "group": "root",
5552 "mode": "0755",
5553 "owner": "root",
5554 "path": "/etc",
5555 "recurse": false,
5556 "regexp": null,
5557 "remote_src": null,
5558 "selevel": null,
5559 "serole": null,
5560 "setype": null,
5561 "seuser": null,
5562 "src": null,
5563 "state": "directory",
5564 "unsafe_writes": null
5565 }
5566 },
5567 "mode": "0755",
5568 "owner": "root",
5569 "path": "/etc",
5570 "size": 4096,
5571 "state": "directory",
5572 "uid": 0
5573}
5574
5575TASK [alexey-medvedchikov.repmgr : repmgr main configuration file] ***************************************************************************************************************************************************************************
5576task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.repmgr/tasks/configure.yml:23
5577<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5578<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
5579<192.168.80.32> (0, '/root\n', '')
5580<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5581<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531741073.41-218612711688159 `" && echo ansible-tmp-1531741073.41-218612711688159="` echo /root/.ansible/tmp/ansible-tmp-1531741073.41-218612711688159 `" ) && sleep 0'"'"''
5582<192.168.80.32> (0, 'ansible-tmp-1531741073.41-218612711688159=/root/.ansible/tmp/ansible-tmp-1531741073.41-218612711688159\n', '')
5583Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
5584<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpSKl3WR TO /root/.ansible/tmp/ansible-tmp-1531741073.41-218612711688159/stat.py
5585<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
5586<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpSKl3WR /root/.ansible/tmp/ansible-tmp-1531741073.41-218612711688159/stat.py\n', '')
5587<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5588<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741073.41-218612711688159/ /root/.ansible/tmp/ansible-tmp-1531741073.41-218612711688159/stat.py && sleep 0'"'"''
5589<192.168.80.32> (0, '', '')
5590<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5591<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741073.41-218612711688159/stat.py && sleep 0'"'"''
5592<192.168.80.32> (0, '\r\n{"invocation": {"module_args": {"get_attributes": true, "checksum_algo": "sha1", "get_checksum": true, "get_mime": true, "checksum_algorithm": "sha1", "path": "/etc/repmgr.conf", "follow": false, "get_md5": null}}, "stat": {"path": "/etc/repmgr.conf", "gid": 0, "exists": true, "rusr": true, "mode": "0644", "gr_name": "root", "device_type": 0, "readable": true, "atime": 1531731867.0783257, "isuid": false, "dev": 2049, "issock": false, "inode": 142451, "uid": 0, "islnk": false, "pw_name": "root", "charset": "us-ascii", "attr_flags": "e", "isdir": false, "ischr": false, "mtime": 1531731861.5703928, "wusr": true, "version": "18446744072598285066", "xoth": false, "block_size": 4096, "mimetype": "text/plain", "xusr": false, "isblk": false, "size": 4916, "woth": false, "blocks": 16, "nlink": 1, "ctime": 1531731862.458382, "isfifo": false, "isreg": true, "checksum": "eae7b2f94b1a04936e9efdab114f047efd628090", "executable": false, "rgrp": true, "isgid": false, "wgrp": false, "attributes": ["extents"], "xgrp": false, "roth": true, "writeable": true}, "changed": false}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
5593Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/file.py
5594<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpxVGQeY TO /root/.ansible/tmp/ansible-tmp-1531741073.41-218612711688159/file.py
5595<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
5596<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpxVGQeY /root/.ansible/tmp/ansible-tmp-1531741073.41-218612711688159/file.py\n', '')
5597<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5598<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741073.41-218612711688159/ /root/.ansible/tmp/ansible-tmp-1531741073.41-218612711688159/file.py && sleep 0'"'"''
5599<192.168.80.32> (0, '', '')
5600<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5601<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741073.41-218612711688159/file.py && sleep 0'"'"''
5602<192.168.80.32> (0, '\r\n{"group": "root", "uid": 0, "size": 4916, "mode": "0644", "changed": false, "owner": "root", "path": "/etc/repmgr.conf", "diff": {"after": {"path": "/etc/repmgr.conf"}, "before": {"path": "/etc/repmgr.conf"}}, "gid": 0, "invocation": {"module_args": {"attributes": null, "backup": null, "delimiter": null, "owner": "root", "path": "/etc/repmgr.conf", "selevel": null, "directory_mode": null, "_diff_peek": null, "regexp": null, "src": null, "mode": "0644", "state": "file", "unsafe_writes": null, "remote_src": null, "group": "root", "seuser": null, "force": false, "setype": null, "_original_basename": "repmgr.conf.j2", "recurse": false, "follow": false, "content": null, "serole": null, "dest": "/etc/repmgr.conf"}}, "state": "file"}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
5603<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5604<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531741073.41-218612711688159/ > /dev/null 2>&1 && sleep 0'"'"''
5605<192.168.80.32> (0, '', '')
5606ok: [pg-preprod-1] => {
5607 "changed": false,
5608 "checksum": "eae7b2f94b1a04936e9efdab114f047efd628090",
5609 "dest": "/etc/repmgr.conf",
5610 "diff": {
5611 "after": {
5612 "path": "/etc/repmgr.conf"
5613 },
5614 "before": {
5615 "path": "/etc/repmgr.conf"
5616 }
5617 },
5618 "gid": 0,
5619 "group": "root",
5620 "invocation": {
5621 "module_args": {
5622 "_diff_peek": null,
5623 "_original_basename": "repmgr.conf.j2",
5624 "attributes": null,
5625 "backup": null,
5626 "content": null,
5627 "delimiter": null,
5628 "dest": "/etc/repmgr.conf",
5629 "directory_mode": null,
5630 "follow": false,
5631 "force": false,
5632 "group": "root",
5633 "mode": "0644",
5634 "owner": "root",
5635 "path": "/etc/repmgr.conf",
5636 "recurse": false,
5637 "regexp": null,
5638 "remote_src": null,
5639 "selevel": null,
5640 "serole": null,
5641 "setype": null,
5642 "seuser": null,
5643 "src": null,
5644 "state": "file",
5645 "unsafe_writes": null
5646 }
5647 },
5648 "mode": "0644",
5649 "owner": "root",
5650 "path": "/etc/repmgr.conf",
5651 "size": 4916,
5652 "state": "file",
5653 "uid": 0
5654}
5655
5656TASK [alexey-medvedchikov.repmgr : repmgrd debian default file] ******************************************************************************************************************************************************************************
5657task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.repmgr/tasks/configure.yml:33
5658<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5659<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
5660<192.168.80.32> (0, '/root\n', '')
5661<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5662<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1531741075.5-89203510561883 `" && echo ansible-tmp-1531741075.5-89203510561883="` echo /root/.ansible/tmp/ansible-tmp-1531741075.5-89203510561883 `" ) && sleep 0'"'"''
5663<192.168.80.32> (0, 'ansible-tmp-1531741075.5-89203510561883=/root/.ansible/tmp/ansible-tmp-1531741075.5-89203510561883\n', '')
5664Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
5665<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmp_sSzHE TO /root/.ansible/tmp/ansible-tmp-1531741075.5-89203510561883/stat.py
5666<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
5667<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmp_sSzHE /root/.ansible/tmp/ansible-tmp-1531741075.5-89203510561883/stat.py\n', '')
5668<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5669<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741075.5-89203510561883/ /root/.ansible/tmp/ansible-tmp-1531741075.5-89203510561883/stat.py && sleep 0'"'"''
5670<192.168.80.32> (0, '', '')
5671<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5672<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741075.5-89203510561883/stat.py && sleep 0'"'"''
5673<192.168.80.32> (0, '\r\n{"changed": false, "stat": {"version": "18446744072598202020", "isblk": false, "blocks": 8, "gid": 0, "xusr": false, "block_size": 4096, "writeable": true, "mimetype": "text/plain", "size": 484, "mtime": 1531411804.14709, "roth": true, "executable": false, "nlink": 1, "rgrp": true, "charset": "us-ascii", "isreg": true, "mode": "0644", "xoth": false, "xgrp": false, "woth": false, "device_type": 0, "isfifo": false, "atime": 1531728670.6760747, "wgrp": false, "isdir": false, "inode": 142449, "islnk": false, "uid": 0, "ischr": false, "path": "/etc/default/repmgrd", "rusr": true, "dev": 2049, "exists": true, "isuid": false, "pw_name": "root", "attributes": ["extents"], "attr_flags": "e", "readable": true, "gr_name": "root", "issock": false, "wusr": true, "isgid": false, "ctime": 1531411805.0070798, "checksum": "81395856b8cba413e856592198585b372e3428b9"}, "invocation": {"module_args": {"follow": false, "get_md5": null, "checksum_algorithm": "sha1", "get_attributes": true, "get_mime": true, "get_checksum": true, "checksum_algo": "sha1", "path": "/etc/default/repmgrd"}}}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
5674Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/file.py
5675<192.168.80.32> PUT /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpzqSQyn TO /root/.ansible/tmp/ansible-tmp-1531741075.5-89203510561883/file.py
5676<192.168.80.32> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 '[192.168.80.32]'
5677<192.168.80.32> (0, 'sftp> put /home/bazz/.ansible/tmp/ansible-local-12946ZADN7B/tmpzqSQyn /root/.ansible/tmp/ansible-tmp-1531741075.5-89203510561883/file.py\n', '')
5678<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5679<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1531741075.5-89203510561883/ /root/.ansible/tmp/ansible-tmp-1531741075.5-89203510561883/file.py && sleep 0'"'"''
5680<192.168.80.32> (0, '', '')
5681<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5682<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 -tt 192.168.80.32 '/bin/sh -c '"'"'python3 /root/.ansible/tmp/ansible-tmp-1531741075.5-89203510561883/file.py && sleep 0'"'"''
5683<192.168.80.32> (0, '\r\n{"changed": false, "state": "file", "mode": "0644", "size": 484, "path": "/etc/default/repmgrd", "gid": 0, "owner": "root", "group": "root", "invocation": {"module_args": {"regexp": null, "_diff_peek": null, "backup": null, "dest": "/etc/default/repmgrd", "group": "root", "delimiter": null, "state": "file", "follow": false, "mode": "0644", "seuser": null, "serole": null, "src": null, "unsafe_writes": null, "selevel": null, "attributes": null, "content": null, "remote_src": null, "path": "/etc/default/repmgrd", "directory_mode": null, "_original_basename": "default.j2", "setype": null, "owner": "root", "force": false, "recurse": false}}, "diff": {"before": {"path": "/etc/default/repmgrd"}, "after": {"path": "/etc/default/repmgrd"}}, "uid": 0}\r\n', 'Shared connection to 192.168.80.32 closed.\r\n')
5684<192.168.80.32> ESTABLISH SSH CONNECTION FOR USER: root
5685<192.168.80.32> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/bazz/.ansible/cp/519d36e219 192.168.80.32 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1531741075.5-89203510561883/ > /dev/null 2>&1 && sleep 0'"'"''
5686<192.168.80.32> (0, '', '')
5687ok: [pg-preprod-1] => {
5688 "changed": false,
5689 "checksum": "81395856b8cba413e856592198585b372e3428b9",
5690 "dest": "/etc/default/repmgrd",
5691 "diff": {
5692 "after": {
5693 "path": "/etc/default/repmgrd"
5694 },
5695 "before": {
5696 "path": "/etc/default/repmgrd"
5697 }
5698 },
5699 "gid": 0,
5700 "group": "root",
5701 "invocation": {
5702 "module_args": {
5703 "_diff_peek": null,
5704 "_original_basename": "default.j2",
5705 "attributes": null,
5706 "backup": null,
5707 "content": null,
5708 "delimiter": null,
5709 "dest": "/etc/default/repmgrd",
5710 "directory_mode": null,
5711 "follow": false,
5712 "force": false,
5713 "group": "root",
5714 "mode": "0644",
5715 "owner": "root",
5716 "path": "/etc/default/repmgrd",
5717 "recurse": false,
5718 "regexp": null,
5719 "remote_src": null,
5720 "selevel": null,
5721 "serole": null,
5722 "setype": null,
5723 "seuser": null,
5724 "src": null,
5725 "state": "file",
5726 "unsafe_writes": null
5727 }
5728 },
5729 "mode": "0644",
5730 "owner": "root",
5731 "path": "/etc/default/repmgrd",
5732 "size": 484,
5733 "state": "file",
5734 "uid": 0
5735}
5736
5737TASK [alexey-medvedchikov.repmgr : create ssh directory] *************************************************************************************************************************************************************************************
5738task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.repmgr/tasks/bootstrap.yml:3
5739skipping: [pg-preprod-1] => {
5740 "changed": false,
5741 "skip_reason": "Conditional result was False"
5742}
5743
5744TASK [alexey-medvedchikov.repmgr : private ssh rsa key] **************************************************************************************************************************************************************************************
5745task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.repmgr/tasks/bootstrap.yml:11
5746skipping: [pg-preprod-1] => {
5747 "changed": false,
5748 "skip_reason": "Conditional result was False"
5749}
5750
5751TASK [alexey-medvedchikov.repmgr : public ssh rsa key] ***************************************************************************************************************************************************************************************
5752task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.repmgr/tasks/bootstrap.yml:19
5753skipping: [pg-preprod-1] => {
5754 "changed": false,
5755 "skip_reason": "Conditional result was False"
5756}
5757
5758TASK [alexey-medvedchikov.repmgr : ssh authorized keys] **************************************************************************************************************************************************************************************
5759task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.repmgr/tasks/bootstrap.yml:27
5760skipping: [pg-preprod-1] => {
5761 "changed": false,
5762 "skip_reason": "Conditional result was False"
5763}
5764
5765TASK [alexey-medvedchikov.repmgr : collect ssh fingerprints] *********************************************************************************************************************************************************************************
5766task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.repmgr/tasks/bootstrap.yml:36
5767skipping: [pg-preprod-1] => {
5768 "changed": false,
5769 "skip_reason": "Conditional result was False"
5770}
5771
5772TASK [alexey-medvedchikov.repmgr : ssh known_hosts] ******************************************************************************************************************************************************************************************
5773task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.repmgr/tasks/bootstrap.yml:44
5774skipping: [pg-preprod-1] => (item=__ssh_fingerprints.stdout_lines) => {
5775 "changed": false,
5776 "item": "__ssh_fingerprints.stdout_lines",
5777 "skip_reason": "Conditional result was False"
5778}
5779
5780TASK [alexey-medvedchikov.repmgr : debug] ****************************************************************************************************************************************************************************************************
5781task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.repmgr/tasks/bootstrap.yml:54
5782skipping: [pg-preprod-1] => {}
5783
5784TASK [alexey-medvedchikov.repmgr : debug] ****************************************************************************************************************************************************************************************************
5785task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.repmgr/tasks/bootstrap.yml:57
5786skipping: [pg-preprod-1] => {}
5787
5788TASK [alexey-medvedchikov.repmgr : debug] ****************************************************************************************************************************************************************************************************
5789task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.repmgr/tasks/bootstrap.yml:61
5790skipping: [pg-preprod-1] => {}
5791
5792TASK [alexey-medvedchikov.repmgr : debug] ****************************************************************************************************************************************************************************************************
5793task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.repmgr/tasks/bootstrap.yml:65
5794skipping: [pg-preprod-1] => {}
5795
5796TASK [alexey-medvedchikov.repmgr : debug] ****************************************************************************************************************************************************************************************************
5797task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.repmgr/tasks/bootstrap.yml:69
5798skipping: [pg-preprod-1] => {}
5799
5800TASK [alexey-medvedchikov.repmgr : debug] ****************************************************************************************************************************************************************************************************
5801task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.repmgr/tasks/bootstrap.yml:70
5802skipping: [pg-preprod-1] => {}
5803
5804TASK [alexey-medvedchikov.repmgr : create user for repmgr] ***********************************************************************************************************************************************************************************
5805task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.repmgr/tasks/bootstrap.yml:72
5806skipping: [pg-preprod-1] => {
5807 "changed": false,
5808 "skip_reason": "Conditional result was False"
5809}
5810
5811TASK [alexey-medvedchikov.repmgr : create database for repmgr] *******************************************************************************************************************************************************************************
5812task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.repmgr/tasks/bootstrap.yml:80
5813skipping: [pg-preprod-1] => {
5814 "changed": false,
5815 "skip_reason": "Conditional result was False"
5816}
5817[pg-preprod-1] TASK: alexey-medvedchikov.repmgr : create database for repmgr (debug)> [pg-preprod-1] TASK: alexey-medvedchikov.repmgr : create database for repmgr (debug)>
5818TASK [alexey-medvedchikov.repmgr : install repmgr functions] *********************************************************************************************************************************************************************************
5819task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.repmgr/tasks/bootstrap.yml:89
5820skipping: [pg-preprod-1] => {
5821 "changed": false,
5822 "skip_reason": "Conditional result was False"
5823}
5824
5825TASK [alexey-medvedchikov.repmgr : register master node] *************************************************************************************************************************************************************************************
5826task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.repmgr/tasks/bootstrap.yml:93
5827skipping: [pg-preprod-1] => {
5828 "changed": false,
5829 "skip_reason": "Conditional result was False"
5830}
5831
5832TASK [alexey-medvedchikov.repmgr : shutdown standby server] **********************************************************************************************************************************************************************************
5833task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.repmgr/tasks/bootstrap.yml:98
5834skipping: [pg-preprod-1] => {
5835 "changed": false,
5836 "skip_reason": "Conditional result was False"
5837}
5838
5839TASK [alexey-medvedchikov.repmgr : clean out pgdata directory on slave] **********************************************************************************************************************************************************************
5840task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.repmgr/tasks/bootstrap.yml:104
5841skipping: [pg-preprod-1] => {
5842 "changed": false,
5843 "skip_reason": "Conditional result was False"
5844}
5845
5846TASK [alexey-medvedchikov.repmgr : clone standby from master] ********************************************************************************************************************************************************************************
5847task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.repmgr/tasks/bootstrap.yml:110
5848skipping: [pg-preprod-1] => {
5849 "changed": false,
5850 "skip_reason": "Conditional result was False"
5851}
5852
5853TASK [alexey-medvedchikov.repmgr : start standby server] *************************************************************************************************************************************************************************************
5854task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.repmgr/tasks/bootstrap.yml:123
5855skipping: [pg-preprod-1] => {
5856 "changed": false,
5857 "skip_reason": "Conditional result was False"
5858}
5859
5860TASK [alexey-medvedchikov.repmgr : register standby server] **********************************************************************************************************************************************************************************
5861task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.repmgr/tasks/bootstrap.yml:129
5862skipping: [pg-preprod-1] => {
5863 "changed": false,
5864 "skip_reason": "Conditional result was False"
5865}
5866
5867TASK [alexey-medvedchikov.repmgr : FIXME -- wait for standby node information to appear in replicated db] ************************************************************************************************************************************
5868task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.repmgr/tasks/bootstrap.yml:134
5869skipping: [pg-preprod-1] => {
5870 "changed": false,
5871 "skip_reason": "Conditional result was False"
5872}
5873
5874TASK [alexey-medvedchikov.repmgr : repmgrd service start] ************************************************************************************************************************************************************************************
5875task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.repmgr/tasks/bootstrap.yml:147
5876skipping: [pg-preprod-1] => {
5877 "changed": false,
5878 "skip_reason": "Conditional result was False"
5879}
5880
5881TASK [alexey-medvedchikov.repmgr : Removing old records in the repl_monitor table] ***********************************************************************************************************************************************************
5882task path: /home/bazz/git/devops/ansible/postgres/roles/alexey-medvedchikov.repmgr/tasks/cron_jobs.yml:2
5883META: ran handlers
5884META: ran handlers
5885
5886PLAY RECAP ***********************************************************************************************************************************************************************************************************************************
5887pg-preprod-1 : ok=49 changed=3 unreachable=0 failed=0