0
獲取權限被拒絕錯誤時嘗試在詹金斯管道執行ansible腳本面臨的問題,通過詹金斯管道從afrtifactory使用ansible腳本下載aftrifacts
下面是我詹金斯管道腳本
node {
ansiblePlaybook colorized: true, extras: '-e ear_url="ARTIFACTORY URL here"', installation: 'ansible-2.7', playbook: '/etc/ansible/playbooks/deploy.yml', sudo: true
}
ANSIBLE SCRIPT
hosts: tibco
user: root
sudo: yes
connection: ssh
gather_facts: no
vars:
my_ear: "{{ear_url}}"
ear_location: /tmp/EARS
tasks:
- name: Download the ear file from the artifactory
get_url:
url: "{{my_ear}}"
dest: "{{ear_location}}"
請幫我一把。
如何設定正確的憑據(root用戶密鑰文件)? –
你在Artufactory的artifactory.log和request.log中看到什麼?正如@ KonstantinSuvorov所說,看起來你沒有Artifactory的憑據,因此拒絕了權限。 – Ariel