Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Error When Running Playbook On Centos

 
  • bububeti
  • Member
  • Trial users
  • Join Date: 28-Aug 20
  • 24 posts

Posted 07 September 2020 - 10:43 AM #1

I was following this page from docs: https://docs.cs-cart..._playbooks.htmlbut when I run the command:  cd ~/playbooks/ && ansible-playbook -e @config/main.json -c local -i inventory_varnish lvemp7.yml I get the following output with 3 errors in it. What can I do to solve this?

 

 

[root@vps82008 playbooks]# cd ~/playbooks/ && ansible-playbook -e @config/main.json -c local -i inventory_varnish lvemp7.yml

 
PLAY [Apply configuration to all nodes] ***************************************************************
 
TASK [Gathering Facts] ********************************************************************************
ok: [127.0.0.1]
 
TASK [common : preparing configurations] **************************************************************
 
TASK [common : Check System version] ******************************************************************
 
TASK [common : fetch variables] ***********************************************************************
ok: [127.0.0.1]
 
TASK [common : Check if SElinux conf Exists] **********************************************************
ok: [127.0.0.1]
 
TASK [common : Disabled SELinux] **********************************************************************
fatal: [127.0.0.1]: FAILED! => {"changed": true, "cmd": ["setenforce", "0"], "delta": "0:00:00.004368", "end": "2020-09-07 10:32:19.982675", "failed": true, "msg": "non-zero return code", "rc": 1, "start": "2020-09-07 10:32:19.978307", "stderr": "setenforce: SELinux is disabled", "stderr_lines": ["setenforce: SELinux is disabled"], "stdout": "", "stdout_lines": []}
...ignoring
 
TASK [common : ensure SELinux is turned off] **********************************************************
ok: [127.0.0.1]
 
TASK [common : Check if Iptables Exists] **************************************************************
 
TASK [common : ensure firewall is turned off for CentOS 6] ********************************************
 
TASK [common : Check if Firewalld Exists] *************************************************************
ok: [127.0.0.1]
 
TASK [common : ensure firewall is turned off for CentOS 7] ********************************************
ok: [127.0.0.1]
 
TASK [common : Add ondrej/php apt repository for Ubuntu] **********************************************
 
TASK [common : installing dotdeb repository for Debian] ***********************************************
 
TASK [common : adding GPG key for DotDeb] *************************************************************
 
TASK [common : installing EPEL and REMI repository for CentOS] ****************************************
 
TASK [common : installing basic components via apt] ***************************************************
 
TASK [common : installing basic components via yum] ***************************************************
ok: [127.0.0.1] => (item=[u'htop', u'mc', u'tmux', u'vim', u'unzip', u'libselinux-python'])
 
TASK [common : create custom groups] ******************************************************************
ok: [127.0.0.1] => (item=service)
ok: [127.0.0.1] => (item=service)
ok: [127.0.0.1] => (item=developers)
ok: [127.0.0.1] => (item=sysadmins)
 
TASK [common : creating user for service] *************************************************************
ok: [127.0.0.1]
 
TASK [common : creating user for deployment] **********************************************************
ok: [127.0.0.1] => (item={u'home': u'/var/www/html', u'group': u'service', u'name': u'deploy', u'groups': u'developers'})
ok: [127.0.0.1] => (item={u'home': u'/home/sysadmin', u'group': u'service', u'name': u'sysadmin', u'groups': u'sysadmins'})
 
TASK [common : copying sudoers configurations] ********************************************************
ok: [127.0.0.1]
 
TASK [fail2ban : loading platform-depend configurations] **********************************************
ok: [127.0.0.1]
 
TASK [fail2ban : installing packages] *****************************************************************
ok: [127.0.0.1] => (item=[u'fail2ban'])
 
TASK [fail2ban : installing packages] *****************************************************************
 
TASK [fail2ban : loading configurations] **************************************************************
ok: [127.0.0.1] => (item=jail.local)
 
TASK [fail2ban : putting into autostart] **************************************************************
 
TASK [fail2ban : restarting service] ******************************************************************
 
TASK [fail2ban : putting into autostart] **************************************************************
ok: [127.0.0.1]
 
TASK [fail2ban : restarting service] ******************************************************************
changed: [127.0.0.1]
 
TASK [logrotate/common : loading platform-depend configurations] **************************************
ok: [127.0.0.1]
 
TASK [logrotate/common : installing packages via yum] *************************************************
ok: [127.0.0.1] => (item=[u'logrotate'])
 
TASK [logrotate/common : installing packages via apt] *************************************************
 
TASK [logrotate/common : loading configurations] ******************************************************
ok: [127.0.0.1]
 
PLAY [Application] ************************************************************************************
 
TASK [Gathering Facts] ********************************************************************************
ok: [127.0.0.1]
 
TASK [common : preparing configurations] **************************************************************
 
TASK [common : Check System version] ******************************************************************
 
TASK [common : fetch variables] ***********************************************************************
ok: [127.0.0.1]
 
TASK [common : Check if SElinux conf Exists] **********************************************************
ok: [127.0.0.1]
 
TASK [common : Disabled SELinux] **********************************************************************
fatal: [127.0.0.1]: FAILED! => {"changed": true, "cmd": ["setenforce", "0"], "delta": "0:00:00.004476", "end": "2020-09-07 10:32:34.719148", "failed": true, "msg": "non-zero return code", "rc": 1, "start": "2020-09-07 10:32:34.714672", "stderr": "setenforce: SELinux is disabled", "stderr_lines": ["setenforce: SELinux is disabled"], "stdout": "", "stdout_lines": []}
...ignoring
 
TASK [common : ensure SELinux is turned off] **********************************************************
ok: [127.0.0.1]
 
TASK [common : Check if Iptables Exists] **************************************************************
 
TASK [common : ensure firewall is turned off for CentOS 6] ********************************************
 
TASK [common : Check if Firewalld Exists] *************************************************************
ok: [127.0.0.1]
 
TASK [common : ensure firewall is turned off for CentOS 7] ********************************************
ok: [127.0.0.1]
 
TASK [common : Add ondrej/php apt repository for Ubuntu] **********************************************
 
TASK [common : installing dotdeb repository for Debian] ***********************************************
 
TASK [common : adding GPG key for DotDeb] *************************************************************
 
TASK [common : installing EPEL and REMI repository for CentOS] ****************************************
 
TASK [common : installing basic components via apt] ***************************************************
 
TASK [common : installing basic components via yum] ***************************************************
ok: [127.0.0.1] => (item=[u'htop', u'mc', u'tmux', u'vim', u'unzip', u'libselinux-python'])
 
TASK [common : create custom groups] ******************************************************************
ok: [127.0.0.1] => (item=service)
ok: [127.0.0.1] => (item=service)
ok: [127.0.0.1] => (item=developers)
ok: [127.0.0.1] => (item=sysadmins)
 
TASK [common : creating user for service] *************************************************************
ok: [127.0.0.1]
 
TASK [common : creating user for deployment] **********************************************************
ok: [127.0.0.1] => (item={u'home': u'/var/www/html', u'group': u'service', u'name': u'deploy', u'groups': u'developers'})
ok: [127.0.0.1] => (item={u'home': u'/home/sysadmin', u'group': u'service', u'name': u'sysadmin', u'groups': u'sysadmins'})
 
TASK [common : copying sudoers configurations] ********************************************************
ok: [127.0.0.1]
 
TASK [php7/common : loading platform variables] *******************************************************
ok: [127.0.0.1]
 
TASK [php7/common : adding deb.sury.org GPG key] ******************************************************
 
TASK [php7/common : installing PHP deb.sury.org repository] *******************************************
 
TASK [php7/common : installing PHP PPA via apt-repository] ********************************************
 
TASK [php7/common : installing common packages via apt] ***********************************************
 
TASK [php7/common : installing repository to CetnOS 7] ************************************************
 
TASK [php7/common : installing repository to CentOS 6] ************************************************
 
TASK [php7/common : installing common packages via yum] ***********************************************
failed: [127.0.0.1] (item=[u'php71w-common', u'php71w-cli', u'php71w-intl', u'php71w-curl', u'php71w-mysqlnd', u'php71w-gd', u'php71w-pear', u'php71w-opcache', u'php71w-mbstring', u'php71w-xml', u'php71w-pecl-apcu', u'php71w-pecl-imagick', u'php71w-json', u'php71w-zip', u'php71w-readline', u'php71w-soap']) => {"changed": false, "failed": true, "item": ["php71w-common", "php71w-cli", "php71w-intl", "php71w-curl", "php71w-mysqlnd", "php71w-gd", "php71w-pear", "php71w-opcache", "php71w-mbstring", "php71w-xml", "php71w-pecl-apcu", "php71w-pecl-imagick", "php71w-json", "php71w-zip", "php71w-readline", "php71w-soap"], "msg": "Error: Package: php71w-pecl-imagick-3.4.3-1.w7.x86_64 (webtatic)\n           Requires: libMagickWand.so.5()(64bit)\nError: Package: php71w-pecl-imagick-3.4.3-1.w7.x86_64 (webtatic)\n           Requires: libMagickCore.so.5()(64bit)\n", "rc": 1, "results": ["Loaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\n * base: centos.mirrors.telekom.ro\n * epel: fedora.mirrors.telekom.ro\n * extras: centos.mirrors.telekom.ro\n * remi-safe: mirrors.neterra.net\n * updates: centos.mirrors.telekom.ro\n * webtatic: uk.repo.webtatic.com\nResolving Dependencies\n--> Running transaction check\n---> Package php71w-cli.x86_64 0:7.1.33-1.w7 will be installed\n---> Package php71w-common.x86_64 0:7.1.33-1.w7 will be installed\n---> Package php71w-gd.x86_64 0:7.1.33-1.w7 will be installed\n--> Processing Dependency: libjpeg.so.62(LIBJPEG_6.2)(64bit) for package: php71w-gd-7.1.33-1.w7.x86_64\n--> Processing Dependency: libjpeg.so.62()(64bit) for package: php71w-gd-7.1.33-1.w7.x86_64\n--> Processing Dependency: libXpm.so.4()(64bit) for package: php71w-gd-7.1.33-1.w7.x86_64\n--> Processing Dependency: libX11.so.6()(64bit) for package: php71w-gd-7.1.33-1.w7.x86_64\n---> Package php71w-intl.x86_64 0:7.1.33-1.w7 will be installed\n--> Processing Dependency: libicuuc.so.50()(64bit) for package: php71w-intl-7.1.33-1.w7.x86_64\n--> Processing Dependency: libicuio.so.50()(64bit) for package: php71w-intl-7.1.33-1.w7.x86_64\n--> Processing Dependency: libicui18n.so.50()(64bit) for package: php71w-intl-7.1.33-1.w7.x86_64\n--> Processing Dependency: libicudata.so.50()(64bit) for package: php71w-intl-7.1.33-1.w7.x86_64\n---> Package php71w-mbstring.x86_64 0:7.1.33-1.w7 will be installed\n---> Package php71w-mysqlnd.x86_64 0:7.1.33-1.w7 will be installed\n--> Processing Dependency: php71w-pdo(x86-64) = 7.1.33-1.w7 for package: php71w-mysqlnd-7.1.33-1.w7.x86_64\n---> Package php71w-opcache.x86_64 0:7.1.33-1.w7 will be installed\n---> Package php71w-pear.noarch 1:1.10.4-1.w7 will be installed\n--> Processing Dependency: php71w-posix for package: 1:php71w-pear-1.10.4-1.w7.noarch\n---> Package php71w-pecl-apcu.x86_64 0:5.1.9-1.w7 will be installed\n---> Package php71w-pecl-imagick.x86_64 0:3.4.3-1.w7 will be installed\n--> Processing Dependency: libMagickWand.so.5()(64bit) for package: php71w-pecl-imagick-3.4.3-1.w7.x86_64\n--> Processing Dependency: libMagickCore.so.5()(64bit) for package: php71w-pecl-imagick-3.4.3-1.w7.x86_64\n---> Package php71w-soap.x86_64 0:7.1.33-1.w7 will be installed\n---> Package php71w-xml.x86_64 0:7.1.33-1.w7 will be installed\n--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.24)(64bit) for package: php71w-xml-7.1.33-1.w7.x86_64\n--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.22)(64bit) for package: php71w-xml-7.1.33-1.w7.x86_64\n--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.18)(64bit) for package: php71w-xml-7.1.33-1.w7.x86_64\n--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.13)(64bit) for package: php71w-xml-7.1.33-1.w7.x86_64\n--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.11)(64bit) for package: php71w-xml-7.1.33-1.w7.x86_64\n--> Processing Dependency: libxslt.so.1()(64bit) for package: php71w-xml-7.1.33-1.w7.x86_64\n--> Processing Dependency: libexslt.so.0()(64bit) for package: php71w-xml-7.1.33-1.w7.x86_64\n--> Running transaction check\n---> Package libX11.x86_64 0:1.6.7-2.el7 will be installed\n--> Processing Dependency: libX11-common >= 1.6.7-2.el7 for package: libX11-1.6.7-2.el7.x86_64\n--> Processing Dependency: libxcb.so.1()(64bit) for package: libX11-1.6.7-2.el7.x86_64\n---> Package libXpm.x86_64 0:3.5.12-1.el7 will be installed\n---> Package libicu.x86_64 0:50.2-4.el7_7 will be installed\n---> Package libjpeg-turbo.x86_64 0:1.2.90-8.el7 will be installed\n---> Package libxslt.x86_64 0:1.1.28-5.el7 will be installed\n---> Package php71w-pdo.x86_64 0:7.1.33-1.w7 will be installed\n---> Package php71w-pecl-imagick.x86_64 0:3.4.3-1.w7 will be installed\n--> Processing Dependency: libMagickWand.so.5()(64bit) for package: php71w-pecl-imagick-3.4.3-1.w7.x86_64\n--> Processing Dependency: libMagickCore.so.5()(64bit) for package: php71w-pecl-imagick-3.4.3-1.w7.x86_64\n---> Package php71w-process.x86_64 0:7.1.33-1.w7 will be installed\n--> Running transaction check\n---> Package libX11-common.noarch 0:1.6.7-2.el7 will be installed\n---> Package libxcb.x86_64 0:1.13-1.el7 will be installed\n--> Processing Dependency: libXau.so.6()(64bit) for package: libxcb-1.13-1.el7.x86_64\n---> Package php71w-pecl-imagick.x86_64 0:3.4.3-1.w7 will be installed\n--> Processing Dependency: libMagickWand.so.5()(64bit) for package: php71w-pecl-imagick-3.4.3-1.w7.x86_64\n--> Processing Dependency: libMagickCore.so.5()(64bit) for package: php71w-pecl-imagick-3.4.3-1.w7.x86_64\n--> Running transaction check\n---> Package libXau.x86_64 0:1.0.8-2.1.el7 will be installed\n---> Package php71w-pecl-imagick.x86_64 0:3.4.3-1.w7 will be installed\n--> Processing Dependency: libMagickWand.so.5()(64bit) for package: php71w-pecl-imagick-3.4.3-1.w7.x86_64\n--> Processing Dependency: libMagickCore.so.5()(64bit) for package: php71w-pecl-imagick-3.4.3-1.w7.x86_64\n--> Finished Dependency Resolution\n You could try using --skip-broken to work around the problem\n You could try running: rpm -Va --nofiles --nodigest\n"]}
to retry, use: --limit @/root/playbooks/lvemp7.retry
 
PLAY RECAP ********************************************************************************************
127.0.0.1                  : ok=36   changed=3    unreachable=0    failed=1   
 
You have new mail in /var/spool/mail/root
 

 



 
  • mkguy10
  • Newbie
  • Trial users
  • Join Date: 23-Sep 20
  • 1 posts

Posted 23 September 2020 - 01:03 PM #2

I am having the same problem  :-( on CentOS7. Please advise.

 

Thanks!