Merge branch 'master' of adellam/ansible-roles into master

This commit is contained in:
Andrea Dell'Amico 2020-02-12 18:05:05 +01:00 committed by Gitea
commit 1703e9af48
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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 }}'