I am attempting to install java8 on some AWS instances running ubuntu14.04.
- 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}