debops-contrib / ansible-checkmk_server

Setup Check_MK monitoring server
GNU General Public License v3.0
9 stars 3 forks source link

"Set local httpd user passwords" task fails on Debian Stretch #60

Open ganto opened 7 years ago

ganto commented 7 years ago

Role is affected by upstream issue ansible/ansible#20199. This means if the Ansible host is running Ansible < 2.3.2 or < 2.4.0 and the Check_MK server is running Debian Stretch with python-passlib-1.7.0-2 the playbook run will abort with the following error:

TASK [debops-contrib.checkmk_server : Set local httpd user passwords] ***************************************************************************************************
[...]
failed: [debian-default-2134769] (item=ansible) => {
    "failed": true, 
    "invocation": {
        "module_args": {
            "attributes": null, 
            "backup": null, 
            "content": null, 
            "create": true, 
            "crypt_scheme": "md5_crypt", 
            "delimiter": null, 
            "directory_mode": null, 
            "follow": false, 
            "force": null, 
            "group": null, 
            "mode": null, 
            "name": "ansible", 
            "owner": null, 
            "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", 
            "path": "/opt/omd/sites/debops/etc/htpasswd", 
            "regexp": null, 
            "remote_src": null, 
            "selevel": null, 
            "serole": null, 
            "setype": null, 
            "seuser": null, 
            "src": null, 
            "state": "present", 
            "unsafe_writes": null
        }
    }, 
    "item": "ansible", 
    "msg": "invalid version number '1.7.0.post20170423015547'"
}

Work-Around: Until a fixed Ansible version is released, apply patch ansible/ansible#20202 manually to your currently used Ansible installation.