0
我想在顛沛流離的虛擬機中安裝的Java與ansible我如何鍵入「ansible-劇本」命令的輸出返回該錯誤:錯誤的VM(流浪&Ansible)instaling的java
FAILED! => {"changed": false, "cmd": "apt-key add -", "failed": true, "msg": "gpg: no valid OpenPGP data found.", "rc": 2, "stderr": "gpg: no valid OpenPGP data found.\n", "stdout": "", "stdout_lines": []}
的.yml文件是這樣的:
- name: Add the webupd8 APT repository key
tags:
- java
- java-webupd8
apt_key: data="{{ lookup('file', 'webupd8.key.asc') }}" state=present
# Use a static file because right now using just an ID fails
- name: Add the webupd8 APT repository
tags:
- java
- java-webupd8
apt_repository: repo="deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" state=present
好了,我想那是因爲我在apt_key變量將錯誤的值,但我不知道我應該穿上它。
在此先感謝
謝謝老兄!它運作良好! –