forked from ISTI-ansible-roles/ansible-roles
21 lines
693 B
YAML
21 lines
693 B
YAML
---
|
|
- block:
|
|
- name: Create the maven setting directory
|
|
file: dest={{ jenkins_dest }}/{{ item }} state=directory
|
|
with_items: '{{ jenkins_maven_settings_dirs }}'
|
|
|
|
- name: Fetch the maven settings template file
|
|
become: False
|
|
become_user: root
|
|
run_once: True
|
|
get_url: url={{ jenkins_maven_settings_url }} dest=/tmp/settings.xml.j2 force=yes
|
|
delegate_to: localhost
|
|
|
|
- name: Install the maven settings
|
|
template: src=/tmp/settings.xml.j2 dest={{ jenkins_dest }}/.m2/settings.xml
|
|
|
|
become: True
|
|
become_user: '{{ jenkins_username }}'
|
|
when: jenkins_maven_config
|
|
tags: [ 'jenkins', 'jenkins_common', 'jenkins_master', 'jenkins_slave' ]
|