forked from ISTI-ansible-roles/ansible-roles
Merge branch 'master' of adellam/ansible-roles into master
This commit is contained in:
commit
1703e9af48
|
@ -18,6 +18,8 @@
|
|||
user: name={{ jenkins_username }} generate_ssh_key=True
|
||||
delegate_to: '{{ item }}'
|
||||
with_items: '{{ groups.jenkins_master }}'
|
||||
when: ansible_fqdn == '{{ jenkins_master_hostname }}'
|
||||
run_once: True
|
||||
|
||||
- name: Get the master ssh keys
|
||||
become: True
|
||||
|
|
|
@ -35,12 +35,14 @@
|
|||
when: item.version is not defined
|
||||
with_items: '{{ jenkins_plugins }}'
|
||||
notify: Restart jenkins
|
||||
ignore_errors: True
|
||||
|
||||
- name: Install plugins with a specific version
|
||||
jenkins_plugin: name="{{ item.name }}" state={{ item.state | default('latest') }} version='{{ item.version }}' url={{ jenkins_local_url }} url_username={{ jenkins_access_params.url_username }} url_password={{ jenkins_access_params.url_password }}
|
||||
when: item.version is defined
|
||||
with_items: '{{ jenkins_plugins }}'
|
||||
notify: Restart jenkins
|
||||
ignore_errors: True
|
||||
|
||||
become: True
|
||||
become_user: '{{ jenkins_username }}'
|
||||
|
|
Loading…
Reference in New Issue