devops-coop / ansible-haproxy

Installs and configure HAProxy
Apache License 2.0
96 stars 97 forks source link

fix --check command #93

Closed publicarray closed 7 years ago

publicarray commented 7 years ago

stops this error when ansible is run with the --check command

fatal: [x.x.x.x]: FAILED! => {"failed": true, "msg": "The conditional check 'ansible_pkg_mgr == \"yum\" and
 epel_repo_check is defined and epel_repo_check.rc != 0' failed. The error was: error while evaluating 
conditional (ansible_pkg_mgr == \"yum\" and epel_repo_check is defined and epel_repo_check.rc != 0):
 'dict object' has no attribute 'rc'\n\nThe error appears to have been in '/usr/local/etc/ansible/roles/devops-
coop.haproxy/tasks/install.yml': line 14, column 3, but may\nbe elsewhere in the file depending on the exact
 syntax problem.\n\nThe offending line appears to be:\n\n\n- name: 'Add epel repo'\n  ^ here\n"}
benwebber commented 7 years ago

:+1: Thanks!