Commits

James  committed 23288ff

Configured maint server playbook that installs java and maven

  • Participants
  • Parent commits a2ab049

Comments (0)

Files changed (4)

File playbooks/files/apache-maven.repo

+[epel-apache-maven]
+name=maven from apache foundation.
+baseurl=http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-6Server/$basearch/
+enabled=1
+skip_if_unavailable=1
+gpgcheck=0
+
+[epel-apache-maven-source]
+name=maven from apache foundation. - Source
+baseurl=http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-6Server/SRPMS
+enabled=0
+skip_if_unavailable=1
+gpgcheck=0

File playbooks/maint-server.yml

+---
+- hosts: maint
+  user: root 
+
+  tasks:
+    - include: java.yml
+    - include: maven.yml

File playbooks/maven.yml

+---
+- name: Maven | Install apache-maven yum repo
+  action: copy src=files/apache-maven.repo dest=/etc/yum.repos.d/
+
+- name: Maven | Install Maven
+  action: yum name=apache-maven state=present
+
+- name: Maven | Symlink mvn binary
+  action: file path=/usr/bin/mvn src=/usr/share/apache-maven/bin/mvn state=link
 - name: setup common
   include: ./playbooks/common.yml
 
+- name: setup maint
+  include: ./playbooks/maint-server.yml
+
 - name: setup sql
   include: ./playbooks/mysql-server.yml