더 이상 항목 목록을 사용하여 소프트웨어를 설치할 수 없습니다.더 이상 목록을 사용하여 소프트웨어를 설치할 수 없습니다.
저는 문제가 있는지 git에 주석 처리했습니다. 그것은 nano가 실패 할 것이라고 밝혀졌습니다.
내 작업 :
- name: Install git, nano, curl, wget, unzip and mercurial
apt: name={{item}} state=installed
with_items:
# - git
- nano
- curl
- wget
- unzip
- mercurial
오류 :
TASK [common : Install git, nano, curl, wget, unzip and mercurial] *************
failed: [local_vm] (item=[u'nano', u'curl', u'wget', u'unzip', u'mercurial']) => {"failed": true, "item": ["nano", "curl", "wget", "unzip", "mercurial"], "msg": "No package(s) matching '['nano'' available"}
아마도 별도의 견적을 것 어둠 속에서 자상?
[email protected]:~$ sudo apt-get install nano
Reading package lists... Done
Building dependency tree
Reading state information... Done
nano is already the newest version (2.5.3-2ubuntu2)
내가 Ansible 2.2.0
업데이트 # 1
클라이언트파이썬 2.7.6, 파이썬 2.7.12을 실행 해요 : 내 서버의 콘솔에서
서버에.
업데이트 # 2
중 하나에서 Windows 리눅스 서브 시스템에 의해 배신있어 또는 Ansible 2.2.0가 문제입니다. 나는 다른 VM (CentOS 7)에서 Ansible 2.3이 설치되어 있고 동일한 스크립트가 정상적으로 작동 했었습니다.
PPA를 통해 2.4로 업그레이드 할 수있었습니다. 다시 작동합니다. – TekiusFanatikus