Я пытаюсь установить плагины Jenkins, создав работу Jenkins на localhost (http://localhost:8080/). В этой работе я написал команду оболочки как
ansible-playbook -K scripts/ansible/setup.yml
выдает сообщение об ошибке для каждого плагина, который пойдет для установки.
Мой файл yaml содержит следующий код:
---
- hosts: localhost
become: false
tasks:
- name: Install plugin
set_fact:
jenkins_admin_password: "XXXXXXXXXXX"
no_log: True
- name: Download current plugin updates from Jenkins update site
get_url:
url: http://updates.jenkins-ci.org/update-center.json
dest: "/var/lib/jenkins/updates/default.json"
owner: jenkins
group: jenkins
mode: 0440
- name: Remove first and last line from json file
replace:
path: "/var/lib/jenkins/updates/default.json"
regexp: "1d;$d"
- name: Install Jenkins plugins using password.
jenkins_plugin:
name: "{{ item }}"
jenkins_home: "/var/lib/jenkins/"
url_username: "Test"
url_password: "XXXXXXXXXXX"
timeout: "30"
updates_expiration: "86400"
url: "http://localhost:8080"
with_dependencies: "yes"
with_items:
- "git"
- "copyArtifacts"
- "github-branch-source"
- "github"
when: jenkins_admin_password != ""
notify: restart jenkins
Что я не так делаю?