silpion / ansible-tomcat

Manage installation of Tomcat
Apache License 2.0
64 stars 57 forks source link

Vanilla install fails #10

Closed pards closed 9 years ago

pards commented 9 years ago

Running from Vagrant with "ubuntu/trusty64", I get the following error.

TASK: [groover.tomcat | Assert platform is supported] ************************* 
<192.168.150.47> ESTABLISH CONNECTION FOR USER: vagrant
ok: [target] => {"msg": "all assertions passed"}

TASK: [groover.tomcat | Load version vars] ************************************ 
<192.168.150.47> ESTABLISH CONNECTION FOR USER: vagrant
ok: [target] => (item=/etc/ansible/roles/groover.tomcat/vars/versions/7.0.57.yml) => {"ansible_facts": {"tomcat_redis_sha256sum": "1ce390049ed23143e3db0c94781c1e88a4d1b39ceb471c0af088a0c326d637cb"}, "item": "/etc/ansible/roles/groover.tomcat/vars/versions/7.0.57.yml"}

TASK: [groover.tomcat | Assert version vars] ********************************** 
<192.168.150.47> ESTABLISH CONNECTION FOR USER: vagrant
ok: [target] => {"msg": "all assertions passed"}

TASK: [groover.tomcat | Install local ansible data path directory (local)] **** 
<127.0.0.1> REMOTE_MODULE file state=directory owner=0 group=0 mode=2777 dest=/usr/local/src/ansible/data
<127.0.0.1> EXEC ['/bin/sh', '-c', 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1433794205.76-27770763108460 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1433794205.76-27770763108460 && echo $HOME/.ansible/tmp/ansible-tmp-1433794205.76-27770763108460']
<127.0.0.1> PUT /tmp/tmp9INWKg TO /home/administrator/.ansible/tmp/ansible-tmp-1433794205.76-27770763108460/file
<127.0.0.1> EXEC /bin/sh -c 'sudo -k && sudo -H -S -p "[sudo via ansible, key=dywrfvmvlomvkbqjswhewxzpswpjtaqe] password: " -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-dywrfvmvlomvkbqjswhewxzpswpjtaqe; LANG=C LC_CTYPE=C /usr/bin/python /home/administrator/.ansible/tmp/ansible-tmp-1433794205.76-27770763108460/file; rm -rf /home/administrator/.ansible/tmp/ansible-tmp-1433794205.76-27770763108460/ >/dev/null 2>&1'"'"''
failed: [target -> 127.0.0.1] => {"failed": true, "parsed": false}
[sudo via ansible, key=dywrfvmvlomvkbqjswhewxzpswpjtaqe] password: 

FATAL: all hosts have already failed -- aborting

My playbook

  - { role: groover.tomcat }
ghost commented 9 years ago

Hi,

this is fixed with upcoming release. I'm currently waiting for approval of a final pull request. If this one has passed, a lot of roles developed at Silpion are getting released which will address all those local download issues reported in a number of roles.

ghost commented 9 years ago

Fixed with current release when updating tomcat role and include util role. Note downloading assets is now managed in util role and defaults to ~/.ansible/assets without requiring superuser privileges.