Closed ejournet closed 7 years ago
apt_repository
ansible 2.2.0.0
N/A
CentOS release 6.8 (Final)
When trying to execute a playbook such as :
On a Debian 8 host, i get : FAILED! => {"changed": false, "failed": true, "msg": "Invalid repository string: ppa:webupd8team/java"}
--- - hosts: CLIENT user: root tasks: - name : install python software properties apt: name=python-software-properties state=latest - name: add repo for java 8 apt_repository: repo='ppa:webupd8team/java' state=present - name : debconf for java 8 debconf: name='oracle-java8-installer' question='shared/accepted-oracle-license-v1-1' value='true' vtype='select' - name : install java 8 apt: name=oracle-java8-installer state=latest update-cache=yes force=yes
All OK or changed, and java 8 installed
fatal: [10.8.3.134]: FAILED! => { "changed": false, "failed": true, "invocation": { "module_args": { "filename": null, "install_python_apt": true, "mode": null, "repo": "ppa:webupd8team/java", "state": "present", "update_cache": true, "validate_certs": true }, "module_name": "apt_repository" }, "msg": "Invalid repository string: ppa:webupd8team/java" }
This repository has been locked. All new issues and pull requests should be filed in https://github.com/ansible/ansible
Please read through the repomerge page in the dev guide.
ISSUE TYPE
COMPONENT NAME
apt_repository
ANSIBLE VERSION
CONFIGURATION
N/A
OS / ENVIRONMENT
CentOS release 6.8 (Final)
SUMMARY
When trying to execute a playbook such as :
On a Debian 8 host, i get : FAILED! => {"changed": false, "failed": true, "msg": "Invalid repository string: ppa:webupd8team/java"}
STEPS TO REPRODUCE
EXPECTED RESULTS
All OK or changed, and java 8 installed
ACTUAL RESULTS