ansible-playbook -i /etc/bahmni-installer/local all.yml -vv --extra-vars '@/etc/bahmni-installer/rpm_versions.yml' --extra-vars '@/etc/bahmni-installer/setup.yml' Using /opt/bahmni-installer/bahmni-playbooks/ansible.cfg as config file statically included: /opt/bahmni-installer/bahmni-playbooks/roles/oracle-java/tasks/oracle-java.yml statically included: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml statically included: /opt/bahmni-installer/bahmni-playbooks/roles/selinux/tasks/enforcing_policies.yml statically included: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml statically included: /opt/bahmni-installer/bahmni-playbooks/roles/oracle-java/tasks/oracle-java.yml statically included: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml statically included: /opt/bahmni-installer/bahmni-playbooks/roles/implementation-config/tasks/implementation-config.yml statically included: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml statically included: /opt/bahmni-installer/bahmni-playbooks/roles/oracle-java/tasks/oracle-java.yml statically included: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml statically included: /opt/bahmni-installer/bahmni-playbooks/roles/oracle-java/tasks/oracle-java.yml statically included: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml statically included: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml statically included: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml statically included: /opt/bahmni-installer/bahmni-playbooks/roles/oracle-java/tasks/oracle-java.yml statically included: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml statically included: /opt/bahmni-installer/bahmni-playbooks/roles/oracle-java/tasks/oracle-java.yml statically included: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml statically included: /opt/bahmni-installer/bahmni-playbooks/roles/dcm4chee-oracle-java/tasks/dcm4chee-oracle-java.yml statically included: /opt/bahmni-installer/bahmni-playbooks/roles/oracle-java/tasks/oracle-java.yml statically included: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml statically included: /opt/bahmni-installer/bahmni-playbooks/roles/nagios/tasks/nagios.yml statically included: /opt/bahmni-installer/bahmni-playbooks/roles/nagios/tasks/email.yml PLAYBOOK: all.yml ************************************************************** 24 plays in all.yml PLAY [bahmni-emr] ************************************************************** TASK [setup] ******************************************************************* ok: [localhost] TASK [httpd-maintenance : Check if /var/www/html folder exists] **************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/httpd-maintenance/tasks/main.yml:1 ok: [localhost] => {"changed": false, "stat": {"atime": 1483974942.846498, "ctime": 1483974591.0423551, "dev": 64768, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 261675, "isblk": false, "ischr": false, "isdir": true, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mode": "0755", "mtime": 1483974591.0423551, "nlink": 2, "path": "/var/www/html", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 4096, "uid": 0, "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": true, "xoth": true, "xusr": true}} TASK [httpd-maintenance : Add maintenace page to /var/www/html] **************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/httpd-maintenance/tasks/main.yml:5 ok: [localhost] => (item=maintenance.html) => {"changed": false, "checksum": "a74f2e45a736a90301ac54272054d75423030c8c", "dest": "/var/www/html/./maintenance.html", "gid": 0, "group": "root", "item": "maintenance.html", "mode": "0644", "owner": "root", "path": "/var/www/html/./maintenance.html", "size": 1031, "state": "file", "uid": 0} ok: [localhost] => (item=maintenance.enable) => {"changed": false, "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "dest": "/var/www/html/./maintenance.enable", "gid": 0, "group": "root", "item": "maintenance.enable", "mode": "0644", "owner": "root", "path": "/var/www/html/./maintenance.enable", "size": 0, "state": "file", "uid": 0} ok: [localhost] => (item=src.jpg) => {"changed": false, "checksum": "f779cc9ea903c09292dc0670ed3823d9032dbf52", "dest": "/var/www/html/./src.jpg", "gid": 0, "group": "root", "item": "src.jpg", "mode": "0644", "owner": "root", "path": "/var/www/html/./src.jpg", "size": 262165, "state": "file", "uid": 0} ok: [localhost] => (item=bahmni-logo.png) => {"changed": false, "checksum": "14bf24df3b2b37d1780b29b11368270e52456afc", "dest": "/var/www/html/./bahmni-logo.png", "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} TASK [httpd-maintenance : Remove maintenace enable page from /var/www/html] **** task path: /opt/bahmni-installer/bahmni-playbooks/roles/httpd-maintenance/tasks/main.yml:17 skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true} TASK [httpd-maintenance : reload_httpd_service] ******************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/httpd-maintenance/tasks/main.yml:23 skipping: [localhost] => (item=localhost) => {"changed": false, "item": "localhost", "skip_reason": "Conditional check failed", "skipped": true} PLAY [all] ********************************************************************* TASK [selinux : install libselinux-python] ************************************* task path: /opt/bahmni-installer/bahmni-playbooks/roles/selinux/tasks/main.yml:1 ok: [localhost] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.0.94-7.el6.x86_64 providing libselinux-python is already installed"]} TASK [selinux : install libsemanage-python] ************************************ task path: /opt/bahmni-installer/bahmni-playbooks/roles/selinux/tasks/main.yml:4 ok: [localhost] => {"changed": false, "msg": "", "rc": 0, "results": ["libsemanage-python-2.0.43-5.1.el6.x86_64 providing libsemanage-python is already installed"]} TASK [selinux : Get selinux status] ******************************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/selinux/tasks/main.yml:7 changed: [localhost] => {"changed": true, "cmd": ["getenforce"], "delta": "0:00:00.003190", "end": "2017-01-10 15:04:01.377065", "rc": 0, "start": "2017-01-10 15:04:01.373875", "stderr": "", "stdout": "Disabled", "stdout_lines": ["Disabled"], "warnings": []} TASK [selinux : set selinux state and policy] ********************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/selinux/tasks/main.yml:11 ok: [localhost] => {"changed": false, "configfile": "/etc/selinux/config", "msg": "", "policy": "targeted", "state": "disabled"} TASK [selinux : Give a message to reboot machine on changing from disabled to enabled] *** task path: /opt/bahmni-installer/bahmni-playbooks/roles/selinux/tasks/enforcing_policies.yml:1 skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true} TASK [selinux : Install policycoreutils-python] ******************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/selinux/tasks/enforcing_policies.yml:5 skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true} TASK [selinux : set httpd_can_network_relay for SELinux] *********************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/selinux/tasks/enforcing_policies.yml:8 skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true} TASK [selinux : set httpd_read_user_content for SELinux] *********************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/selinux/tasks/enforcing_policies.yml:14 skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true} TASK [selinux : set httpd_can_network_connect for SELinux] ********************* task path: /opt/bahmni-installer/bahmni-playbooks/roles/selinux/tasks/enforcing_policies.yml:20 skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true} TASK [selinux : set httpd_enable_cgi for SELinux] ****************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/selinux/tasks/enforcing_policies.yml:26 skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true} TASK [selinux : Copy bahmni_http_home_dir selinux policy] ********************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/selinux/tasks/enforcing_policies.yml:32 skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true} TASK [selinux : Compile module] ************************************************ task path: /opt/bahmni-installer/bahmni-playbooks/roles/selinux/tasks/enforcing_policies.yml:35 skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true} TASK [selinux : Package selinux policy] **************************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/selinux/tasks/enforcing_policies.yml:38 skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true} TASK [selinux : Install bahmni_http_home_dir selinux policy] ******************* task path: /opt/bahmni-installer/bahmni-playbooks/roles/selinux/tasks/enforcing_policies.yml:41 skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true} TASK [selinux : Setpermissive for httpd_t] ************************************* task path: /opt/bahmni-installer/bahmni-playbooks/roles/selinux/tasks/enforcing_policies.yml:44 skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true} TASK [selinux : Clean up policy files created in /tmp] ************************* task path: /opt/bahmni-installer/bahmni-playbooks/roles/selinux/tasks/enforcing_policies.yml:47 skipping: [localhost] => (item=/tmp/bahmni_httpd_home_dir.mod) => {"changed": false, "item": "/tmp/bahmni_httpd_home_dir.mod", "skip_reason": "Conditional check failed", "skipped": true} skipping: [localhost] => (item=/tmp/bahmni_httpd_home_dir.te) => {"changed": false, "item": "/tmp/bahmni_httpd_home_dir.te", "skip_reason": "Conditional check failed", "skipped": true} skipping: [localhost] => (item=/tmp/bahmni_httpd_home_dir.pp) => {"changed": false, "item": "/tmp/bahmni_httpd_home_dir.pp", "skip_reason": "Conditional check failed", "skipped": true} TASK [bahmni-base : Install libselinux-python] ********************************* task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-base/tasks/main.yml:2 ok: [localhost] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.0.94-7.el6.x86_64 providing libselinux-python is already installed"]} TASK [bahmni-base : add bahmni yum repo] *************************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-base/tasks/main.yml:5 ok: [localhost] => {"changed": false, "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/etc/yum.repos.d/bahmni.repo", "size": 116, "state": "file", "uid": 0} TASK [bahmni-base : Install EPEL repo.] **************************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-base/tasks/main.yml:8 ok: [localhost] => {"changed": false, "msg": "", "rc": 0, "results": ["epel-release-6-8.noarch providing epel-release is already installed"]} TASK [bahmni-base : Import EPEL GPG key.] ************************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-base/tasks/main.yml:13 ok: [localhost] => {"changed": false} TASK [bahmni-base : Install ntp] *********************************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-base/tasks/main.yml:18 ok: [localhost] => {"changed": false, "msg": "", "rc": 0, "results": ["ntp-4.2.6p5-10.el6.centos.x86_64 providing ntp is already installed"]} TASK [bahmni-base : Fail if timezone is not provided] ************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-base/tasks/main.yml:22 skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true} TASK [bahmni-base : Check if timezone exists] ********************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-base/tasks/main.yml:29 ok: [localhost] => {"changed": false, "stat": {"atime": 1483973777.766, "checksum": "ccb99e8012eb42b7cec8a4f7ce6a4123a330d657", "ctime": 1483971683.0969999, "dev": 64768, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 786058, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "md5": "48e679db395e606fa97d134fe1bf82ee", "mode": "0644", "mtime": 1458874259.0, "nlink": 2, "path": "/usr/share/zoneinfo/Asia/Kolkata", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 265, "uid": 0, "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [bahmni-base : Fail if provided timezone does not exist] ****************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-base/tasks/main.yml:34 skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true} TASK [bahmni-base : Set the correct timezone.] ********************************* task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-base/tasks/main.yml:39 ok: [localhost] => {"changed": false, "dest": "/etc/localtime", "gid": 0, "group": "root", "mode": "0777", "owner": "root", "size": 32, "src": "/usr/share/zoneinfo/Asia/Kolkata", "state": "link", "uid": 0} TASK [bahmni-base : start and enable ntpd] ************************************* task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-base/tasks/main.yml:43 ok: [localhost] => {"changed": false, "enabled": true, "name": "ntpd", "state": "started"} TASK [bahmni-base : install utils] ********************************************* task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-base/tasks/main.yml:47 ok: [localhost] => (item=[u'tree', u'htop', u'lsof', u'wget', u'unzip', u'python-pip', u'rsync']) => {"changed": false, "item": ["tree", "htop", "lsof", "wget", "unzip", "python-pip", "rsync"], "msg": "", "rc": 0, "results": ["tree-1.5.3-3.el6.x86_64 providing tree is already installed", "htop-1.0.3-1.el6.x86_64 providing htop is already installed", "lsof-4.82-5.el6.x86_64 providing lsof is already installed", "wget-1.12-8.el6.x86_64 providing wget is already installed", "unzip-6.0-4.el6.x86_64 providing unzip is already installed", "python-pip-7.1.0-1.el6.noarch providing python-pip is already installed", "rsync-3.0.6-12.el6.x86_64 providing rsync is already installed"]} TASK [bahmni-user : Create bahmni group] *************************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-user/tasks/main.yml:1 ok: [localhost] => {"changed": false, "gid": 500, "name": "bahmni", "state": "present", "system": false} TASK [bahmni-user : Create bahmni user] **************************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-user/tasks/main.yml:7 ok: [localhost] => {"append": false, "changed": false, "comment": "", "group": 500, "home": "/home/bahmni", "move_home": false, "name": "bahmni", "shell": "/sbin/nologin", "state": "present", "uid": 500} TASK [bahmni-user : Remove shell access and set nologin for user] ************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-user/tasks/main.yml:11 changed: [localhost] => {"changed": true, "cmd": ["usermod", "-s", "/sbin/nologin", "bahmni"], "delta": "0:00:00.003990", "end": "2017-01-10 15:04:06.502660", "rc": 0, "start": "2017-01-10 15:04:06.498670", "stderr": "usermod: no changes", "stdout": "", "stdout_lines": [], "warnings": []} TASK [installer-config : Fail if implementation name is not provided] ********** task path: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml:1 skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true} TASK [installer-config : create /etc/bahmni-installer/ directory] ************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml:7 ok: [localhost] => {"changed": false, "gid": 500, "group": "bahmni", "mode": "0755", "owner": "bahmni", "path": "/etc/bahmni-installer", "size": 4096, "state": "directory", "uid": 500} TASK [installer-config : create /etc/bahmni-installer/deployment-artifacts directory] *** task path: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml:10 ok: [localhost] => {"changed": false, "gid": 500, "group": "bahmni", "mode": "0755", "owner": "bahmni", "path": "/etc/bahmni-installer/deployment-artifacts", "size": 4096, "state": "directory", "uid": 500} TASK [installer-config : create /etc/bahmni-installer/atomfeed-backup directory] *** task path: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml:13 ok: [localhost] => {"changed": false, "gid": 500, "group": "bahmni", "mode": "0755", "owner": "bahmni", "path": "/etc/bahmni-installer/atomfeed-backup", "size": 4096, "state": "directory", "uid": 500} TASK [installer-config : add bahmni configuration file] ************************ task path: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml:16 ok: [localhost] => {"changed": false, "gid": 500, "group": "bahmni", "mode": "0644", "owner": "bahmni", "path": "/etc/bahmni-installer/bahmni.conf", "size": 432, "state": "file", "uid": 500} TASK [installer-config : Creating Module directory] **************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml:24 ok: [localhost] => {"changed": false, "gid": 500, "group": "bahmni", "mode": "0755", "owner": "bahmni", "path": "/etc/bahmni-installer/deployment-artifacts/modules", "size": 4096, "state": "directory", "uid": 500} TASK [installer-config : Check Bahmni-installer version on command box] ******** task path: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml:27 changed: [localhost -> localhost] => {"changed": true, "cmd": ["rpm", "-q", "bahmni-installer", "--qf", "%{VERSION}-%{RELEASE}\\n"], "delta": "0:00:00.038878", "end": "2017-01-10 15:04:07.952198", "rc": 0, "start": "2017-01-10 15:04:07.913320", "stderr": "", "stdout": "0.87-81", "stdout_lines": ["0.87-81"], "warnings": ["Consider using yum, dnf or zypper module rather than running rpm"]} TASK [installer-config : Yum install Bahmni-installer] ************************* task path: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml:31 ok: [localhost] => {"changed": false, "msg": "", "rc": 0, "results": ["bahmni-installer-0.87-81.noarch providing bahmni-installer-0.87-81 is already installed"]} TASK [installer-config : set installer_config_role_ran fact] ******************* task path: /opt/bahmni-installer/bahmni-playbooks/roles/installer-config/tasks/installer-config.yml:34 ok: [localhost] => {"ansible_facts": {"installer_config_role_ran": true}, "changed": false} TASK [bahmni-support-user : Create bahmni_support group] *********************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-support-user/tasks/main.yml:1 ok: [localhost] => {"changed": false, "gid": 501, "name": "bahmni_support", "state": "present", "system": false} TASK [bahmni-support-user : Create bahmni_support user] ************************ task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-support-user/tasks/main.yml:7 ok: [localhost] => {"append": false, "changed": false, "comment": "", "group": 501, "home": "/home/bahmni_support", "move_home": false, "name": "bahmni_support", "password": "NOT_LOGGING_PASSWORD", "shell": "/bin/bash", "ssh_fingerprint": "2048 39:c8:6d:4a:c1:5d:a3:45:78:e8:e8:42:7b:88:f3:2e /home/bahmni_support/.ssh/id_rsa.pub (RSA)", "ssh_key_file": "/home/bahmni_support/.ssh/id_rsa", "ssh_public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAzFrf4S7kXGtPBqUU9FxSSbHdNwhIqzKb/zrEQq9Pmhd25En7TEMkkPed8sPH104RkunqdWPldilBFc6xKHux+ShgE75Njx3HMgfgSqlv/8LLFmSAWpzJxq8S3AYyCtvFoyOYqMVWcHdmyY7ia1wj09RHVF/CfITmxCFSQ01lQJTNwDZykBqO49obzmLi6Q5aLK/5LqaRWMXL1NXjzCOaYbfqqFZyzuMHGnzGU1JuYdqyZAg9oM1OvxyiDnFQOlYN+r4VXC386u7/eStanzSP75eHvX1uoBr1Qd7/Wosby7M42cJnowdH51tKpsis4NHjrtZKYeNyCv4jTHYvFguJXw== ansible-generated on localhost.localdomain", "state": "present", "uid": 501} TASK [bahmni-support-user : configure sudoers] ********************************* task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-support-user/tasks/main.yml:17 ok: [localhost] => {"backup": "", "changed": false, "msg": ""} TASK [bahmni-support-user : allow bahmni_support_group ssh access] ************* task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-support-user/tasks/main.yml:21 ok: [localhost] => {"backup": "", "changed": false, "msg": ""} TASK [bahmni-support-user : allow bahmni_support_user ssh access] ************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-support-user/tasks/main.yml:32 ok: [localhost] => {"backup": "", "changed": false, "msg": ""} TASK [bahmni-support-user : reload sshd] *************************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-support-user/tasks/main.yml:43 changed: [localhost] => {"changed": true, "name": "sshd", "state": "started"} TASK [iptables : get iptables rules] ******************************************* task path: /opt/bahmni-installer/bahmni-playbooks/roles/iptables/tasks/main.yml:4 changed: [localhost] => {"changed": true, "cmd": "iptables -L", "delta": "0:00:00.006385", "end": "2017-01-10 15:04:10.034492", "rc": 0, "start": "2017-01-10 15:04:10.028107", "stderr": "", "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: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: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 "], "warnings": []} TASK [iptables : Allow Input ACCEPT] ******************************************* task path: /opt/bahmni-installer/bahmni-playbooks/roles/iptables/tasks/main.yml:9 changed: [localhost] => {"changed": true, "cmd": ["/sbin/iptables", "-P", "INPUT", "ACCEPT"], "delta": "0:00:00.002429", "end": "2017-01-10 15:04:10.209372", "rc": 0, "start": "2017-01-10 15:04:10.206943", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []} TASK [iptables : Allow localhost interface] ************************************ task path: /opt/bahmni-installer/bahmni-playbooks/roles/iptables/tasks/main.yml:12 skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true} TASK [iptables : Allow Established] ******************************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/iptables/tasks/main.yml:16 skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true} TASK [iptables : Allow SSH] **************************************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/iptables/tasks/main.yml:20 skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true} TASK [iptables : DROP ALL Incoming connections except those which are marked as ACCEPT] *** task path: /opt/bahmni-installer/bahmni-playbooks/roles/iptables/tasks/main.yml:24 changed: [localhost] => {"changed": true, "cmd": ["/sbin/iptables", "-P", "INPUT", "DROP"], "delta": "0:00:00.002789", "end": "2017-01-10 15:04:10.469051", "rc": 0, "start": "2017-01-10 15:04:10.466262", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []} TASK [iptables : DROP all Forwards] ******************************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/iptables/tasks/main.yml:27 changed: [localhost] => {"changed": true, "cmd": ["/sbin/iptables", "-P", "FORWARD", "DROP"], "delta": "0:00:00.002995", "end": "2017-01-10 15:04:10.675061", "rc": 0, "start": "2017-01-10 15:04:10.672066", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []} TASK [iptables : Allow all output] ********************************************* task path: /opt/bahmni-installer/bahmni-playbooks/roles/iptables/tasks/main.yml:30 changed: [localhost] => {"changed": true, "cmd": ["/sbin/iptables", "-P", "OUTPUT", "ACCEPT"], "delta": "0:00:00.002345", "end": "2017-01-10 15:04:10.859788", "rc": 0, "start": "2017-01-10 15:04:10.857443", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []} TASK [iptables : Save the changes] ********************************************* task path: /opt/bahmni-installer/bahmni-playbooks/roles/iptables/tasks/main.yml:33 changed: [localhost] => {"changed": true, "cmd": ["service", "iptables", "save"], "delta": "0:00:00.038642", "end": "2017-01-10 15:04:11.083548", "rc": 0, "start": "2017-01-10 15:04:11.044906", "stderr": "", "stdout": "iptables: Saving firewall rules to /etc/sysconfig/iptables: [ OK ]", "stdout_lines": ["iptables: Saving firewall rules to /etc/sysconfig/iptables: [ OK ]"], "warnings": ["Consider using service module rather than running service"]} PLAY [bahmni-emr-db,bahmni-emr-db-slave] *************************************** TASK [mysql : add mysql 5.6 yum repo] ****************************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/main.yml:2 ok: [localhost] => {"changed": false, "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/etc/yum.repos.d/mysql.repo", "size": 187, "state": "file", "uid": 0} TASK [mysql : Install python mysql for ansible] ******************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/main.yml:7 ok: [localhost] => {"changed": false, "msg": "", "rc": 0, "results": ["MySQL-python-1.2.3-0.3.c1.1.el6.x86_64 providing MySQL-python is already installed"]} TASK [mysql : Check if any version of mysql is present] ************************ task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/main.yml:10 changed: [localhost] => {"changed": true, "cmd": ["mysql", "--version"], "delta": "0:00:00.007017", "end": "2017-01-10 15:04:11.960369", "rc": 0, "start": "2017-01-10 15:04:11.953352", "stderr": "", "stdout": "mysql Ver 14.14 Distrib 5.6.35, for Linux (x86_64) using EditLine wrapper", "stdout_lines": ["mysql Ver 14.14 Distrib 5.6.35, for Linux (x86_64) using EditLine wrapper"], "warnings": []} TASK [mysql : Uninstall MySQL if 5.6 is absent] ******************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/main.yml:15 skipping: [localhost] => (item=[]) => {"changed": false, "item": [], "skip_reason": "Conditional check failed", "skipped": true} TASK [mysql : Install mysql from mysql56 yum repository] *********************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/main.yml:22 skipping: [localhost] => (item=[]) => {"changed": false, "item": [], "skip_reason": "Conditional check failed", "skipped": true} TASK [mysql : Create /var/log/mysql directory to store binlogs if it does not exist] *** task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/main.yml:32 ok: [localhost] => {"changed": false, "gid": 27, "group": "mysql", "mode": "0755", "owner": "mysql", "path": "/var/log/mysql", "size": 4096, "state": "directory", "uid": 27} TASK [mysql : Copy mysql config] *********************************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/main.yml:35 ok: [localhost] => {"changed": false, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/etc/my.cnf", "size": 453, "state": "file", "uid": 0} TASK [mysql : Stop Mysql Service] ********************************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/main.yml:43 skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true} TASK [mysql : Start Mysql Service] ********************************************* task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/main.yml:47 ok: [localhost] => {"changed": false, "enabled": true, "name": "mysqld", "state": "started"} TASK [mysql : Update mysql root password] ************************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/main.yml:50 ok: [localhost] => {"changed": false, "user": "root"} TASK [mysql : Get matched IpTable rule] **************************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/main.yml:59 changed: [localhost] => {"changed": true, "cmd": "iptables -nL --line-numbers | grep MYSQL -m 1 | cut -c 1-2", "delta": "0:00:00.005657", "end": "2017-01-10 15:04:13.383901", "rc": 0, "start": "2017-01-10 15:04:13.378244", "stderr": "", "stdout": "3 ", "stdout_lines": ["3 "], "warnings": []} TASK [mysql : delete matching rule if exists] ********************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/main.yml:63 changed: [localhost] => {"changed": true, "cmd": "iptables -D INPUT 3 ", "delta": "0:00:00.003793", "end": "2017-01-10 15:04:13.577388", "rc": 0, "start": "2017-01-10 15:04:13.573595", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []} TASK [mysql : Allow mysql port through firewall] ******************************* task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/main.yml:67 changed: [localhost] => {"changed": true, "cmd": ["/sbin/iptables", "-I", "INPUT", "1", "-p", "tcp", "--dport", "3306", "-j", "ACCEPT", "-m", "comment", "--comment", "MYSQL"], "delta": "0:00:00.002775", "end": "2017-01-10 15:04:13.777411", "rc": 0, "start": "2017-01-10 15:04:13.774636", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []} TASK [mysql : save iptables] *************************************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql/tasks/main.yml:70 changed: [localhost] => {"changed": true, "cmd": ["service", "iptables", "save"], "delta": "0:00:00.039183", "end": "2017-01-10 15:04:13.992644", "rc": 0, "start": "2017-01-10 15:04:13.953461", "stderr": "", "stdout": "iptables: Saving firewall rules to /etc/sysconfig/iptables: [ OK ]", "stdout_lines": ["iptables: Saving firewall rules to /etc/sysconfig/iptables: [ OK ]"], "warnings": ["Consider using service module rather than running service"]} PLAY [bahmni-emr-db] *********************************************************** TASK [mysql-users : ensure anonymous users are not in the database] ************ task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql-users/tasks/main.yml:1 ok: [localhost] => {"changed": false, "user": ""} TASK [mysql-users : Create and grant privileges to db user on localhost] ******* task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql-users/tasks/main.yml:8 ok: [localhost] => {"changed": false, "user": "openmrs-user"} TASK [mysql-users : Create and grant privileges to db user from app server] **** task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql-users/tasks/main.yml:18 ok: [localhost] => (item=localhost) => {"changed": false, "item": "localhost", "user": "openmrs-user"} TASK [mysql-users : Create and grant privileges to root user from app server] ** task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql-users/tasks/main.yml:29 ok: [localhost] => (item=localhost) => {"changed": false, "item": "localhost", "user": "root"} TASK [mysql-users : ensure anonymous users are not in the database] ************ task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql-users/tasks/main.yml:1 ok: [localhost] => {"changed": false, "user": ""} TASK [mysql-users : Create and grant privileges to db user on localhost] ******* task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql-users/tasks/main.yml:8 ok: [localhost] => {"changed": false, "user": "openmrs-user"} TASK [mysql-users : Create and grant privileges to db user from app server] **** task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql-users/tasks/main.yml:18 ok: [localhost] => (item=localhost) => {"changed": false, "item": "localhost", "user": "openmrs-user"} TASK [mysql-users : Create and grant privileges to root user from app server] ** task path: /opt/bahmni-installer/bahmni-playbooks/roles/mysql-users/tasks/main.yml:29 skipping: [localhost] => (item=localhost) => {"changed": false, "item": "localhost", "skip_reason": "Conditional check failed", "skipped": true} PLAY [bahmni-emr] ************************************************************** TASK [httpd : Install Apache server from yum repository] *********************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/httpd/tasks/main.yml:1 ok: [localhost] => (item=[u'httpd', u'mod_ssl', u'mod_wsgi']) => {"changed": false, "item": ["httpd", "mod_ssl", "mod_wsgi"], "msg": "", "rc": 0, "results": ["httpd-2.2.15-55.el6.centos.2.x86_64 providing httpd is already installed", "mod_ssl-1:2.2.15-55.el6.centos.2.x86_64 providing mod_ssl is already installed", "mod_wsgi-3.2-7.el6.x86_64 providing mod_wsgi is already installed"]} TASK [httpd : Get matched IpTable rule] **************************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/httpd/tasks/main.yml:8 changed: [localhost] => {"changed": true, "cmd": "iptables -nL --line-numbers | grep \"WEB SERVER\" -m 1 | cut -c 1-2", "delta": "0:00:00.005649", "end": "2017-01-10 15:04:16.317793", "rc": 0, "start": "2017-01-10 15:04:16.312144", "stderr": "", "stdout": "3 ", "stdout_lines": ["3 "], "warnings": []} TASK [httpd : delete matching rule if exists] ********************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/httpd/tasks/main.yml:12 changed: [localhost] => {"changed": true, "cmd": "iptables -D INPUT 3 ", "delta": "0:00:00.003856", "end": "2017-01-10 15:04:16.499026", "rc": 0, "start": "2017-01-10 15:04:16.495170", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []} TASK [httpd : Allow port 80 through firewall] ********************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/httpd/tasks/main.yml:16 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.002605", "end": "2017-01-10 15:04:16.679320", "rc": 0, "start": "2017-01-10 15:04:16.676715", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []} TASK [httpd : save iptables] *************************************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/httpd/tasks/main.yml:19 changed: [localhost] => {"changed": true, "cmd": ["service", "iptables", "save"], "delta": "0:00:00.044945", "end": "2017-01-10 15:04:16.905935", "rc": 0, "start": "2017-01-10 15:04:16.860990", "stderr": "", "stdout": "iptables: Saving firewall rules to /etc/sysconfig/iptables: [ OK ]", "stdout_lines": ["iptables: Saving firewall rules to /etc/sysconfig/iptables: [ OK ]"], "warnings": ["Consider using service module rather than running service"]} TASK [httpd : Get matched IpTable rule] **************************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/httpd/tasks/main.yml:22 changed: [localhost] => {"changed": true, "cmd": "iptables -nL --line-numbers | grep https -m 1 | cut -c 1-2", "delta": "0:00:00.011043", "end": "2017-01-10 15:04:17.140281", "rc": 0, "start": "2017-01-10 15:04:17.129238", "stderr": "", "stdout": "3 ", "stdout_lines": ["3 "], "warnings": []} TASK [httpd : delete matching rule if exists] ********************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/httpd/tasks/main.yml:26 changed: [localhost] => {"changed": true, "cmd": "iptables -D INPUT 3 ", "delta": "0:00:00.004142", "end": "2017-01-10 15:04:17.366336", "rc": 0, "start": "2017-01-10 15:04:17.362194", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []} TASK [httpd : Allow port 443 through firewall] ********************************* task path: /opt/bahmni-installer/bahmni-playbooks/roles/httpd/tasks/main.yml:30 changed: [localhost] => {"changed": true, "cmd": ["/sbin/iptables", "-I", "INPUT", "1", "-p", "tcp", "--dport", "443", "-j", "ACCEPT", "-m", "comment", "--comment", "https"], "delta": "0:00:00.003234", "end": "2017-01-10 15:04:17.574279", "rc": 0, "start": "2017-01-10 15:04:17.571045", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []} TASK [httpd : save iptables] *************************************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/httpd/tasks/main.yml:33 changed: [localhost] => {"changed": true, "cmd": ["service", "iptables", "save"], "delta": "0:00:00.048124", "end": "2017-01-10 15:04:17.816904", "rc": 0, "start": "2017-01-10 15:04:17.768780", "stderr": "", "stdout": "iptables: Saving firewall rules to /etc/sysconfig/iptables: [ OK ]", "stdout_lines": ["iptables: Saving firewall rules to /etc/sysconfig/iptables: [ OK ]"], "warnings": ["Consider using service module rather than running service"]} TASK [httpd : create bahmni-certs directory] *********************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/httpd/tasks/main.yml:36 ok: [localhost] => {"changed": false, "gid": 500, "group": "bahmni", "mode": "0755", "owner": "bahmni", "path": "/etc/bahmni-certs", "size": 4096, "state": "directory", "uid": 500} TASK [httpd : check if certificate already points to letsencrypt] ************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/httpd/tasks/main.yml:39 ok: [localhost] => {"changed": false, "stat": {"atime": 1483974630.1693549, "ctime": 1483974004.2613549, "dev": 64768, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 1571657, "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", "mode": "0777", "mtime": 1483974004.2613549, "nlink": 1, "path": "/etc/bahmni-certs/cert.crt", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 32, "uid": 0, "wgrp": true, "woth": true, "writeable": true, "wusr": true, "xgrp": true, "xoth": true, "xusr": true}} TASK [httpd : link local certificate and domain key] *************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/httpd/tasks/main.yml:43 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 check failed", "skipped": true} 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 check failed", "skipped": true} 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 check failed", "skipped": true} TASK [httpd : Switch off chkconfig for httpd on passive] *********************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/httpd/tasks/main.yml:51 skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true} TASK [httpd : Stop httpd] ****************************************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/httpd/tasks/main.yml:55 changed: [localhost] => {"changed": true, "name": "httpd", "state": "stopped"} TASK [httpd : Start httpd] ***************************************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/httpd/tasks/main.yml:61 changed: [localhost] => {"changed": true, "enabled": true, "name": "httpd", "state": "started"} TASK [httpd : Add landing page html file] ************************************** task path: /opt/bahmni-installer/bahmni-playbooks/roles/httpd/tasks/main.yml:67 fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute 'address'"} to retry, use: --limit @/opt/bahmni-installer/bahmni-playbooks/all.retry PLAY RECAP ********************************************************************* localhost : ok=70 changed=25 unreachable=0 failed=1