PLAY [bitrix-hosts] ************************************************************
TASK [setup] *******************************************************************
ok: [cpccru]
TASK [web : include variables from mysql group] ********************************
ok: [cpccru]
TASK [web : include variables from web group] **********************************
ok: [cpccru]
TASK [web : include variables from temporary config] ***************************
ok: [cpccru]
TASK [web : additional gathering facts] ****************************************
ok: [cpccru]
TASK [web : include] ***********************************************************
TASK [web : include] ***********************************************************
TASK [web : include] ***********************************************************
TASK [web : include] ***********************************************************
TASK [web : include] ***********************************************************
TASK [web : include] ***********************************************************
TASK [web : include] ***********************************************************
TASK [web : include] ***********************************************************
TASK [web : include] ***********************************************************
TASK [web : include] ***********************************************************
TASK [web : include] ***********************************************************
TASK [web : include] ***********************************************************
TASK [web : include] ***********************************************************
TASK [web : include] ***********************************************************
TASK [web : include] ***********************************************************
included: /etc/ansible/roles/web/tasks/configure_cert.yml for cpccru
TASK [web : include] ***********************************************************
included: /etc/ansible/roles/web/tasks/sites-gathering_facts_site_names.yml for cpccru
TASK [web : gathering facts about installed sites] *****************************
changed: [cpccru -> None]
TASK [web : create variable bx_sites_info] *************************************
ok: [cpccru]
TASK [web : test certificate and private key] **********************************
TASK [web : test certificate, private key and chain] ***************************
ok: [cpccru]
TASK [web : create directories] ************************************************
changed: [cpccru] => (item=/etc/nginx/certs)
TASK [web : create directories] ************************************************
ok: [cpccru] => (item=default)
TASK [web : copy certificate] **************************************************
TASK [web : copy certificate] **************************************************
changed: [cpccru] => (item=default)
TASK [web : copy private_key] **************************************************
changed: [cpccru] => (item=default)
TASK [web : copy certificate_chain] ********************************************
changed: [cpccru] => (item=default)
TASK [web : update ssl_options] ************************************************
ok: [cpccru]
TASK [web : delete old settings from nginx config] *****************************
ok: [cpccru] => (item={u'CompositeExcludeParams': [u'ncc'], u'CronTask': u'enable', u'NginxPort': 80, u'NginxHTTPSConfig': u'ssl.s1.conf', u'DBType': u'mysql', u'ApacheConfScale': u'/etc/httpd/bx-scale/conf/default.conf', u'ApacheConf': u'/etc/httpd/bx/conf/default.conf', u'DBPassword': u'***************', u'BackupDay': u'*', u'module_main_version': u'18.0.7', u'CompositeStatus': u'enable', u'BackupMinute': u'10', u'NginxHTTPEDir': u'/etc/nginx/bx/site_enabled', u'CompositeDomains': [u'192.168.1.105'], u'SphinxConnection': u'cpccru:9306', u'DocumentRoot': u'/home/bitrix/www', u'HTTPSCert': u'/etc/nginx/certs/default/certificate.pem', u'message': u'', u'BackupTask': u'enable', u'DBConn': u'Y', u'SiteShort': u'default', u'module_message': u'', u'SiteCsync2': u'default', u'CronFile': u'/etc/crontab', u'module_scale': u'installed', u'SiteName': u'default', u'HTTPSCertChain': u'/etc/nginx/certs/default/cacert.pem', u'proxy_ignore_client_abort': u'off', u'SiteKernelDir': u'', u'CompositeIncludeUri': [u'^/.*?$'], u'CompositeMemcachedPort': u'', u'SiteStatus': u'finished', u'BackupFolder': u'/home/bitrix/backup/archive', u'SMTPPort': u'25', u'NTLM_use_ntlm': u'N', u'DBHost': u'localhost', u'SiteInstall': u'kernel', u'NginxHTTPConfig': u's1.conf', u'DBLogin': u'bitrix0', u'BackupMonth': u'*', u'phpSessionDir': u'/tmp/php_sessions/www', u'ModuleScale': u'', u'CompositeExcludeUri': [u'^/bitrix/.*?$', u'^/404\\.php$'], u'EmailAccount': u'default', u'ServerName': u'cpccru', u'error': 0, u'NTLM_module': u'Y', u'SiteCharset': u'utf-8', u'phpUploadDir': u'/tmp/php_upload/www', u'NginxType': u'single', u'HTTPS': u'disable', u'CompositeError': u'', u'HTTPSCertType': u'own', u'CompositeMemcachedHost': u'', u'BackupCronFile': u'/etc/crontab', u'CompositeNginxID': u'02', u'module_cluster': u'installed', u'NginxHTTPSFullPath': u'/etc/nginx/bx/site_avaliable/ssl.s1.conf', u'NTLM_bitrixvm_auth_support': u'N', u'BackupHour': u'23', u'SMTPPassword': u'***************', u'SphinxIndexName': u'default', u'CompositeNginx': u'enable', u'CompositeStorage': u'files', u'SMTPTLS': u'on', u'BackupWeekDay': u'0', u'BackupVersion': u'v5', u'SMTPUser': u'elccrus@mail.ru', u'ModuleCluster': u'', u'EmailAddress': u'elccrus@mail.ru', u'DBName': u'sitemanager', u'SMTPHost': u'smtp.mail.ru', u'HTTPSPriv': u'/etc/nginx/certs/default/private.key', u'phpMsmtpAccount': u'default', u'CompositeNginxMap': u'/etc/nginx/bx/maps/02.cache_default.conf', u'SiteKernelDB': u'', u'NginxHTTPDir': u'/etc/nginx/bx/site_avaliable', u'CronService': {u'smtpd': {u'cron': u'/etc/cron.d/bx_sitemanager', u'util': u'/opt/webdir/bin/bx_cron_services.sh'}, u'xmppd': {u'cron': u'/etc/cron.d/bx_sitemanager', u'util': u'/opt/webdir/bin/bx_cron_services.sh'}}, u'HTTPSConf': u'/etc/nginx/bx/conf/ssl_options.conf'})
TASK [web : delete previously settings] ****************************************
changed: [cpccru] => (item={u'CompositeExcludeParams': [u'ncc'], u'CronTask': u'enable', u'NginxPort': 80, u'NginxHTTPSConfig': u'ssl.s1.conf', u'DBType': u'mysql', u'ApacheConfScale': u'/etc/httpd/bx-scale/conf/default.conf', u'ApacheConf': u'/etc/httpd/bx/conf/default.conf', u'DBPassword': u'***************', u'BackupDay': u'*', u'module_main_version': u'18.0.7', u'CompositeStatus': u'enable', u'BackupMinute': u'10', u'NginxHTTPEDir': u'/etc/nginx/bx/site_enabled', u'CompositeDomains': [u'192.168.1.105'], u'SphinxConnection': u'cpccru:9306', u'DocumentRoot': u'/home/bitrix/www', u'HTTPSCert': u'/etc/nginx/certs/default/certificate.pem', u'message': u'', u'BackupTask': u'enable', u'DBConn': u'Y', u'SiteShort': u'default', u'module_message': u'', u'SiteCsync2': u'default', u'CronFile': u'/etc/crontab', u'module_scale': u'installed', u'SiteName': u'default', u'HTTPSCertChain': u'/etc/nginx/certs/default/cacert.pem', u'proxy_ignore_client_abort': u'off', u'SiteKernelDir': u'', u'CompositeIncludeUri': [u'^/.*?$'], u'CompositeMemcachedPort': u'', u'SiteStatus': u'finished', u'BackupFolder': u'/home/bitrix/backup/archive', u'SMTPPort': u'25', u'NTLM_use_ntlm': u'N', u'DBHost': u'localhost', u'SiteInstall': u'kernel', u'NginxHTTPConfig': u's1.conf', u'DBLogin': u'bitrix0', u'BackupMonth': u'*', u'phpSessionDir': u'/tmp/php_sessions/www', u'ModuleScale': u'', u'CompositeExcludeUri': [u'^/bitrix/.*?$', u'^/404\\.php$'], u'EmailAccount': u'default', u'ServerName': u'cpccru', u'error': 0, u'NTLM_module': u'Y', u'SiteCharset': u'utf-8', u'phpUploadDir': u'/tmp/php_upload/www', u'NginxType': u'single', u'HTTPS': u'disable', u'CompositeError': u'', u'HTTPSCertType': u'own', u'CompositeMemcachedHost': u'', u'BackupCronFile': u'/etc/crontab', u'CompositeNginxID': u'02', u'module_cluster': u'installed', u'NginxHTTPSFullPath': u'/etc/nginx/bx/site_avaliable/ssl.s1.conf', u'NTLM_bitrixvm_auth_support': u'N', u'BackupHour': u'23', u'SMTPPassword': u'***************', u'SphinxIndexName': u'default', u'CompositeNginx': u'enable', u'CompositeStorage': u'files', u'SMTPTLS': u'on', u'BackupWeekDay': u'0', u'BackupVersion': u'v5', u'SMTPUser': u'elccrus@mail.ru', u'ModuleCluster': u'', u'EmailAddress': u'elccrus@mail.ru', u'DBName': u'sitemanager', u'SMTPHost': u'smtp.mail.ru', u'HTTPSPriv': u'/etc/nginx/certs/default/private.key', u'phpMsmtpAccount': u'default', u'CompositeNginxMap': u'/etc/nginx/bx/maps/02.cache_default.conf', u'SiteKernelDB': u'', u'NginxHTTPDir': u'/etc/nginx/bx/site_avaliable', u'CronService': {u'smtpd': {u'cron': u'/etc/cron.d/bx_sitemanager', u'util': u'/opt/webdir/bin/bx_cron_services.sh'}, u'xmppd': {u'cron': u'/etc/cron.d/bx_sitemanager', u'util': u'/opt/webdir/bin/bx_cron_services.sh'}}, u'HTTPSConf': u'/etc/nginx/bx/conf/ssl_options.conf'})
TASK [web : add new settings to nginx config] **********************************
changed: [cpccru] => (item={u'CompositeExcludeParams': [u'ncc'], u'CronTask': u'enable', u'NginxPort': 80, u'NginxHTTPSConfig': u'ssl.s1.conf', u'DBType': u'mysql', u'ApacheConfScale': u'/etc/httpd/bx-scale/conf/default.conf', u'ApacheConf': u'/etc/httpd/bx/conf/default.conf', u'DBPassword': u'***************', u'BackupDay': u'*', u'module_main_version': u'18.0.7', u'CompositeStatus': u'enable', u'BackupMinute': u'10', u'NginxHTTPEDir': u'/etc/nginx/bx/site_enabled', u'CompositeDomains': [u'192.168.1.105'], u'SphinxConnection': u'cpccru:9306', u'DocumentRoot': u'/home/bitrix/www', u'HTTPSCert': u'/etc/nginx/certs/default/certificate.pem', u'message': u'', u'BackupTask': u'enable', u'DBConn': u'Y', u'SiteShort': u'default', u'module_message': u'', u'SiteCsync2': u'default', u'CronFile': u'/etc/crontab', u'module_scale': u'installed', u'SiteName': u'default', u'HTTPSCertChain': u'/etc/nginx/certs/default/cacert.pem', u'proxy_ignore_client_abort': u'off', u'SiteKernelDir': u'', u'CompositeIncludeUri': [u'^/.*?$'], u'CompositeMemcachedPort': u'', u'SiteStatus': u'finished', u'BackupFolder': u'/home/bitrix/backup/archive', u'SMTPPort': u'25', u'NTLM_use_ntlm': u'N', u'DBHost': u'localhost', u'SiteInstall': u'kernel', u'NginxHTTPConfig': u's1.conf', u'DBLogin': u'bitrix0', u'BackupMonth': u'*', u'phpSessionDir': u'/tmp/php_sessions/www', u'ModuleScale': u'', u'CompositeExcludeUri': [u'^/bitrix/.*?$', u'^/404\\.php$'], u'EmailAccount': u'default', u'ServerName': u'cpccru', u'error': 0, u'NTLM_module': u'Y', u'SiteCharset': u'utf-8', u'phpUploadDir': u'/tmp/php_upload/www', u'NginxType': u'single', u'HTTPS': u'disable', u'CompositeError': u'', u'HTTPSCertType': u'own', u'CompositeMemcachedHost': u'', u'BackupCronFile': u'/etc/crontab', u'CompositeNginxID': u'02', u'module_cluster': u'installed', u'NginxHTTPSFullPath': u'/etc/nginx/bx/site_avaliable/ssl.s1.conf', u'NTLM_bitrixvm_auth_support': u'N', u'BackupHour': u'23', u'SMTPPassword': u'***************', u'SphinxIndexName': u'default', u'CompositeNginx': u'enable', u'CompositeStorage': u'files', u'SMTPTLS': u'on', u'BackupWeekDay': u'0', u'BackupVersion': u'v5', u'SMTPUser': u'elccrus@mail.ru', u'ModuleCluster': u'', u'EmailAddress': u'elccrus@mail.ru', u'DBName': u'sitemanager', u'SMTPHost': u'smtp.mail.ru', u'HTTPSPriv': u'/etc/nginx/certs/default/private.key', u'phpMsmtpAccount': u'default', u'CompositeNginxMap': u'/etc/nginx/bx/maps/02.cache_default.conf', u'SiteKernelDB': u'', u'NginxHTTPDir': u'/etc/nginx/bx/site_avaliable', u'CronService': {u'smtpd': {u'cron': u'/etc/cron.d/bx_sitemanager', u'util': u'/opt/webdir/bin/bx_cron_services.sh'}, u'xmppd': {u'cron': u'/etc/cron.d/bx_sitemanager', u'util': u'/opt/webdir/bin/bx_cron_services.sh'}}, u'HTTPSConf': u'/etc/nginx/bx/conf/ssl_options.conf'})
TASK [web : add new settings to nginx config] **********************************
TASK [web : restart nginx] *****************************************************
changed: [cpccru]
TASK [web : include] ***********************************************************
TASK [web : include] ***********************************************************
TASK [web : include] ***********************************************************
TASK [web : include] ***********************************************************
TASK [web : include] ***********************************************************
TASK [web : include] ***********************************************************
TASK [web : delete temporary config] *******************************************
changed: [cpccru]
PLAY [bitrix-hosts] ************************************************************
TASK [setup] *******************************************************************
ok: [cpccru]
TASK [cleaner : get file list] *************************************************
ok: [cpccru]
TASK [cleaner : delete files] **************************************************
changed: [cpccru] => (item={u'uid': 0, u'woth': False, u'mtime': 1537179430.9050386, u'inode': 155235, u'isgid': False, u'size': 47, u'wgrp': False, u'isuid': False, u'isreg': True, u'gid': 0, u'ischr': False, u'wusr': True, u'xoth': False, u'islnk': False, u'nlink': 1, u'issock': False, u'rgrp': True, u'path': u'/opt/webdir/tmp/web_servers_status.cache', u'xusr': False, u'atime': 1537179430.9050386, u'isdir': False, u'ctime': 1537179430.9050386, u'isblk': False, u'xgrp': False, u'dev': 2051, u'roth': True, u'isfifo': False, u'mode': u'0644', u'rusr': True})
changed: [cpccru] => (item={u'uid': 0, u'woth': False, u'mtime': 1537179617.6880536, u'inode': 155239, u'isgid': False, u'size': 1, u'wgrp': False, u'isuid': False, u'isreg': True, u'gid': 0, u'ischr': False, u'wusr': True, u'xoth': False, u'islnk': False, u'nlink': 1, u'issock': False, u'rgrp': True, u'path': u'/opt/webdir/tmp/sites_errors.cache', u'xusr': False, u'atime': 1537179617.6880536, u'isdir': False, u'ctime': 1537179617.6880536, u'isblk': False, u'xgrp': False, u'dev': 2051, u'roth': True, u'isfifo': False, u'mode': u'0644', u'rusr': True})
changed: [cpccru] => (item={u'uid': 0, u'woth': False, u'mtime': 1537179397.6930358, u'inode': 154584, u'isgid': False, u'size': 145, u'wgrp': False, u'isuid': False, u'isreg': True, u'gid': 0, u'ischr': False, u'wusr': True, u'xoth': False, u'islnk': False, u'nlink': 1, u'issock': False, u'rgrp': True, u'path': u'/opt/webdir/tmp/pool_servers.cache', u'xusr': False, u'atime': 1537179397.6930358, u'isdir': False, u'ctime': 1537179397.6930358, u'isblk': False, u'xgrp': False, u'dev': 2051, u'roth': True, u'isfifo': False, u'mode': u'0644', u'rusr': True})
changed: [cpccru] => (item={u'uid': 0, u'woth': False, u'mtime': 1537179617.6880536, u'inode': 155236, u'isgid': False, u'size': 87, u'wgrp': False, u'isuid': False, u'isreg': True, u'gid': 0, u'ischr': False, u'wusr': True, u'xoth': False, u'islnk': False, u'nlink': 1, u'issock': False, u'rgrp': True, u'path': u'/opt/webdir/tmp/sites_kernel.cache', u'xusr': False, u'atime': 1537179617.6880536, u'isdir': False, u'ctime': 1537179617.6880536, u'isblk': False, u'xgrp': False, u'dev': 2051, u'roth': True, u'isfifo': False, u'mode': u'0644', u'rusr': True})
changed: [cpccru] => (item={u'uid': 0, u'woth': False, u'mtime': 1537179617.6880536, u'inode': 155238, u'isgid': False, u'size': 1, u'wgrp': False, u'isuid': False, u'isreg': True, u'gid': 0, u'ischr': False, u'wusr': True, u'xoth': False, u'islnk': False, u'nlink': 1, u'issock': False, u'rgrp': True, u'path': u'/opt/webdir/tmp/sites_links.cache', u'xusr': False, u'atime': 1537179617.6880536, u'isdir': False, u'ctime': 1537179617.6880536, u'isblk': False, u'xgrp': False, u'dev': 2051, u'roth': True, u'isfifo': False, u'mode': u'0644', u'rusr': True})
changed: [cpccru] => (item={u'uid': 0, u'woth': False, u'mtime': 1537179397.6960359, u'inode': 155234, u'isgid': False, u'size': 1, u'wgrp': False, u'isuid': False, u'isreg': True, u'gid': 0, u'ischr': False, u'wusr': True, u'xoth': False, u'islnk': False, u'nlink': 1, u'issock': False, u'rgrp': True, u'path': u'/opt/webdir/tmp/pool_unused.cache', u'xusr': False, u'atime': 1537179397.6940358, u'isdir': False, u'ctime': 1537179397.6960359, u'isblk': False, u'xgrp': False, u'dev': 2051, u'roth': True, u'isfifo': False, u'mode': u'0644', u'rusr': True})
PLAY RECAP *********************************************************************
cpccru : ok=24 changed=10 unreachable=0 failed=0
|