AAROC / CODE-RADE

Website, documentation and such for the CODE-RADE project
http://www.africa-grid.org/CODE-RADE
Apache License 2.0
5 stars 5 forks source link

playbook run off clean machine goes to wizard setup. #112

Closed brucellino closed 7 years ago

brucellino commented 7 years ago

Failed task :

 ___________________________________________________
/ TASK [CODE-RADE-jenkins-role : Ensure that CLI is \
\ available]                                        /
 ---------------------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

fatal: [196.21.182.7]: FAILED! => {"cache_control": "must-revalidate,no-cache,no-store", "changed": false, "connection": "close", "content": "<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/>\n<title>Error 401 Invalid password/token for user: admin</title>\n</head>\n<body><h2>HTTP ERROR 401</h2>\n<p>Problem accessing /cli. Reason:\n<pre>    Invalid password/token for user: admin</pre></p><hr><i><small>Powered by Jetty://</small></i><hr/>\n\n</body>\n</html>\n", "content_length": "345", "content_type": "text/html; charset=ISO-8859-1", "date": "Fri, 28 Oct 2016 08:51:57 GMT", "failed": true, "msg": "Status code was not [200]: HTTP Error 401: Invalid password/token for user: admin", "redirected": false, "server": "Jetty(9.2.z-SNAPSHOT)", "status": 401, "url": "http://196.21.182.7:8080/cli", "www_authenticate": "Basic realm=\"Jenkins\"", "x_content_type_options": "nosniff"}
brucellino commented 7 years ago

The issue here is to avoid the "wizard setup"

Some hints :

http://stackoverflow.com/questions/36604504/configure-jenkins-2-0-with-ansible#

Seems also to be addressed in https://github.com/geerlingguy/ansible-role-jenkins/issues/50