khatman_

Bahmni 0.92 Installation Error on CentOS7

Nov 11th, 2020 (edited)
67
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bahmni install
  2. ansible-playbook -i /etc/bahmni-installer/local all.yml -vv --extra-vars '@/etc/bahmni-installer/rpm_versions.yml' --extra-vars '@/etc/bahmni-backrest.conf' --extra-vars '@/etc/bahmni-installer/setup.yml'
  3. ansible-playbook 2.4.6.0
  4. config file = /opt/bahmni-installer/bahmni-playbooks/ansible.cfg
  5. configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  6. ansible python module location = /usr/lib/python2.7/site-packages/ansible
  7. executable location = /usr/bin/ansible-playbook
  8. python version = 2.7.5 (default, Apr 2 2020, 13:16:51) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
  9. Using /opt/bahmni-installer/bahmni-playbooks/ansible.cfg as config file
  10. [DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and
  11. make sure become_method is 'sudo' (default). This feature will be removed in
  12. version 2.6. Deprecation warnings can be disabled by setting
  13. deprecation_warnings=False in ansible.cfg.
  14. [DEPRECATION WARNING]: The use of 'include' for tasks has been deprecated. Use
  15. 'import_tasks' for static inclusions or 'include_tasks' for dynamic inclusions.
  16. This feature will be removed in a future release. Deprecation warnings can be
  17. disabled by setting deprecation_warnings=False in ansible.cfg.
  18. [DEPRECATION WARNING]: include is kept for backwards compatibility but usage is
  19. discouraged. The module documentation details page may explain more about this
  20. rationale.. This feature will be removed in a future release. Deprecation
  21. warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
  22. statically imported: /opt/bahmni-installer/bahmni-playbooks/roles/oracle-java/tasks/oracle-java.yml
  23. statically imported: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml
  24. [WARNING]: Ignoring invalid attribute: sudo
  25.  
  26. statically imported: /opt/bahmni-installer/bahmni-playbooks/roles/selinux/tasks/enforcing_policies.yml
  27. statically imported: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml
  28. statically imported: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml
  29. statically imported: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/mysql56.yml
  30. statically imported: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/mysql57.yml
  31. statically imported: /opt/bahmni-installer/bahmni-playbooks/roles/oracle-java/tasks/oracle-java.yml
  32. statically imported: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml
  33. statically imported: /opt/bahmni-installer/bahmni-playbooks/roles/implementation-config/tasks/implementation-config.yml
  34. statically imported: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml
  35. statically imported: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/mysql56.yml
  36. statically imported: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/mysql57.yml
  37. statically imported: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml
  38. statically imported: /opt/bahmni-installer/bahmni-playbooks/roles/oracle-java/tasks/oracle-java.yml
  39. [WARNING]: Ignoring invalid attribute: sudo_user
  40.  
  41. statically imported: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml
  42. statically imported: /opt/bahmni-installer/bahmni-playbooks/roles/oracle-java/tasks/oracle-java.yml
  43. statically imported: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml
  44. statically imported: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml
  45. statically imported: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml
  46. statically imported: /opt/bahmni-installer/bahmni-playbooks/roles/oracle-java/tasks/oracle-java.yml
  47. statically imported: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml
  48. statically imported: /opt/bahmni-installer/bahmni-playbooks/roles/oracle-java/tasks/oracle-java.yml
  49. statically imported: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml
  50. statically imported: /opt/bahmni-installer/bahmni-playbooks/roles/dcm4chee-oracle-java/tasks/dcm4chee-oracle-java.yml
  51. statically imported: /opt/bahmni-installer/bahmni-playbooks/roles/oracle-java/tasks/oracle-java.yml
  52. statically imported: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml
  53. statically imported: /opt/bahmni-installer/bahmni-playbooks/roles/nagios/tasks/nagios.yml
  54. statically imported: /opt/bahmni-installer/bahmni-playbooks/roles/nagios/tasks/email.yml
  55.  
  56. PLAYBOOK: all.yml **************************************************************
  57. 26 plays in all.yml
  58. [WARNING]: Could not match supplied host pattern, ignoring: server
  59.  
  60.  
  61. PLAY [bahmni-emr-TDD] **********************************************************
  62. skipping: no hosts matched
  63.  
  64. PLAY [bahmni-emr] **************************************************************
  65.  
  66. TASK [Gathering Facts] *********************************************************
  67. ok: [localhost]
  68. META: ran handlers
  69.  
  70. TASK [httpd-maintenance : Check if /var/www/html folder exists] ****************
  71. task path: /opt/bahmni-installer/bahmni-playbooks/roles/httpd-maintenance/tasks/main.yml:1
  72. ok: [localhost] => {"changed": false, "failed": false, "stat": {"atime": 1604958978.441964, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "unknown", "ctime": 1604605071.2430327, "dev": 60, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 40242556, "isblk": false, "ischr": false, "isdir": true, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "unknown", "mode": "0755", "mtime": 1604605071.2430327, "nlink": 2, "path": "/var/www/html", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 4096, "uid": 0, "version": null, "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": true, "xoth": true, "xusr": true}}
  73.  
  74. TASK [httpd-maintenance : Add maintenace page to /var/www/html] ****************
  75. task path: /opt/bahmni-installer/bahmni-playbooks/roles/httpd-maintenance/tasks/main.yml:5
  76. ok: [localhost] => (item=maintenance.html) => {"changed": false, "checksum": "a74f2e45a736a90301ac54272054d75423030c8c", "dest": "/var/www/html/./maintenance.html", "failed": false, "gid": 0, "group": "root", "item": "maintenance.html", "mode": "0644", "owner": "root", "path": "/var/www/html/./maintenance.html", "size": 1031, "state": "file", "uid": 0}
  77. ok: [localhost] => (item=maintenance.enable) => {"changed": false, "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "dest": "/var/www/html/./maintenance.enable", "failed": false, "gid": 0, "group": "root", "item": "maintenance.enable", "mode": "0644", "owner": "root", "path": "/var/www/html/./maintenance.enable", "size": 0, "state": "file", "uid": 0}
  78. ok: [localhost] => (item=src.jpg) => {"changed": false, "checksum": "f779cc9ea903c09292dc0670ed3823d9032dbf52", "dest": "/var/www/html/./src.jpg", "failed": false, "gid": 0, "group": "root", "item": "src.jpg", "mode": "0644", "owner": "root", "path": "/var/www/html/./src.jpg", "size": 262165, "state": "file", "uid": 0}
  79. ok: [localhost] => (item=bahmni-logo.png) => {"changed": false, "checksum": "14bf24df3b2b37d1780b29b11368270e52456afc", "dest": "/var/www/html/./bahmni-logo.png", "failed": false, "gid": 0, "group": "root", "item": "bahmni-logo.png", "mode": "0644", "owner": "root", "path": "/var/www/html/./bahmni-logo.png", "size": 23645, "state": "file", "uid": 0}
  80.  
  81. TASK [httpd-maintenance : Remove maintenace enable page from /var/www/html] ****
  82. task path: /opt/bahmni-installer/bahmni-playbooks/roles/httpd-maintenance/tasks/main.yml:17
  83. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  84.  
  85. TASK [httpd-maintenance : reload_httpd_service] ********************************
  86. task path: /opt/bahmni-installer/bahmni-playbooks/roles/httpd-maintenance/tasks/main.yml:23
  87. skipping: [localhost] => (item=localhost) => {"changed": false, "item": "localhost", "skip_reason": "Conditional result was False", "skipped": true}
  88. META: ran handlers
  89. META: ran handlers
  90.  
  91. PLAY [local] *******************************************************************
  92. META: ran handlers
  93.  
  94. TASK [selinux : install libselinux-python] *************************************
  95. task path: /opt/bahmni-installer/bahmni-playbooks/roles/selinux/tasks/main.yml:3
  96. ok: [localhost] => {"changed": false, "failed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-15.el7.x86_64 providing libselinux-python is already installed"]}
  97.  
  98. TASK [selinux : install libsemanage-python] ************************************
  99. task path: /opt/bahmni-installer/bahmni-playbooks/roles/selinux/tasks/main.yml:6
  100. ok: [localhost] => {"changed": false, "failed": false, "msg": "", "rc": 0, "results": ["libsemanage-python-2.5-14.el7.x86_64 providing libsemanage-python is already installed"]}
  101.  
  102. TASK [selinux : Get selinux status] ********************************************
  103. task path: /opt/bahmni-installer/bahmni-playbooks/roles/selinux/tasks/main.yml:9
  104. changed: [localhost] => {"changed": true, "cmd": ["getenforce"], "delta": "0:00:00.481321", "end": "2020-11-11 11:04:54.459254", "failed": false, "rc": 0, "start": "2020-11-11 11:04:53.977933", "stderr": "", "stderr_lines": [], "stdout": "Disabled", "stdout_lines": ["Disabled"]}
  105.  
  106. TASK [selinux : set selinux state and policy] **********************************
  107. task path: /opt/bahmni-installer/bahmni-playbooks/roles/selinux/tasks/main.yml:13
  108. ok: [localhost] => {"changed": false, "configfile": "/etc/selinux/config", "failed": false, "msg": "", "policy": "targeted", "reboot_required": false, "state": "disabled"}
  109.  
  110. TASK [selinux : Give a message to reboot machine on changing from disabled to enabled] ***
  111. task path: /opt/bahmni-installer/bahmni-playbooks/roles/selinux/tasks/enforcing_policies.yml:3
  112. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  113.  
  114. TASK [selinux : Install policycoreutils-python] ********************************
  115. task path: /opt/bahmni-installer/bahmni-playbooks/roles/selinux/tasks/enforcing_policies.yml:7
  116. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  117.  
  118. TASK [selinux : set httpd_can_network_relay for SELinux] ***********************
  119. task path: /opt/bahmni-installer/bahmni-playbooks/roles/selinux/tasks/enforcing_policies.yml:10
  120. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  121.  
  122. TASK [selinux : set httpd_read_user_content for SELinux] ***********************
  123. task path: /opt/bahmni-installer/bahmni-playbooks/roles/selinux/tasks/enforcing_policies.yml:16
  124. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  125.  
  126. TASK [selinux : set httpd_can_network_connect for SELinux] *********************
  127. task path: /opt/bahmni-installer/bahmni-playbooks/roles/selinux/tasks/enforcing_policies.yml:22
  128. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  129.  
  130. TASK [selinux : set httpd_enable_cgi for SELinux] ******************************
  131. task path: /opt/bahmni-installer/bahmni-playbooks/roles/selinux/tasks/enforcing_policies.yml:28
  132. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  133.  
  134. TASK [selinux : Copy bahmni_http_home_dir selinux policy] **********************
  135. task path: /opt/bahmni-installer/bahmni-playbooks/roles/selinux/tasks/enforcing_policies.yml:34
  136. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  137.  
  138. TASK [selinux : Compile module] ************************************************
  139. task path: /opt/bahmni-installer/bahmni-playbooks/roles/selinux/tasks/enforcing_policies.yml:37
  140. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  141.  
  142. TASK [selinux : Package selinux policy] ****************************************
  143. task path: /opt/bahmni-installer/bahmni-playbooks/roles/selinux/tasks/enforcing_policies.yml:40
  144. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  145.  
  146. TASK [selinux : Install bahmni_http_home_dir selinux policy] *******************
  147. task path: /opt/bahmni-installer/bahmni-playbooks/roles/selinux/tasks/enforcing_policies.yml:43
  148. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  149.  
  150. TASK [selinux : Setpermissive for httpd_t] *************************************
  151. task path: /opt/bahmni-installer/bahmni-playbooks/roles/selinux/tasks/enforcing_policies.yml:46
  152. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  153.  
  154. TASK [selinux : Clean up policy files created in /tmp] *************************
  155. task path: /opt/bahmni-installer/bahmni-playbooks/roles/selinux/tasks/enforcing_policies.yml:49
  156. skipping: [localhost] => (item=/tmp/bahmni_httpd_home_dir.te) => {"changed": false, "item": "/tmp/bahmni_httpd_home_dir.te", "skip_reason": "Conditional result was False", "skipped": true}
  157. skipping: [localhost] => (item=/tmp/bahmni_httpd_home_dir.mod) => {"changed": false, "item": "/tmp/bahmni_httpd_home_dir.mod", "skip_reason": "Conditional result was False", "skipped": true}
  158. skipping: [localhost] => (item=/tmp/bahmni_httpd_home_dir.pp) => {"changed": false, "item": "/tmp/bahmni_httpd_home_dir.pp", "skip_reason": "Conditional result was False", "skipped": true}
  159.  
  160. TASK [bahmni-base : Install libselinux-python] *********************************
  161. task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-base/tasks/main.yml:2
  162. ok: [localhost] => {"changed": false, "failed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.5-15.el7.x86_64 providing libselinux-python is already installed"]}
  163.  
  164. TASK [bahmni-base : add bahmni yum repo] ***************************************
  165. task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-base/tasks/main.yml:5
  166. ok: [localhost] => {"changed": false, "checksum": "cc6a69f13e0c9cd66c20432ebe95f6e9989297fa", "dest": "/etc/yum.repos.d/bahmni.repo", "failed": false, "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/etc/yum.repos.d/bahmni.repo", "size": 116, "state": "file", "uid": 0}
  167.  
  168. TASK [bahmni-base : Install EPEL repo.] ****************************************
  169. task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-base/tasks/main.yml:8
  170. ok: [localhost] => {"changed": false, "failed": false, "msg": "", "rc": 0, "results": ["epel-release-7-12.noarch providing epel-release is already installed"]}
  171.  
  172. TASK [bahmni-base : Import EPEL GPG key.] **************************************
  173. task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-base/tasks/main.yml:13
  174. ok: [localhost] => {"changed": false, "failed": false}
  175.  
  176. TASK [bahmni-base : Install ntp] ***********************************************
  177. task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-base/tasks/main.yml:18
  178. ok: [localhost] => {"changed": false, "failed": false, "msg": "", "rc": 0, "results": ["ntp-4.2.6p5-29.el7.centos.2.x86_64 providing ntp is already installed"]}
  179.  
  180. TASK [bahmni-base : Fail if timezone is not provided] **************************
  181. task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-base/tasks/main.yml:22
  182. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  183.  
  184. TASK [bahmni-base : Check if timezone exists] **********************************
  185. task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-base/tasks/main.yml:29
  186. ok: [localhost] => {"changed": false, "failed": false, "stat": {"atime": 1588258783.0, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "unknown", "checksum": "0c729e239b0abb9a171dd5c64faf9fa308fb5571", "ctime": 1604220871.6638653, "dev": 60, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 31463661, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "md5": "cee12167324950cf0d21256df7848887", "mimetype": "unknown", "mode": "0644", "mtime": 1588258783.0, "nlink": 3, "path": "/usr/share/zoneinfo/Africa/Maseru", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 245, "uid": 0, "version": null, "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}}
  187.  
  188. TASK [bahmni-base : Fail if provided timezone does not exist] ******************
  189. task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-base/tasks/main.yml:34
  190. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  191.  
  192. TASK [bahmni-base : Set the correct timezone.] *********************************
  193. task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-base/tasks/main.yml:39
  194. ok: [localhost] => {"changed": false, "dest": "/etc/localtime", "failed": false, "gid": 0, "group": "root", "mode": "0777", "owner": "root", "size": 33, "src": "/usr/share/zoneinfo/Africa/Maseru", "state": "link", "uid": 0}
  195.  
  196. TASK [bahmni-base : start and enable ntpd] *************************************
  197. task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-base/tasks/main.yml:43
  198. ok: [localhost] => {"changed": false, "enabled": true, "failed": false, "name": "ntpd", "state": "started", "status": {"ActiveEnterTimestamp": "Wed 2020-11-11 05:41:05 SAST", "ActiveEnterTimestampMonotonic": "41065135", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "-.mount basic.target system.slice systemd-journald.socket sntp.service tmp.mount syslog.target ntpdate.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Wed 2020-11-11 05:41:05 SAST", "AssertTimestampMonotonic": "41045713", "Before": "multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2020-11-11 05:41:05 SAST", "ConditionTimestampMonotonic": "41045713", "Conflicts": "shutdown.target", "ControlGroup": "/docker/e2df11d49194d019cbfe107bbd5c00ea2aa04c12ec887cd14be0d30e0b446c3f/system.slice/ntpd.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "Network Time Service", "DevicePolicy": "auto", "EnvironmentFile": "/etc/sysconfig/ntpd (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "57", "ExecMainStartTimestamp": "Wed 2020-11-11 05:41:05 SAST", "ExecMainStartTimestampMonotonic": "41065079", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/ntpd ; argv[]=/usr/sbin/ntpd -u ntp:ntp $OPTIONS ; ignore_errors=no ; start_time=[Wed 2020-11-11 05:41:05 SAST] ; stop_time=[Wed 2020-11-11 05:41:05 SAST] ; pid=19 ; code=exited ; status=0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/ntpd.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "ntpd.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Wed 2020-11-11 05:41:05 SAST", "InactiveExitTimestampMonotonic": "41046567", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "1048576", "LimitNPROC": "18446744073709551615", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "63485", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "57", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "ntpd.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "yes", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "basic.target system.slice", "RequiresMountsFor": "/var/tmp", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "forking", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Wed 2020-11-11 05:41:05 SAST", "WatchdogTimestampMonotonic": "41065107", "WatchdogUSec": "0"}}
  199.  
  200. TASK [bahmni-base : install utils] *********************************************
  201. task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-base/tasks/main.yml:47
  202. ok: [localhost] => (item=[u'tree', u'htop', u'lsof', u'wget', u'unzip', u'python-pip', u'rsync']) => {"changed": false, "failed": false, "item": ["tree", "htop", "lsof", "wget", "unzip", "python-pip", "rsync"], "msg": "", "rc": 0, "results": ["tree-1.6.0-10.el7.x86_64 providing tree is already installed", "htop-2.2.0-3.el7.x86_64 providing htop is already installed", "lsof-4.87-6.el7.x86_64 providing lsof is already installed", "wget-1.14-18.el7_6.1.x86_64 providing wget is already installed", "unzip-6.0-21.el7.x86_64 providing unzip is already installed", "python2-pip-8.1.2-14.el7.noarch providing python-pip is already installed", "rsync-3.1.2-10.el7.x86_64 providing rsync is already installed"]}
  203.  
  204. TASK [bahmni-base : Check if pip is installed with required version] ***********
  205. task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-base/tasks/main.yml:59
  206. changed: [localhost] => {"changed": true, "cmd": ["pip", "--version"], "delta": "0:00:00.763859", "end": "2020-11-11 11:06:15.692643", "failed": false, "rc": 0, "start": "2020-11-11 11:06:14.928784", "stderr": "", "stderr_lines": [], "stdout": "pip 19.0 from /usr/lib/python2.7/site-packages/pip (python 2.7)", "stdout_lines": ["pip 19.0 from /usr/lib/python2.7/site-packages/pip (python 2.7)"]}
  207.  
  208. TASK [bahmni-base : Upgrade pip to latest vesion] ******************************
  209. task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-base/tasks/main.yml:63
  210. [WARNING]: when statements should not include jinja2 templating delimiters
  211. such as {{ }} or {% %}. Found: pipVersion.stdout.find("{{ odoo_pip_version }}")
  212. == -1
  213.  
  214. ok: [localhost] => {"changed": false, "cmd": "/usr/bin/pip2 install --upgrade pip==19.0.0", "failed": false, "name": ["pip==19.0.0"], "requirements": null, "state": "present", "stderr": "DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.\nYou are using pip version 19.0, however version 20.3b1 is available.\nYou should consider upgrading via the 'pip install --upgrade pip' command.\n", "stderr_lines": ["DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.", "You are using pip version 19.0, however version 20.3b1 is available.", "You should consider upgrading via the 'pip install --upgrade pip' command."], "stdout": "Requirement already up-to-date: pip==19.0.0 in /usr/lib/python2.7/site-packages (19.0)\n", "stdout_lines": ["Requirement already up-to-date: pip==19.0.0 in /usr/lib/python2.7/site-packages (19.0)"], "version": null, "virtualenv": null}
  215.  
  216. TASK [bahmni-base : Check if setup tools is installed with required version] ***
  217. task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-base/tasks/main.yml:69
  218. changed: [localhost] => {"changed": true, "cmd": ["pip", "show", "setuptools", "|", "grep", "Version"], "delta": "0:00:00.765074", "end": "2020-11-11 11:06:19.001413", "failed": false, "rc": 0, "start": "2020-11-11 11:06:18.236339", "stderr": "DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.", "stderr_lines": ["DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7."], "stdout": "Name: setuptools\nVersion: 40.0.0\nSummary: Easily download, build, install, upgrade, and uninstall Python packages\nHome-page: https://github.com/pypa/setuptools\nAuthor: Python Packaging Authority\nAuthor-email: distutils-sig@python.org\nLicense: UNKNOWN\nLocation: /usr/lib/python2.7/site-packages\nRequires: \nRequired-by: cryptography, ansible", "stdout_lines": ["Name: setuptools", "Version: 40.0.0", "Summary: Easily download, build, install, upgrade, and uninstall Python packages", "Home-page: https://github.com/pypa/setuptools", "Author: Python Packaging Authority", "Author-email: distutils-sig@python.org", "License: UNKNOWN", "Location: /usr/lib/python2.7/site-packages", "Requires: ", "Required-by: cryptography, ansible"]}
  219.  
  220. TASK [bahmni-base : Upgrade setup tools to latest vesion] **********************
  221. task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-base/tasks/main.yml:73
  222. [WARNING]: when statements should not include jinja2 templating delimiters
  223. such as {{ }} or {% %}. Found: setupToolsVersion.stdout.find("{{
  224. odoo_setuptools_version }}") == -1
  225.  
  226. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  227.  
  228. TASK [bahmni-user : Create bahmni group] ***************************************
  229. task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-user/tasks/main.yml:1
  230. ok: [localhost] => {"changed": false, "failed": false, "gid": 1000, "name": "bahmni", "state": "present", "system": false}
  231.  
  232. TASK [bahmni-user : Create bahmni user] ****************************************
  233. task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-user/tasks/main.yml:7
  234. ok: [localhost] => {"append": false, "changed": false, "comment": "", "failed": false, "group": 1000, "home": "/home/bahmni", "move_home": false, "name": "bahmni", "shell": "/sbin/nologin", "state": "present", "uid": 1000}
  235.  
  236. TASK [bahmni-user : Remove shell access and set nologin for user] **************
  237. task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-user/tasks/main.yml:11
  238. changed: [localhost] => {"changed": true, "cmd": ["usermod", "-s", "/sbin/nologin", "bahmni"], "delta": "0:00:00.479812", "end": "2020-11-11 11:06:20.681617", "failed": false, "rc": 0, "start": "2020-11-11 11:06:20.201805", "stderr": "usermod: no changes", "stderr_lines": ["usermod: no changes"], "stdout": "", "stdout_lines": []}
  239.  
  240. TASK [installer-config : Fail if implementation name is not provided] **********
  241. task path: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml:1
  242. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  243.  
  244. TASK [installer-config : create /etc/bahmni-installer/ directory] **************
  245. task path: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml:7
  246. ok: [localhost] => {"changed": false, "failed": false, "gid": 1000, "group": "bahmni", "mode": "0755", "owner": "bahmni", "path": "/etc/bahmni-installer", "size": 4096, "state": "directory", "uid": 1000}
  247.  
  248. TASK [installer-config : create /etc/bahmni-installer/deployment-artifacts directory] ***
  249. task path: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml:10
  250. ok: [localhost] => {"changed": false, "failed": false, "gid": 1000, "group": "bahmni", "mode": "0755", "owner": "bahmni", "path": "/etc/bahmni-installer/deployment-artifacts", "size": 4096, "state": "directory", "uid": 1000}
  251.  
  252. TASK [installer-config : create /etc/bahmni-installer/atomfeed-backup directory] ***
  253. task path: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml:13
  254. ok: [localhost] => {"changed": false, "failed": false, "gid": 1000, "group": "bahmni", "mode": "0755", "owner": "bahmni", "path": "/etc/bahmni-installer/atomfeed-backup", "size": 4096, "state": "directory", "uid": 1000}
  255.  
  256. TASK [installer-config : add bahmni configuration file] ************************
  257. task path: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml:16
  258. ok: [localhost] => {"changed": false, "checksum": "fe7efd5c7f8c6d64e3b817093d6ef07fe3e180b4", "dest": "/etc/bahmni-installer/bahmni.conf", "failed": false, "gid": 1000, "group": "bahmni", "mode": "0644", "owner": "bahmni", "path": "/etc/bahmni-installer/bahmni.conf", "size": 429, "state": "file", "uid": 1000}
  259.  
  260. TASK [installer-config : Creating Module directory] ****************************
  261. task path: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml:24
  262. ok: [localhost] => {"changed": false, "failed": false, "gid": 1000, "group": "bahmni", "mode": "0755", "owner": "bahmni", "path": "/etc/bahmni-installer/deployment-artifacts/modules", "size": 4096, "state": "directory", "uid": 1000}
  263.  
  264. TASK [installer-config : Check Bahmni-installer version on command box] ********
  265. task path: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml:27
  266. [WARNING]: Consider using yum, dnf or zypper module rather than running rpm
  267.  
  268. changed: [localhost -> localhost] => {"changed": true, "cmd": ["rpm", "-q", "bahmni-installer", "--qf", "%{VERSION}-%{RELEASE}\\n"], "delta": "0:00:00.497734", "end": "2020-11-11 11:06:22.190652", "failed": false, "rc": 0, "start": "2020-11-11 11:06:21.692918", "stderr": "", "stderr_lines": [], "stdout": "0.92-155", "stdout_lines": ["0.92-155"]}
  269.  
  270. TASK [installer-config : Yum install Bahmni-installer] *************************
  271. task path: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml:31
  272. ok: [localhost] => {"changed": false, "failed": false, "msg": "", "rc": 0, "results": ["bahmni-installer-0.92-155.noarch providing bahmni-installer-0.92-155 is already installed"]}
  273.  
  274. TASK [installer-config : set installer_config_role_ran fact] *******************
  275. task path: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml:34
  276. ok: [localhost] => {"ansible_facts": {"installer_config_role_ran": true}, "changed": false, "failed": false}
  277.  
  278. TASK [installer-config : Checking if backrest.conf exists] *********************
  279. task path: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/main.yml:4
  280. ok: [localhost] => {"changed": false, "failed": false, "stat": {"atime": 1605085488.345375, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "unknown", "checksum": "4a24861c191de65137659a2c19a6114283940e20", "ctime": 1604262043.1963196, "dev": 60, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 36315092, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "md5": "02c98e6ee51d8c618768bebdfd2b6678", "mimetype": "unknown", "mode": "0777", "mtime": 1604262043.1203167, "nlink": 1, "path": "/etc/bahmni-backrest.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 1433, "uid": 0, "version": null, "wgrp": true, "woth": true, "writeable": true, "wusr": true, "xgrp": true, "xoth": true, "xusr": true}}
  281.  
  282. TASK [installer-config : Creating bahmni-backrest.conf file] *******************
  283. task path: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/main.yml:8
  284. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  285.  
  286. TASK [installer-config : Creating backrest log directory] **********************
  287. task path: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/main.yml:17
  288. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  289.  
  290. TASK [installer-config : Creating pgbackrest repo directory] *******************
  291. task path: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/main.yml:25
  292. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  293.  
  294. TASK [installer-config : Editing bahmni-backrest.conf file] ********************
  295. task path: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/main.yml:33
  296. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  297.  
  298. TASK [bahmni-support-user : Create bahmni_support group] ***********************
  299. task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-support-user/tasks/main.yml:1
  300. ok: [localhost] => {"changed": false, "failed": false, "gid": 1001, "name": "bahmni_support", "state": "present", "system": false}
  301.  
  302. TASK [bahmni-support-user : Create bahmni_support user] ************************
  303. task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-support-user/tasks/main.yml:7
  304. ok: [localhost] => {"append": false, "changed": false, "comment": "", "failed": false, "group": 1001, "home": "/home/bahmni_support", "move_home": false, "name": "bahmni_support", "password": "NOT_LOGGING_PASSWORD", "shell": "/bin/bash", "ssh_fingerprint": "2048 SHA256:uumfxy9zPcoFtSzR4jxcLtQZvJNozbEXX0xzLN9Wlzw ansible-generated on e2df11d49194 (RSA)", "ssh_key_file": "/home/bahmni_support/.ssh/id_rsa", "ssh_public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCz4QJXRRtxO1Bw3ACZGt+RpgCX2ZPhTqwtTQA7s2fvb7kkSZwyNCXCb6zPsnsVYd2B3vv2nZ2j+m19IWYtT45QwmUliCfe6K2OjwEx51PiiifQPOVEvLgLwNeHJTVgnvTsxsW7uMmOovkoeoY822AriZZCQjAf3eHAf/+mJsVHhyacNPHp9NH/A2m+qIFspawP9IBFVqNwXSEGi+6mgTo9RV3owpTddivFsn68kKqyxmE14phn7aFdNLRRovl5136IkspnB6Yo+IadSoY0rZ8KK3GqQyo5rDab8jUXvnY8lcePAADaarAmOESD0nG1hIxDyRMBjyeRSEJxANkEi5el ansible-generated on e2df11d49194", "state": "present", "uid": 1001}
  305.  
  306. TASK [bahmni-support-user : configure sudoers] *********************************
  307. task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-support-user/tasks/main.yml:17
  308. ok: [localhost] => {"backup": "", "changed": false, "failed": false, "msg": ""}
  309.  
  310. TASK [bahmni-support-user : allow bahmni_support_group ssh access] *************
  311. task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-support-user/tasks/main.yml:21
  312. ok: [localhost] => {"backup": "", "changed": false, "failed": false, "msg": ""}
  313.  
  314. TASK [bahmni-support-user : allow bahmni_support_user ssh access] **************
  315. task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-support-user/tasks/main.yml:32
  316. ok: [localhost] => {"backup": "", "changed": false, "failed": false, "msg": ""}
  317.  
  318. TASK [bahmni-support-user : reload sshd] ***************************************
  319. task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-support-user/tasks/main.yml:43
  320. changed: [localhost] => {"changed": true, "failed": false, "name": "sshd", "state": "started", "status": {"ActiveEnterTimestamp": "Wed 2020-11-11 05:41:05 SAST", "ActiveEnterTimestampMonotonic": "41082002", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "sshd-keygen.service basic.target network.target system.slice systemd-journald.socket", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Wed 2020-11-11 05:41:05 SAST", "AssertTimestampMonotonic": "41049514", "Before": "multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2020-11-11 05:41:05 SAST", "ConditionTimestampMonotonic": "41049513", "ConflictedBy": "sshd.socket", "Conflicts": "shutdown.target", "ConsistsOf": "sshd-keygen.service", "ControlGroup": "/docker/e2df11d49194d019cbfe107bbd5c00ea2aa04c12ec887cd14be0d30e0b446c3f/system.slice/sshd.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "OpenSSH server daemon", "DevicePolicy": "auto", "Documentation": "man:sshd(8) man:sshd_config(5)", "EnvironmentFile": "/etc/sysconfig/sshd (ignore_errors=no)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "25", "ExecMainStartTimestamp": "Wed 2020-11-11 05:41:05 SAST", "ExecMainStartTimestampMonotonic": "41050552", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/sshd ; argv[]=/usr/sbin/sshd -D $OPTIONS ; ignore_errors=no ; start_time=[Wed 2020-11-11 05:41:05 SAST] ; stop_time=[n/a] ; pid=25 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/sshd.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "sshd.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Wed 2020-11-11 05:41:05 SAST", "InactiveExitTimestampMonotonic": "41050577", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "process", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "1048576", "LimitNPROC": "18446744073709551615", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "63485", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "25", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "sshd.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "main", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "basic.target system.slice", "Restart": "on-failure", "RestartUSec": "42s", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "notify", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "Wants": "sshd-keygen.service", "WatchdogTimestamp": "Wed 2020-11-11 05:41:05 SAST", "WatchdogTimestampMonotonic": "41081965", "WatchdogUSec": "0"}}
  321.  
  322. TASK [iptables : install iptables-services] ************************************
  323. task path: /opt/bahmni-installer/bahmni-playbooks/roles/iptables/tasks/main.yml:5
  324. ok: [localhost] => {"changed": false, "failed": false, "msg": "", "rc": 0, "results": ["All packages providing iptables-services are up to date", ""]}
  325.  
  326. TASK [iptables : Start iptables Service] ***************************************
  327. task path: /opt/bahmni-installer/bahmni-playbooks/roles/iptables/tasks/main.yml:10
  328. ok: [localhost] => {"changed": false, "enabled": true, "failed": false, "name": "iptables", "state": "started", "status": {"ActiveEnterTimestamp": "Wed 2020-11-11 05:41:05 SAST", "ActiveEnterTimestampMonotonic": "41082937", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "syslog.target basic.target systemd-journald.socket system.slice", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Wed 2020-11-11 05:41:05 SAST", "AssertTimestampMonotonic": "41046611", "Before": "network-pre.target ip6tables.service shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2020-11-11 05:41:05 SAST", "ConditionTimestampMonotonic": "41046611", "Conflicts": "shutdown.target", "ControlGroup": "/docker/e2df11d49194d019cbfe107bbd5c00ea2aa04c12ec887cd14be0d30e0b446c3f/system.slice/iptables.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "IPv4 firewall with iptables", "DevicePolicy": "auto", "Environment": "BOOTUP=serial CONSOLETYPE=serial", "ExecMainCode": "1", "ExecMainExitTimestamp": "Wed 2020-11-11 05:41:05 SAST", "ExecMainExitTimestampMonotonic": "41082815", "ExecMainPID": "20", "ExecMainStartTimestamp": "Wed 2020-11-11 05:41:05 SAST", "ExecMainStartTimestampMonotonic": "41047009", "ExecMainStatus": "0", "ExecReload": "{ path=/usr/libexec/iptables/iptables.init ; argv[]=/usr/libexec/iptables/iptables.init reload ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/libexec/iptables/iptables.init ; argv[]=/usr/libexec/iptables/iptables.init start ; ignore_errors=no ; start_time=[Wed 2020-11-11 05:41:05 SAST] ; stop_time=[Wed 2020-11-11 05:41:05 SAST] ; pid=20 ; code=exited ; status=0 }", "ExecStop": "{ path=/usr/libexec/iptables/iptables.init ; argv[]=/usr/libexec/iptables/iptables.init stop ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/iptables.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "iptables.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Wed 2020-11-11 05:41:05 SAST", "InactiveExitTimestampMonotonic": "41047037", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "1048576", "LimitNPROC": "18446744073709551615", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "63485", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "0", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "iptables.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "yes", "Requires": "basic.target system.slice", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "syslog", "StandardInput": "null", "StandardOutput": "syslog", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "exited", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "0", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "oneshot", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "WantedBy": "basic.target", "Wants": "network-pre.target", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}}
  329.  
  330. TASK [iptables : get iptables rules] *******************************************
  331. task path: /opt/bahmni-installer/bahmni-playbooks/roles/iptables/tasks/main.yml:13
  332. changed: [localhost] => {"changed": true, "cmd": "iptables -L", "delta": "0:00:00.484276", "end": "2020-11-11 11:07:01.391318", "failed": false, "rc": 0, "start": "2020-11-11 11:07:00.907042", "stderr": "", "stderr_lines": [], "stdout": "Chain INPUT (policy DROP)\ntarget prot opt source destination \nACCEPT tcp -- anywhere anywhere tcp dpt:https /* https */\nACCEPT tcp -- anywhere anywhere tcp dpt:http /* WEB SERVER */\nACCEPT tcp -- anywhere anywhere tcp dpt:mysql /* MYSQL */\nACCEPT tcp -- anywhere anywhere tcp dpt:senomix08 /* ATOMFEED_CONSOLE */\nACCEPT tcp -- anywhere anywhere tcp dpt:rocrail /* BAHMNIREPORTS */\nACCEPT tcp -- anywhere anywhere tcp dpt:8050 /* OPENMRS */\nACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED\nACCEPT icmp -- anywhere anywhere \nACCEPT all -- anywhere anywhere \nACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh\nREJECT all -- anywhere anywhere reject-with icmp-host-prohibited\nACCEPT all -- anywhere anywhere /* lo */\nACCEPT tcp -- anywhere anywhere tcp dpt:ssh /* SSH */\n\nChain FORWARD (policy DROP)\ntarget prot opt source destination \nREJECT all -- anywhere anywhere reject-with icmp-host-prohibited\n\nChain OUTPUT (policy ACCEPT)\ntarget prot opt source destination ", "stdout_lines": ["Chain INPUT (policy DROP)", "target prot opt source destination ", "ACCEPT tcp -- anywhere anywhere tcp dpt:https /* https */", "ACCEPT tcp -- anywhere anywhere tcp dpt:http /* WEB SERVER */", "ACCEPT tcp -- anywhere anywhere tcp dpt:mysql /* MYSQL */", "ACCEPT tcp -- anywhere anywhere tcp dpt:senomix08 /* ATOMFEED_CONSOLE */", "ACCEPT tcp -- anywhere anywhere tcp dpt:rocrail /* BAHMNIREPORTS */", "ACCEPT tcp -- anywhere anywhere tcp dpt:8050 /* OPENMRS */", "ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED", "ACCEPT icmp -- anywhere anywhere ", "ACCEPT all -- anywhere anywhere ", "ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh", "REJECT all -- anywhere anywhere reject-with icmp-host-prohibited", "ACCEPT all -- anywhere anywhere /* lo */", "ACCEPT tcp -- anywhere anywhere tcp dpt:ssh /* SSH */", "", "Chain FORWARD (policy DROP)", "target prot opt source destination ", "REJECT all -- anywhere anywhere reject-with icmp-host-prohibited", "", "Chain OUTPUT (policy ACCEPT)", "target prot opt source destination "]}
  333.  
  334. TASK [iptables : Allow Input ACCEPT] *******************************************
  335. task path: /opt/bahmni-installer/bahmni-playbooks/roles/iptables/tasks/main.yml:18
  336. changed: [localhost] => {"changed": true, "cmd": ["/sbin/iptables", "-P", "INPUT", "ACCEPT"], "delta": "0:00:00.467473", "end": "2020-11-11 11:07:01.990197", "failed": false, "rc": 0, "start": "2020-11-11 11:07:01.522724", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}
  337.  
  338. TASK [iptables : Allow localhost interface] ************************************
  339. task path: /opt/bahmni-installer/bahmni-playbooks/roles/iptables/tasks/main.yml:21
  340. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  341.  
  342. TASK [iptables : Allow Established] ********************************************
  343. task path: /opt/bahmni-installer/bahmni-playbooks/roles/iptables/tasks/main.yml:25
  344. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  345.  
  346. TASK [iptables : Allow SSH] ****************************************************
  347. task path: /opt/bahmni-installer/bahmni-playbooks/roles/iptables/tasks/main.yml:29
  348. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  349.  
  350. TASK [iptables : DROP ALL Incoming connections except those which are marked as ACCEPT] ***
  351. task path: /opt/bahmni-installer/bahmni-playbooks/roles/iptables/tasks/main.yml:33
  352. changed: [localhost] => {"changed": true, "cmd": ["/sbin/iptables", "-P", "INPUT", "DROP"], "delta": "0:00:00.478767", "end": "2020-11-11 11:07:02.658294", "failed": false, "rc": 0, "start": "2020-11-11 11:07:02.179527", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}
  353.  
  354. TASK [iptables : DROP all Forwards] ********************************************
  355. task path: /opt/bahmni-installer/bahmni-playbooks/roles/iptables/tasks/main.yml:36
  356. changed: [localhost] => {"changed": true, "cmd": ["/sbin/iptables", "-P", "FORWARD", "DROP"], "delta": "0:00:00.467070", "end": "2020-11-11 11:07:03.257432", "failed": false, "rc": 0, "start": "2020-11-11 11:07:02.790362", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}
  357.  
  358. TASK [iptables : Allow all output] *********************************************
  359. task path: /opt/bahmni-installer/bahmni-playbooks/roles/iptables/tasks/main.yml:39
  360. changed: [localhost] => {"changed": true, "cmd": ["/sbin/iptables", "-P", "OUTPUT", "ACCEPT"], "delta": "0:00:00.467824", "end": "2020-11-11 11:07:03.867167", "failed": false, "rc": 0, "start": "2020-11-11 11:07:03.399343", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}
  361.  
  362. TASK [iptables : Save the changes] *********************************************
  363. task path: /opt/bahmni-installer/bahmni-playbooks/roles/iptables/tasks/main.yml:42
  364. changed: [localhost] => {"changed": true, "cmd": ["/usr/libexec/iptables/iptables.init", "save"], "delta": "0:00:00.495986", "end": "2020-11-11 11:07:04.495597", "failed": false, "rc": 0, "start": "2020-11-11 11:07:03.999611", "stderr": "/usr/libexec/iptables/iptables.init: line 22: /etc/init.d/functions: No such file or directory\n/usr/libexec/iptables/iptables.init: line 295: success: command not found\n/usr/libexec/iptables/iptables.init: line 295: failure: command not found", "stderr_lines": ["/usr/libexec/iptables/iptables.init: line 22: /etc/init.d/functions: No such file or directory", "/usr/libexec/iptables/iptables.init: line 295: success: command not found", "/usr/libexec/iptables/iptables.init: line 295: failure: command not found"], "stdout": "iptables: Saving firewall rules to /etc/sysconfig/iptables: ", "stdout_lines": ["iptables: Saving firewall rules to /etc/sysconfig/iptables: "]}
  365. META: ran handlers
  366. META: ran handlers
  367. [WARNING]: Could not match supplied host pattern, ignoring: bahmni-emr-db-
  368. slave
  369.  
  370.  
  371. PLAY [bahmni-emr-db,bahmni-emr-db-slave] ***************************************
  372. META: ran handlers
  373.  
  374. TASK [installer-config : Fail if implementation name is not provided] **********
  375. task path: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml:1
  376. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  377.  
  378. TASK [installer-config : create /etc/bahmni-installer/ directory] **************
  379. task path: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml:7
  380. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  381.  
  382. TASK [installer-config : create /etc/bahmni-installer/deployment-artifacts directory] ***
  383. task path: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml:10
  384. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  385.  
  386. TASK [installer-config : create /etc/bahmni-installer/atomfeed-backup directory] ***
  387. task path: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml:13
  388. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  389.  
  390. TASK [installer-config : add bahmni configuration file] ************************
  391. task path: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml:16
  392. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  393.  
  394. TASK [installer-config : Creating Module directory] ****************************
  395. task path: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml:24
  396. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  397.  
  398. TASK [installer-config : Check Bahmni-installer version on command box] ********
  399. task path: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml:27
  400. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  401.  
  402. TASK [installer-config : Yum install Bahmni-installer] *************************
  403. task path: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml:31
  404. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  405.  
  406. TASK [installer-config : set installer_config_role_ran fact] *******************
  407. task path: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml:34
  408. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  409.  
  410. TASK [installer-config : Checking if backrest.conf exists] *********************
  411. task path: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/main.yml:4
  412. ok: [localhost] => {"changed": false, "failed": false, "stat": {"atime": 1605085488.345375, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "unknown", "checksum": "4a24861c191de65137659a2c19a6114283940e20", "ctime": 1604262043.1963196, "dev": 60, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 36315092, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "md5": "02c98e6ee51d8c618768bebdfd2b6678", "mimetype": "unknown", "mode": "0777", "mtime": 1604262043.1203167, "nlink": 1, "path": "/etc/bahmni-backrest.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 1433, "uid": 0, "version": null, "wgrp": true, "woth": true, "writeable": true, "wusr": true, "xgrp": true, "xoth": true, "xusr": true}}
  413.  
  414. TASK [installer-config : Creating bahmni-backrest.conf file] *******************
  415. task path: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/main.yml:8
  416. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  417.  
  418. TASK [installer-config : Creating backrest log directory] **********************
  419. task path: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/main.yml:17
  420. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  421.  
  422. TASK [installer-config : Creating pgbackrest repo directory] *******************
  423. task path: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/main.yml:25
  424. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  425.  
  426. TASK [installer-config : Editing bahmni-backrest.conf file] ********************
  427. task path: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/main.yml:33
  428. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  429.  
  430. TASK [mysql : add mysql 5.6 yum repo] ******************************************
  431. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/mysql56.yml:1
  432. [WARNING]: when statements should not include jinja2 templating delimiters
  433. such as {{ }} or {% %}. Found: {{ '5.6' in mysql_version }}
  434.  
  435. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  436.  
  437. TASK [mysql : Install python mysql for ansible] ********************************
  438. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/mysql56.yml:6
  439. [WARNING]: when statements should not include jinja2 templating delimiters
  440. such as {{ }} or {% %}. Found: {{ '5.6' in mysql_version }}
  441.  
  442. skipping: [localhost] => (item=[]) => {"changed": false, "item": [], "skip_reason": "Conditional result was False", "skipped": true}
  443.  
  444. TASK [mysql : Check if any version of mysql is present] ************************
  445. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/mysql56.yml:13
  446. [WARNING]: when statements should not include jinja2 templating delimiters
  447. such as {{ }} or {% %}. Found: {{ '5.6' in mysql_version }}
  448.  
  449. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  450.  
  451. TASK [mysql : Uninstall MySQL if 5.7.30 is absent] *****************************
  452. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/mysql56.yml:18
  453. [WARNING]: when statements should not include jinja2 templating delimiters
  454. such as {{ }} or {% %}. Found: {{ '5.6' in mysql_version }}
  455.  
  456. skipping: [localhost] => (item=[]) => {"changed": false, "item": [], "skip_reason": "Conditional result was False", "skipped": true}
  457.  
  458. TASK [mysql : Install mysql from mysql5.7.30 yum repository] *******************
  459. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/mysql56.yml:25
  460. [WARNING]: when statements should not include jinja2 templating delimiters
  461. such as {{ }} or {% %}. Found: {{ '5.6' in mysql_version }}
  462.  
  463. skipping: [localhost] => (item=[]) => {"changed": false, "item": [], "skip_reason": "Conditional result was False", "skipped": true}
  464.  
  465. TASK [mysql : Create /var/log/mysql directory to store binlogs if it does not exist] ***
  466. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/mysql56.yml:35
  467. [WARNING]: when statements should not include jinja2 templating delimiters
  468. such as {{ }} or {% %}. Found: {{ '5.6' in mysql_version }}
  469.  
  470. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  471.  
  472. TASK [mysql : Copy mysql config for mysql 5.6] *********************************
  473. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/mysql56.yml:38
  474. [WARNING]: when statements should not include jinja2 templating delimiters
  475. such as {{ }} or {% %}. Found: {{ '5.6' in mysql_version }}
  476.  
  477. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  478.  
  479. TASK [mysql : Stop Mysql Service] **********************************************
  480. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/mysql56.yml:46
  481. [WARNING]: when statements should not include jinja2 templating delimiters
  482. such as {{ }} or {% %}. Found: {{ '5.6' in mysql_version }}
  483.  
  484. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  485.  
  486. TASK [mysql : Start Mysql Service] *********************************************
  487. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/mysql56.yml:50
  488. [WARNING]: when statements should not include jinja2 templating delimiters
  489. such as {{ }} or {% %}. Found: {{ '5.6' in mysql_version }}
  490.  
  491. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  492.  
  493. TASK [mysql : Update mysql root password for mysql 5.6] ************************
  494. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/mysql56.yml:53
  495. [WARNING]: when statements should not include jinja2 templating delimiters
  496. such as {{ }} or {% %}. Found: {{ '5.6' in mysql_version }}
  497.  
  498. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  499.  
  500. TASK [mysql : Get matched IpTable rule] ****************************************
  501. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/mysql56.yml:63
  502. [WARNING]: when statements should not include jinja2 templating delimiters
  503. such as {{ }} or {% %}. Found: {{ '5.6' in mysql_version }}
  504.  
  505. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  506.  
  507. TASK [mysql : delete matching rule if exists] **********************************
  508. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/mysql56.yml:67
  509. [WARNING]: when statements should not include jinja2 templating delimiters
  510. such as {{ }} or {% %}. Found: {{ '5.6' in mysql_version }}
  511.  
  512. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  513.  
  514. TASK [mysql : Allow mysql port through firewall] *******************************
  515. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/mysql56.yml:71
  516. [WARNING]: when statements should not include jinja2 templating delimiters
  517. such as {{ }} or {% %}. Found: {{ '5.6' in mysql_version }}
  518.  
  519. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  520.  
  521. TASK [mysql : save iptables] ***************************************************
  522. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/mysql56.yml:74
  523. [WARNING]: when statements should not include jinja2 templating delimiters
  524. such as {{ }} or {% %}. Found: {{ '5.6' in mysql_version }}
  525.  
  526. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  527.  
  528. TASK [mysql : add mysql 5.7 yum repo] ******************************************
  529. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/mysql57.yml:1
  530. [WARNING]: when statements should not include jinja2 templating delimiters
  531. such as {{ }} or {% %}. Found: {{ '5.7' in mysql_version }}
  532.  
  533. ok: [localhost] => {"changed": false, "checksum": "eac70e38918d932f6c50c6db11f18f6a9e40de54", "dest": "/etc/yum.repos.d/mysql57.repo", "failed": false, "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/etc/yum.repos.d/mysql57.repo", "size": 189, "state": "file", "uid": 0}
  534.  
  535. TASK [mysql : Install python mysql for ansible] ********************************
  536. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/mysql57.yml:6
  537. [WARNING]: when statements should not include jinja2 templating delimiters
  538. such as {{ }} or {% %}. Found: {{ '5.7' in mysql_version }}
  539.  
  540. ok: [localhost] => (item=[u'mysql-community-common-5.7.30', u'mysql-community-libs-5.7.30', u'mysql-community-libs-compat-5.7.30', u'MySQL-python']) => {"changed": false, "failed": false, "item": ["mysql-community-common-5.7.30", "mysql-community-libs-5.7.30", "mysql-community-libs-compat-5.7.30", "MySQL-python"], "msg": "", "rc": 0, "results": ["mysql-community-common-5.7.30-1.el7.x86_64 providing mysql-community-common-5.7.30 is already installed", "mysql-community-libs-5.7.30-1.el7.x86_64 providing mysql-community-libs-5.7.30 is already installed", "mysql-community-libs-compat-5.7.30-1.el7.x86_64 providing mysql-community-libs-compat-5.7.30 is already installed", "MySQL-python-1.2.5-1.el7.x86_64 providing MySQL-python is already installed"]}
  541.  
  542. TASK [mysql : Check if any version of mysql is present] ************************
  543. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/mysql57.yml:14
  544. [WARNING]: when statements should not include jinja2 templating delimiters
  545. such as {{ }} or {% %}. Found: {{ '5.7' in mysql_version }}
  546.  
  547. changed: [localhost] => {"changed": true, "cmd": ["mysql", "--version"], "delta": "0:00:00.483847", "end": "2020-11-11 11:07:06.569065", "failed": false, "rc": 0, "start": "2020-11-11 11:07:06.085218", "stderr": "", "stderr_lines": [], "stdout": "mysql Ver 14.14 Distrib 5.7.30, for Linux (x86_64) using EditLine wrapper", "stdout_lines": ["mysql Ver 14.14 Distrib 5.7.30, for Linux (x86_64) using EditLine wrapper"]}
  548.  
  549. TASK [mysql : Uninstall MySQL if 5.7.30 is absent] *****************************
  550. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/mysql57.yml:19
  551. [WARNING]: when statements should not include jinja2 templating delimiters
  552. such as {{ }} or {% %}. Found: {{ '5.7' in mysql_version }}
  553.  
  554. [WARNING]: when statements should not include jinja2 templating delimiters
  555. such as {{ }} or {% %}. Found: mysqlVersion|success and
  556. mysqlVersion.stdout.find('{{mysql_version}}') == -1
  557.  
  558. skipping: [localhost] => (item=[]) => {"changed": false, "item": [], "skip_reason": "Conditional result was False", "skipped": true}
  559.  
  560. TASK [mysql : Install mysql from mysql5.7.30 yum repository] *******************
  561. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/mysql57.yml:26
  562. [WARNING]: when statements should not include jinja2 templating delimiters
  563. such as {{ }} or {% %}. Found: {{ '5.7' in mysql_version }}
  564.  
  565. [WARNING]: when statements should not include jinja2 templating delimiters
  566. such as {{ }} or {% %}. Found: mysqlVersion|failed or
  567. mysqlVersion.stdout.find('{{mysql_version}}') == -1
  568.  
  569. skipping: [localhost] => (item=[]) => {"changed": false, "item": [], "skip_reason": "Conditional result was False", "skipped": true}
  570.  
  571. TASK [mysql : Create /var/log/mysql directory to store binlogs if it does not exist] ***
  572. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/mysql57.yml:37
  573. [WARNING]: when statements should not include jinja2 templating delimiters
  574. such as {{ }} or {% %}. Found: {{ '5.7' in mysql_version }}
  575.  
  576. ok: [localhost] => {"changed": false, "failed": false, "gid": 27, "group": "mysql", "mode": "0755", "owner": "mysql", "path": "/var/log/mysql", "size": 4096, "state": "directory", "uid": 27}
  577.  
  578. TASK [mysql : Copy mysql config for mysql 5.7] *********************************
  579. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/mysql57.yml:40
  580. [WARNING]: when statements should not include jinja2 templating delimiters
  581. such as {{ }} or {% %}. Found: {{ '5.7' in mysql_version }}
  582.  
  583. ok: [localhost] => {"changed": false, "checksum": "369bf36c5dc320f74a23e098cc7653c5cfa16925", "dest": "/etc/my.cnf", "failed": false, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/etc/my.cnf", "size": 607, "state": "file", "uid": 0}
  584.  
  585. TASK [mysql : Stop Mysql Service] **********************************************
  586. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/mysql57.yml:48
  587. [WARNING]: when statements should not include jinja2 templating delimiters
  588. such as {{ }} or {% %}. Found: {{ '5.7' in mysql_version }}
  589.  
  590. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  591.  
  592. TASK [mysql : Start Mysql Service] *********************************************
  593. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/mysql57.yml:52
  594. [WARNING]: when statements should not include jinja2 templating delimiters
  595. such as {{ }} or {% %}. Found: {{ '5.7' in mysql_version }}
  596.  
  597. ok: [localhost] => {"changed": false, "enabled": true, "failed": false, "name": "mysqld", "state": "started", "status": {"ActiveEnterTimestamp": "Wed 2020-11-11 05:41:06 SAST", "ActiveEnterTimestampMonotonic": "41806108", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "syslog.target basic.target network.target system.slice systemd-journald.socket", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Wed 2020-11-11 05:41:05 SAST", "AssertTimestampMonotonic": "41048159", "Before": "multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2020-11-11 05:41:05 SAST", "ConditionTimestampMonotonic": "41048159", "Conflicts": "shutdown.target", "ControlGroup": "/docker/e2df11d49194d019cbfe107bbd5c00ea2aa04c12ec887cd14be0d30e0b446c3f/system.slice/mysqld.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "MySQL Server", "DevicePolicy": "auto", "Documentation": "man:mysqld(8) http://dev.mysql.com/doc/refman/en/using-systemd.html", "EnvironmentFile": "/etc/sysconfig/mysql (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "87", "ExecMainStartTimestamp": "Wed 2020-11-11 05:41:06 SAST", "ExecMainStartTimestampMonotonic": "41806044", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/mysqld ; argv[]=/usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid $MYSQLD_OPTS ; ignore_errors=no ; start_time=[Wed 2020-11-11 05:41:05 SAST] ; stop_time=[Wed 2020-11-11 05:41:06 SAST] ; pid=74 ; code=exited ; status=0 }", "ExecStartPre": "{ path=/usr/bin/mysqld_pre_systemd ; argv[]=/usr/bin/mysqld_pre_systemd ; ignore_errors=no ; start_time=[Wed 2020-11-11 05:41:05 SAST] ; stop_time=[Wed 2020-11-11 05:41:05 SAST] ; pid=23 ; code=exited ; status=0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/mysqld.service", "Group": "mysql", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "mysqld.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Wed 2020-11-11 05:41:05 SAST", "InactiveExitTimestampMonotonic": "41048647", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "5000", "LimitNPROC": "18446744073709551615", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "63485", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "87", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "mysqld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/var/run/mysqld/mysqld.pid", "PermissionsStartOnly": "yes", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "basic.target system.slice", "Restart": "on-failure", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "0", "TimeoutStopUSec": "0", "TimerSlackNSec": "50000", "Transient": "no", "Type": "forking", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "User": "mysql", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Wed 2020-11-11 05:41:06 SAST", "WatchdogTimestampMonotonic": "41806072", "WatchdogUSec": "0"}}
  598.  
  599. TASK [mysql : Retrieve the temp mysql root password] ***************************
  600. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/mysql57.yml:55
  601. [WARNING]: when statements should not include jinja2 templating delimiters
  602. such as {{ }} or {% %}. Found: {{ '5.7' in mysql_version }}
  603.  
  604. changed: [localhost] => {"changed": true, "cmd": "grep 'temporary password' /var/log/mysqld.log | awk '{print $11}'", "delta": "0:00:00.481322", "end": "2020-11-11 11:07:08.817153", "failed": false, "rc": 0, "start": "2020-11-11 11:07:08.335831", "stderr": "", "stderr_lines": [], "stdout": "8(iB9pa+2sB1", "stdout_lines": ["8(iB9pa+2sB1"]}
  605.  
  606. TASK [mysql : Update mysql root password with temp password] *******************
  607. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/mysql57.yml:60
  608. [WARNING]: when statements should not include jinja2 templating delimiters
  609. such as {{ }} or {% %}. Found: {{ '5.7' in mysql_version }}
  610.  
  611. fatal: [localhost]: FAILED! => {"changed": true, "cmd": "mysql -e \"SET PASSWORD = PASSWORD('P@ssw0rd'); FLUSH PRIVILEGES;\" --connect-expired-password -u root -i -p'8(iB9pa+2sB1'", "delta": "0:00:00.485010", "end": "2020-11-11 11:07:09.439026", "failed": true, "msg": "non-zero return code", "rc": 1, "start": "2020-11-11 11:07:08.954016", "stderr": "mysql: [Warning] Using a password on the command line interface can be insecure.\nERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)", "stderr_lines": ["mysql: [Warning] Using a password on the command line interface can be insecure.", "ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)"], "stdout": "", "stdout_lines": []}
  612. ...ignoring
  613.  
  614. TASK [mysql : Update mysql root password] **************************************
  615. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/mysql57.yml:66
  616. [WARNING]: when statements should not include jinja2 templating delimiters
  617. such as {{ }} or {% %}. Found: {{ '5.7' in mysql_version }}
  618.  
  619. changed: [localhost] => {"changed": true, "cmd": "mysql -e \"UPDATE mysql.user SET authentication_string=PASSWORD('P@ssw0rd') WHERE User='root'; FLUSH PRIVILEGES;\" -u root -i -p'P@ssw0rd'", "delta": "0:00:00.478446", "end": "2020-11-11 11:07:10.077239", "failed": false, "rc": 0, "start": "2020-11-11 11:07:09.598793", "stderr": "mysql: [Warning] Using a password on the command line interface can be insecure.", "stderr_lines": ["mysql: [Warning] Using a password on the command line interface can be insecure."], "stdout": "", "stdout_lines": []}
  620.  
  621. TASK [mysql : Upgrade Mysql] ***************************************************
  622. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/mysql57.yml:70
  623. [WARNING]: when statements should not include jinja2 templating delimiters
  624. such as {{ }} or {% %}. Found: {{ '5.7' in mysql_version }}
  625.  
  626. fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["mysql_upgrade", "-uroot", "-pP@ssw0rd"], "delta": "0:00:00.490316", "end": "2020-11-11 11:07:10.711896", "failed": true, "msg": "non-zero return code", "rc": 2, "start": "2020-11-11 11:07:10.221580", "stderr": "mysql_upgrade: [Warning] Using a password on the command line interface can be insecure.", "stderr_lines": ["mysql_upgrade: [Warning] Using a password on the command line interface can be insecure."], "stdout": "Checking if update is needed.\nThis installation of MySQL is already upgraded to 5.7.30, use --force if you still need to run mysql_upgrade", "stdout_lines": ["Checking if update is needed.", "This installation of MySQL is already upgraded to 5.7.30, use --force if you still need to run mysql_upgrade"]}
  627. ...ignoring
  628.  
  629. TASK [mysql : Restart Mysql Service] *******************************************
  630. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/mysql57.yml:74
  631. [WARNING]: when statements should not include jinja2 templating delimiters
  632. such as {{ }} or {% %}. Found: {{ '5.7' in mysql_version }}
  633.  
  634. changed: [localhost] => {"changed": true, "failed": false, "name": "mysqld", "state": "started", "status": {"ActiveEnterTimestamp": "Wed 2020-11-11 05:41:06 SAST", "ActiveEnterTimestampMonotonic": "41806108", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "syslog.target basic.target network.target system.slice systemd-journald.socket", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Wed 2020-11-11 05:41:05 SAST", "AssertTimestampMonotonic": "41048159", "Before": "multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2020-11-11 05:41:05 SAST", "ConditionTimestampMonotonic": "41048159", "Conflicts": "shutdown.target", "ControlGroup": "/docker/e2df11d49194d019cbfe107bbd5c00ea2aa04c12ec887cd14be0d30e0b446c3f/system.slice/mysqld.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "MySQL Server", "DevicePolicy": "auto", "Documentation": "man:mysqld(8) http://dev.mysql.com/doc/refman/en/using-systemd.html", "EnvironmentFile": "/etc/sysconfig/mysql (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "87", "ExecMainStartTimestamp": "Wed 2020-11-11 05:41:06 SAST", "ExecMainStartTimestampMonotonic": "41806044", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/mysqld ; argv[]=/usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid $MYSQLD_OPTS ; ignore_errors=no ; start_time=[Wed 2020-11-11 05:41:05 SAST] ; stop_time=[Wed 2020-11-11 05:41:06 SAST] ; pid=74 ; code=exited ; status=0 }", "ExecStartPre": "{ path=/usr/bin/mysqld_pre_systemd ; argv[]=/usr/bin/mysqld_pre_systemd ; ignore_errors=no ; start_time=[Wed 2020-11-11 05:41:05 SAST] ; stop_time=[Wed 2020-11-11 05:41:05 SAST] ; pid=23 ; code=exited ; status=0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/mysqld.service", "Group": "mysql", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "mysqld.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Wed 2020-11-11 05:41:05 SAST", "InactiveExitTimestampMonotonic": "41048647", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "5000", "LimitNPROC": "18446744073709551615", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "63485", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "87", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "mysqld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/var/run/mysqld/mysqld.pid", "PermissionsStartOnly": "yes", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "basic.target system.slice", "Restart": "on-failure", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "0", "TimeoutStopUSec": "0", "TimerSlackNSec": "50000", "Transient": "no", "Type": "forking", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "User": "mysql", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Wed 2020-11-11 05:41:06 SAST", "WatchdogTimestampMonotonic": "41806072", "WatchdogUSec": "0"}}
  635.  
  636. TASK [mysql : set mysql_role_ran fact] *****************************************
  637. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/mysql57.yml:77
  638. [WARNING]: when statements should not include jinja2 templating delimiters
  639. such as {{ }} or {% %}. Found: {{ '5.7' in mysql_version }}
  640.  
  641. ok: [localhost] => {"ansible_facts": {"mysql_role_ran": true}, "changed": false, "failed": false}
  642.  
  643. TASK [mysql : Get matched IpTable rule] ****************************************
  644. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/mysql57.yml:82
  645. [WARNING]: when statements should not include jinja2 templating delimiters
  646. such as {{ }} or {% %}. Found: {{ '5.7' in mysql_version }}
  647.  
  648. changed: [localhost] => {"changed": true, "cmd": "iptables -nL --line-numbers | grep MYSQL -m 1 | cut -c 1-2", "delta": "0:00:00.469239", "end": "2020-11-11 11:07:16.523687", "failed": false, "rc": 0, "start": "2020-11-11 11:07:16.054448", "stderr": "", "stderr_lines": [], "stdout": "3 ", "stdout_lines": ["3 "]}
  649.  
  650. TASK [mysql : delete matching rule if exists] **********************************
  651. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/mysql57.yml:86
  652. [WARNING]: when statements should not include jinja2 templating delimiters
  653. such as {{ }} or {% %}. Found: {{ '5.7' in mysql_version }}
  654.  
  655. changed: [localhost] => {"changed": true, "cmd": "iptables -D INPUT 3 ", "delta": "0:00:00.465295", "end": "2020-11-11 11:07:17.129389", "failed": false, "rc": 0, "start": "2020-11-11 11:07:16.664094", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}
  656.  
  657. TASK [mysql : Allow mysql port through firewall] *******************************
  658. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/mysql57.yml:90
  659. [WARNING]: when statements should not include jinja2 templating delimiters
  660. such as {{ }} or {% %}. Found: {{ '5.7' in mysql_version }}
  661.  
  662. changed: [localhost] => {"changed": true, "cmd": ["/sbin/iptables", "-I", "INPUT", "1", "-p", "tcp", "--dport", "3306", "-j", "ACCEPT", "-m", "comment", "--comment", "MYSQL"], "delta": "0:00:00.468119", "end": "2020-11-11 11:07:17.738022", "failed": false, "rc": 0, "start": "2020-11-11 11:07:17.269903", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}
  663.  
  664. TASK [mysql : save iptables] ***************************************************
  665. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/mysql57.yml:93
  666. [WARNING]: when statements should not include jinja2 templating delimiters
  667. such as {{ }} or {% %}. Found: {{ '5.7' in mysql_version }}
  668.  
  669. changed: [localhost] => {"changed": true, "cmd": ["/usr/libexec/iptables/iptables.init", "save"], "delta": "0:00:00.485201", "end": "2020-11-11 11:07:18.364681", "failed": false, "rc": 0, "start": "2020-11-11 11:07:17.879480", "stderr": "/usr/libexec/iptables/iptables.init: line 22: /etc/init.d/functions: No such file or directory\n/usr/libexec/iptables/iptables.init: line 295: success: command not found\n/usr/libexec/iptables/iptables.init: line 295: failure: command not found", "stderr_lines": ["/usr/libexec/iptables/iptables.init: line 22: /etc/init.d/functions: No such file or directory", "/usr/libexec/iptables/iptables.init: line 295: success: command not found", "/usr/libexec/iptables/iptables.init: line 295: failure: command not found"], "stdout": "iptables: Saving firewall rules to /etc/sysconfig/iptables: ", "stdout_lines": ["iptables: Saving firewall rules to /etc/sysconfig/iptables: "]}
  670. META: ran handlers
  671. META: ran handlers
  672.  
  673. PLAY [bahmni-emr-db] ***********************************************************
  674. META: ran handlers
  675.  
  676. TASK [mysql-users : ensure anonymous users are not in the database] ************
  677. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql-users/tasks/main.yml:1
  678. ok: [localhost] => {"changed": false, "failed": false, "user": ""}
  679.  
  680. TASK [mysql-users : Create and grant privileges to db user on localhost] *******
  681. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql-users/tasks/main.yml:8
  682. ok: [localhost] => {"changed": false, "failed": false, "user": "openmrs-user"}
  683.  
  684. TASK [mysql-users : Create and grant privileges to db user from app server] ****
  685. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql-users/tasks/main.yml:18
  686. ok: [localhost] => (item=localhost) => {"changed": false, "failed": false, "item": "localhost", "user": "openmrs-user"}
  687.  
  688. TASK [mysql-users : Create and grant privileges to root user from app server] ***
  689. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql-users/tasks/main.yml:29
  690. ok: [localhost] => (item=localhost) => {"changed": false, "failed": false, "item": "localhost", "user": "root"}
  691.  
  692. TASK [mysql-users : ensure anonymous users are not in the database] ************
  693. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql-users/tasks/main.yml:1
  694. ok: [localhost] => {"changed": false, "failed": false, "user": ""}
  695.  
  696. TASK [mysql-users : Create and grant privileges to db user on localhost] *******
  697. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql-users/tasks/main.yml:8
  698. ok: [localhost] => {"changed": false, "failed": false, "user": "openmrs-user"}
  699.  
  700. TASK [mysql-users : Create and grant privileges to db user from app server] ****
  701. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql-users/tasks/main.yml:18
  702. ok: [localhost] => (item=localhost) => {"changed": false, "failed": false, "item": "localhost", "user": "openmrs-user"}
  703.  
  704. TASK [mysql-users : Create and grant privileges to root user from app server] ***
  705. task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql-users/tasks/main.yml:29
  706. skipping: [localhost] => (item=localhost) => {"changed": false, "item": "localhost", "skip_reason": "Conditional result was False", "skipped": true}
  707. META: ran handlers
  708. META: ran handlers
  709.  
  710. PLAY [bahmni-emr] **************************************************************
  711. META: ran handlers
  712.  
  713. TASK [httpd : Install Apache server from yum repository] ***********************
  714. task path: /opt/bahmni-installer/bahmni-playbooks/roles/httpd/tasks/main.yml:1
  715. ok: [localhost] => (item=[u'httpd', u'mod_ssl', u'mod_wsgi']) => {"changed": false, "failed": false, "item": ["httpd", "mod_ssl", "mod_wsgi"], "msg": "", "rc": 0, "results": ["httpd-2.4.6-93.el7.centos.x86_64 providing httpd is already installed", "1:mod_ssl-2.4.6-93.el7.centos.x86_64 providing mod_ssl is already installed", "mod_wsgi-3.4-18.el7.x86_64 providing mod_wsgi is already installed"]}
  716.  
  717. TASK [httpd : Get matched IpTable rule] ****************************************
  718. task path: /opt/bahmni-installer/bahmni-playbooks/roles/httpd/tasks/main.yml:10
  719. changed: [localhost] => {"changed": true, "cmd": "iptables -nL --line-numbers | grep \"WEB SERVER\" -m 1 | cut -c 1-2", "delta": "0:00:00.485059", "end": "2020-11-11 11:07:20.594391", "failed": false, "rc": 0, "start": "2020-11-11 11:07:20.109332", "stderr": "", "stderr_lines": [], "stdout": "3 ", "stdout_lines": ["3 "]}
  720.  
  721. TASK [httpd : delete matching rule if exists] **********************************
  722. task path: /opt/bahmni-installer/bahmni-playbooks/roles/httpd/tasks/main.yml:14
  723. changed: [localhost] => {"changed": true, "cmd": "iptables -D INPUT 3 ", "delta": "0:00:00.465154", "end": "2020-11-11 11:07:21.197273", "failed": false, "rc": 0, "start": "2020-11-11 11:07:20.732119", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}
  724.  
  725. TASK [httpd : Allow port 80 through firewall] **********************************
  726. task path: /opt/bahmni-installer/bahmni-playbooks/roles/httpd/tasks/main.yml:18
  727. changed: [localhost] => {"changed": true, "cmd": ["/sbin/iptables", "-I", "INPUT", "1", "-p", "tcp", "--dport", "80", "-j", "ACCEPT", "-m", "comment", "--comment", "WEB SERVER"], "delta": "0:00:00.472196", "end": "2020-11-11 11:07:21.803238", "failed": false, "rc": 0, "start": "2020-11-11 11:07:21.331042", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}
  728.  
  729. TASK [httpd : save iptables] ***************************************************
  730. task path: /opt/bahmni-installer/bahmni-playbooks/roles/httpd/tasks/main.yml:21
  731. changed: [localhost] => {"changed": true, "cmd": ["/usr/libexec/iptables/iptables.init", "save"], "delta": "0:00:00.481967", "end": "2020-11-11 11:07:22.419340", "failed": false, "rc": 0, "start": "2020-11-11 11:07:21.937373", "stderr": "/usr/libexec/iptables/iptables.init: line 22: /etc/init.d/functions: No such file or directory\n/usr/libexec/iptables/iptables.init: line 295: success: command not found\n/usr/libexec/iptables/iptables.init: line 295: failure: command not found", "stderr_lines": ["/usr/libexec/iptables/iptables.init: line 22: /etc/init.d/functions: No such file or directory", "/usr/libexec/iptables/iptables.init: line 295: success: command not found", "/usr/libexec/iptables/iptables.init: line 295: failure: command not found"], "stdout": "iptables: Saving firewall rules to /etc/sysconfig/iptables: ", "stdout_lines": ["iptables: Saving firewall rules to /etc/sysconfig/iptables: "]}
  732.  
  733. TASK [httpd : Get matched IpTable rule] ****************************************
  734. task path: /opt/bahmni-installer/bahmni-playbooks/roles/httpd/tasks/main.yml:24
  735. changed: [localhost] => {"changed": true, "cmd": "iptables -nL --line-numbers | grep https -m 1 | cut -c 1-2", "delta": "0:00:00.480543", "end": "2020-11-11 11:07:23.027590", "failed": false, "rc": 0, "start": "2020-11-11 11:07:22.547047", "stderr": "", "stderr_lines": [], "stdout": "3 ", "stdout_lines": ["3 "]}
  736.  
  737. TASK [httpd : delete matching rule if exists] **********************************
  738. task path: /opt/bahmni-installer/bahmni-playbooks/roles/httpd/tasks/main.yml:28
  739. changed: [localhost] => {"changed": true, "cmd": "iptables -D INPUT 3 ", "delta": "0:00:00.473792", "end": "2020-11-11 11:07:23.642462", "failed": false, "rc": 0, "start": "2020-11-11 11:07:23.168670", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}
  740.  
  741. TASK [httpd : Allow port 443 through firewall] *********************************
  742. task path: /opt/bahmni-installer/bahmni-playbooks/roles/httpd/tasks/main.yml:32
  743. changed: [localhost] => {"changed": true, "cmd": ["/sbin/iptables", "-I", "INPUT", "1", "-p", "tcp", "--dport", "443", "-j", "ACCEPT", "-m", "comment", "--comment", "https"], "delta": "0:00:00.468330", "end": "2020-11-11 11:07:24.244593", "failed": false, "rc": 0, "start": "2020-11-11 11:07:23.776263", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}
  744.  
  745. TASK [httpd : save iptables] ***************************************************
  746. task path: /opt/bahmni-installer/bahmni-playbooks/roles/httpd/tasks/main.yml:35
  747. changed: [localhost] => {"changed": true, "cmd": ["/usr/libexec/iptables/iptables.init", "save"], "delta": "0:00:00.491268", "end": "2020-11-11 11:07:24.873407", "failed": false, "rc": 0, "start": "2020-11-11 11:07:24.382139", "stderr": "/usr/libexec/iptables/iptables.init: line 22: /etc/init.d/functions: No such file or directory\n/usr/libexec/iptables/iptables.init: line 295: success: command not found\n/usr/libexec/iptables/iptables.init: line 295: failure: command not found", "stderr_lines": ["/usr/libexec/iptables/iptables.init: line 22: /etc/init.d/functions: No such file or directory", "/usr/libexec/iptables/iptables.init: line 295: success: command not found", "/usr/libexec/iptables/iptables.init: line 295: failure: command not found"], "stdout": "iptables: Saving firewall rules to /etc/sysconfig/iptables: ", "stdout_lines": ["iptables: Saving firewall rules to /etc/sysconfig/iptables: "]}
  748.  
  749. TASK [httpd : create bahmni-certs directory] ***********************************
  750. task path: /opt/bahmni-installer/bahmni-playbooks/roles/httpd/tasks/main.yml:40
  751. ok: [localhost] => {"changed": false, "failed": false, "gid": 1000, "group": "bahmni", "mode": "0755", "owner": "bahmni", "path": "/etc/bahmni-certs", "size": 4096, "state": "directory", "uid": 1000}
  752.  
  753. TASK [httpd : check if certificate already points to letsencrypt] **************
  754. task path: /opt/bahmni-installer/bahmni-playbooks/roles/httpd/tasks/main.yml:43
  755. ok: [localhost] => {"changed": false, "failed": false, "stat": {"atime": 1605066065.6111088, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "unknown", "ctime": 1604263626.3514621, "dev": 60, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 40242634, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/etc/pki/tls/certs/localhost.crt", "lnk_target": "/etc/pki/tls/certs/localhost.crt", "mimetype": "unknown", "mode": "0777", "mtime": 1604263626.3514621, "nlink": 1, "path": "/etc/bahmni-certs/cert.crt", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 32, "uid": 0, "version": null, "wgrp": true, "woth": true, "writeable": true, "wusr": true, "xgrp": true, "xoth": true, "xusr": true}}
  756.  
  757. TASK [httpd : link local certificate and domain key] ***************************
  758. task path: /opt/bahmni-installer/bahmni-playbooks/roles/httpd/tasks/main.yml:47
  759. skipping: [localhost] => (item={u'dest': u'/etc/bahmni-certs/cert.crt', u'src': u'/etc/pki/tls/certs/localhost.crt'}) => {"changed": false, "item": {"dest": "/etc/bahmni-certs/cert.crt", "src": "/etc/pki/tls/certs/localhost.crt"}, "skip_reason": "Conditional result was False", "skipped": true}
  760. skipping: [localhost] => (item={u'dest': u'/etc/bahmni-certs/chained.pem', u'src': u'/etc/pki/tls/certs/localhost.crt'}) => {"changed": false, "item": {"dest": "/etc/bahmni-certs/chained.pem", "src": "/etc/pki/tls/certs/localhost.crt"}, "skip_reason": "Conditional result was False", "skipped": true}
  761. skipping: [localhost] => (item={u'dest': u'/etc/bahmni-certs/domain.key', u'src': u'/etc/pki/tls/private/localhost.key'}) => {"changed": false, "item": {"dest": "/etc/bahmni-certs/domain.key", "src": "/etc/pki/tls/private/localhost.key"}, "skip_reason": "Conditional result was False", "skipped": true}
  762.  
  763. TASK [httpd : Switch off chkconfig for httpd on passive] ***********************
  764. task path: /opt/bahmni-installer/bahmni-playbooks/roles/httpd/tasks/main.yml:55
  765. skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}
  766.  
  767. TASK [httpd : Stop httpd] ******************************************************
  768. task path: /opt/bahmni-installer/bahmni-playbooks/roles/httpd/tasks/main.yml:59
  769. changed: [localhost] => {"changed": true, "failed": false, "name": "httpd", "state": "stopped", "status": {"ActiveEnterTimestamp": "Wed 2020-11-11 05:41:05 SAST", "ActiveEnterTimestampMonotonic": "41239297", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "tmp.mount -.mount system.slice nss-lookup.target remote-fs.target systemd-journald.socket network.target basic.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Wed 2020-11-11 05:41:05 SAST", "AssertTimestampMonotonic": "41047083", "Before": "multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2020-11-11 05:41:05 SAST", "ConditionTimestampMonotonic": "41047083", "Conflicts": "shutdown.target", "ControlGroup": "/docker/e2df11d49194d019cbfe107bbd5c00ea2aa04c12ec887cd14be0d30e0b446c3f/system.slice/httpd.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "The Apache HTTP Server", "DevicePolicy": "auto", "Documentation": "man:httpd(8) man:apachectl(8)", "EnvironmentFile": "/etc/sysconfig/httpd (ignore_errors=no)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "21", "ExecMainStartTimestamp": "Wed 2020-11-11 05:41:05 SAST", "ExecMainStartTimestampMonotonic": "41047644", "ExecMainStatus": "0", "ExecReload": "{ path=/usr/sbin/httpd ; argv[]=/usr/sbin/httpd $OPTIONS -k graceful ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/httpd ; argv[]=/usr/sbin/httpd $OPTIONS -DFOREGROUND ; ignore_errors=no ; start_time=[Wed 2020-11-11 05:41:05 SAST] ; stop_time=[n/a] ; pid=21 ; code=(null) ; status=0/0 }", "ExecStop": "{ path=/bin/kill ; argv[]=/bin/kill -WINCH ${MAINPID} ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/httpd.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "httpd.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Wed 2020-11-11 05:41:05 SAST", "InactiveExitTimestampMonotonic": "41047671", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "control-group", "KillSignal": "18", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "1048576", "LimitNPROC": "18446744073709551615", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "63485", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "21", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "httpd.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "main", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "yes", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "basic.target system.slice", "RequiresMountsFor": "/var/tmp", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StatusText": "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec", "StopWhenUnneeded": "no", "SubState": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "notify", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Wed 2020-11-11 05:41:05 SAST", "WatchdogTimestampMonotonic": "41239267", "WatchdogUSec": "0"}}
  770.  
  771. TASK [httpd : Start httpd] *****************************************************
  772. task path: /opt/bahmni-installer/bahmni-playbooks/roles/httpd/tasks/main.yml:65
  773. changed: [localhost] => {"changed": true, "enabled": true, "failed": false, "name": "httpd", "state": "started", "status": {"ActiveEnterTimestamp": "Wed 2020-11-11 05:41:05 SAST", "ActiveEnterTimestampMonotonic": "41239297", "ActiveExitTimestamp": "Wed 2020-11-11 11:07:26 SAST", "ActiveExitTimestampMonotonic": "19621538401", "ActiveState": "inactive", "After": "tmp.mount -.mount system.slice nss-lookup.target remote-fs.target systemd-journald.socket network.target basic.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Wed 2020-11-11 05:41:05 SAST", "AssertTimestampMonotonic": "41047083", "Before": "multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2020-11-11 05:41:05 SAST", "ConditionTimestampMonotonic": "41047083", "Conflicts": "shutdown.target", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "The Apache HTTP Server", "DevicePolicy": "auto", "Documentation": "man:httpd(8) man:apachectl(8)", "EnvironmentFile": "/etc/sysconfig/httpd (ignore_errors=no)", "ExecMainCode": "1", "ExecMainExitTimestamp": "Wed 2020-11-11 11:07:27 SAST", "ExecMainExitTimestampMonotonic": "19622555643", "ExecMainPID": "21", "ExecMainStartTimestamp": "Wed 2020-11-11 05:41:05 SAST", "ExecMainStartTimestampMonotonic": "41047644", "ExecMainStatus": "0", "ExecReload": "{ path=/usr/sbin/httpd ; argv[]=/usr/sbin/httpd $OPTIONS -k graceful ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/httpd ; argv[]=/usr/sbin/httpd $OPTIONS -DFOREGROUND ; ignore_errors=no ; start_time=[Wed 2020-11-11 05:41:05 SAST] ; stop_time=[Wed 2020-11-11 11:07:27 SAST] ; pid=21 ; code=exited ; status=0 }", "ExecStop": "{ path=/bin/kill ; argv[]=/bin/kill -WINCH ${MAINPID} ; ignore_errors=no ; start_time=[Wed 2020-11-11 11:07:26 SAST] ; stop_time=[Wed 2020-11-11 11:07:26 SAST] ; pid=2719 ; code=exited ; status=0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/httpd.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "httpd.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Wed 2020-11-11 11:07:27 SAST", "InactiveEnterTimestampMonotonic": "19622555927", "InactiveExitTimestamp": "Wed 2020-11-11 05:41:05 SAST", "InactiveExitTimestampMonotonic": "41047671", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "control-group", "KillSignal": "18", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "1048576", "LimitNPROC": "18446744073709551615", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "63485", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "0", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "httpd.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "main", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "yes", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "basic.target system.slice", "RequiresMountsFor": "/var/tmp", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StatusText": "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec", "StopWhenUnneeded": "no", "SubState": "dead", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "notify", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}}
  774.  
  775. TASK [httpd : Add landing page html file] **************************************
  776. task path: /opt/bahmni-installer/bahmni-playbooks/roles/httpd/tasks/main.yml:71
  777. fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute 'ansible_default_ipv4'"}
  778. to retry, use: --limit @/opt/bahmni-installer/bahmni-playbooks/all.retry
  779.  
  780. PLAY RECAP *********************************************************************
  781. localhost : ok=82 changed=32 unreachable=0 failed=1
  782.  
  783. Traceback (most recent call last):
  784. File "/usr/bin/bahmni", line 9, in <module>
  785. load_entry_point('bahmni==0.1', 'console_scripts', 'bahmni')()
  786. File "/usr/lib/python2.7/site-packages/click-7.1.2-py2.7.egg/click/core.py", line 829, in __call__
  787. return self.main(*args, **kwargs)
  788. File "/usr/lib/python2.7/site-packages/click-7.1.2-py2.7.egg/click/core.py", line 782, in main
  789. rv = self.invoke(ctx)
  790. File "/usr/lib/python2.7/site-packages/click-7.1.2-py2.7.egg/click/core.py", line 1259, in invoke
  791. return _process_result(sub_ctx.command.invoke(sub_ctx))
  792. File "/usr/lib/python2.7/site-packages/click-7.1.2-py2.7.egg/click/core.py", line 1066, in invoke
  793. return ctx.invoke(self.callback, **ctx.params)
  794. File "/usr/lib/python2.7/site-packages/click-7.1.2-py2.7.egg/click/core.py", line 610, in invoke
  795. return callback(*args, **kwargs)
  796. File "/usr/lib/python2.7/site-packages/click-7.1.2-py2.7.egg/click/decorators.py", line 21, in new_func
  797. return f(get_current_context(), *args, **kwargs)
  798. File "/usr/lib/python2.7/site-packages/bahmni-0.1-py2.7.egg/bahmni.py", line 90, in install
  799. File "/usr/lib64/python2.7/subprocess.py", line 542, in check_call
  800. raise CalledProcessError(retcode, cmd)
  801. subprocess.CalledProcessError: Command 'ansible-playbook -i /etc/bahmni-installer/local all.yml -vv --extra-vars '@/etc/bahmni-installer/rpm_versions.yml' --extra-vars '@/etc/bahmni-backrest.conf' --extra-vars '@/etc/bahmni-installer/setup.yml'' returned non-zero exit status 2
  802.  
RAW Paste Data Copied