Invalid Repository String - Debian Jessie 8
ejournet opened this issue · 1 comments
ejournet commented
ISSUE TYPE
- Bug Report
COMPONENT NAME
apt_repository
ANSIBLE VERSION
ansible 2.2.0.0
CONFIGURATION
N/A
OS / ENVIRONMENT
CentOS release 6.8 (Final)
SUMMARY
When trying to execute a playbook such as :
- name: add repo for java 8
apt_repository: repo='ppa:webupd8team/java' state=present
On a Debian 8 host, i get :
FAILED! => {"changed": false, "failed": true, "msg": "Invalid repository string: ppa:webupd8team/java"}
STEPS TO REPRODUCE
---
- 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
EXPECTED RESULTS
All OK or changed, and java 8 installed
ACTUAL RESULTS
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"
}
ansibot commented
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.