Skip to content
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

install fails on ubuntu 14.04 "Could not replace file" #6

Closed
meconlin opened this issue Mar 4, 2016 · 1 comment
Closed

install fails on ubuntu 14.04 "Could not replace file" #6

meconlin opened this issue Mar 4, 2016 · 1 comment

Comments

@meconlin
Copy link

meconlin commented Mar 4, 2016

I am attempting to install java8 on some AWS instances running ubuntu14.04.

Ansible 2.0.1

The install fails when trying to alter the sources.list
Other recipes run fine on this host.

My playbook main looks like this:

- hosts: master
  sudo: yes
  roles:
    - ansible-java8-oracle
TASK [ansible-java8-oracle : Add Oracle Java Repository] ***********************
fatal: [ip-192-168-16-111.vpc.my.domain]: FAILED! => {"changed": false, "failed": true, "module_stderr": "", "module_stdout": "{\"msg\": \"Could not replace file: /etc/apt/.sources.list-x0ooTA to /etc/apt/sources.list: [Errno 1] Operation not permitted\", \"failed\": true, \"invocation\": {\"module_args\": {\"install_python_apt\": true, \"repo\": \"ppa:webupd8team/java\", \"state\": \"present\", \"update_cache\": true, \"mode\": 420, \"validate_certs\": true}}}\r\nException OSError: (2, 'No such file or directory', '/etc/apt/.ansible_tmp5wIypOsources.list') in <bound method _TemporaryFileWrapper.__del__ of <closed file '<fdopen>', mode 'w+b' at 0x7f963b8e4d20>> ignored\r\n", "msg": "MODULE FAILURE", "parsed": false}
@malk
Copy link
Owner

malk commented Aug 10, 2016

patch #7 should correct this

@malk malk closed this as completed Aug 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants