Skip to content

Commit

Permalink
Update AnsiblePlayBook.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGhostRoot authored Sep 12, 2023
1 parent de6174f commit 31d0a1a
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion AnsiblePlayBook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,20 @@
connection: local
tasks:

- name: "Download Apache Maven"
get_url: url=http://apache.claz.org/maven/maven-3/3.1.1/binaries/apache-maven--bin.tar.gz dest=/tmp/apache-maven-3.1.1-bin.tar.gz

- name: "Untar Maven "
shell: chdir=/tmp creates=/opt/apache-maven-3.1.1 tar -zxf apache-maven-3.1.1-bin.tar.gz -C /opt

- name: "Update path for maven use"
shell: export PATH=/opt/apache-maven-3.1.1/bin:$PATH

- name: "Make Maven Wrapper"
shell: mvn wrapper:wrapper

- name: "Build with Maven"
shell: "mvn -B clean package"
shell: "./mvnw -B clean package"
register: "output"

- debug: var=output.stdout_lines

0 comments on commit 31d0a1a

Please sign in to comment.