New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Script also fails in a ubuntu docker instance deployed on my mac #20
Comments
@drosofff Can you paste all the installation log? |
Sorry, I can't on this one because it is terminated now. No worries, I will log a new instance |
here is the error log on a clean docker container run on my mac: root@a37283683e8a: |
in the docker container: root@a37283683e8a:~# ansible --version So the script does not install the proper version of ansible when run in a docker container ? |
@drosofff This is bizarre. Even with the correct the debian/ubuntu apt repo, this docker ubuntu instance installs the old ansible (see line universe ansible all 1.5.4+ in the log you posted). This is the cause of the install failed, but I do not know why this docker instance installs a old version of ansible. Also, ubuntu trusty is not so old to get only ansible 1.5, but maybe this is the reason: ubuntu trusty has only ansible 1.5 apt package. |
@fabiorjvieira this is your problem, actually the ansible repo was not added, because the apt-add-repository command is part of the optional packages. You'd first need to install software-properties-common |
Ops... yeah... I did not see the previous error. I fixed in the install.sh script, but as we discussed in the weekly meeting, this is only for me. |
@fabiorjvieira Can you indicate what has been rewrited (the fix) before closing the issue ? |
@drosofff In file https://github.com/ARTbio/ansible-artimed/blob/master/galaxy/install.sh now the package software-properties-common is installed first, so the command apt-add-repository will be installed before its execution (sudo apt-add-repository ppa:ansible/ansible -y). Therefore, the repo of ansible will be added successfully and the last version will be installed (ansible 1.9). |
@fabiorjvieira Thanks. I tell you whether it works as soon as I have a chance to test ;-) Please don't close the issue until we know it is fixed. |
I have tested. now it crashes like this: invoke-rc.d: policy-rc.d denied execution of restart. |
@drosofff is this all the installation log? If not, can you paste all of it, svp? |
There are differences between a ubuntu docker instance and a ubuntu instance; These differences, principally in installed packages affect the ansible process. Now in the dev branch we need to execute ansible playbooks remotely, not in the target machine itself. This avoids the need of a ansible envoriment in the target machine. |
Submodule path 'galaxy/roles/natefoo.postgresql_objects': checked out '81179c442016a1d5856d18252d89103a3da15be3'
ERROR: replace is not a legal parameter in an Ansible task or handler
Wait until galaxy provide the web service on http://localhost:8080
Press control+c to stop here or enter key to install Galaxy tools...
The text was updated successfully, but these errors were encountered: