ansible / ansible-modules-core

Ansible modules - these modules ship with ansible
1.3k stars 1.95k forks source link

Invalid Repository String - Debian Jessie 8 #5842

Closed ejournet closed 7 years ago

ejournet commented 7 years ago
ISSUE TYPE
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 :

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 7 years ago

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.