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 31d0a1a commit 75c46f1
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions AnsiblePlayBook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +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: "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: "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: "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: "Make Maven Wrapper"
# shell: mvn wrapper:wrapper

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

- debug: var=output.stdout_lines

0 comments on commit 75c46f1

Please sign in to comment.