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 75c46f1 commit 2b1b895
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions AnsiblePlayBook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,25 @@
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: "mvn -B clean package"
shell: "mvn -B clean package --file Hearty-Levels/pom.xml"
register: "output"

- name: "Update GIT"
shell: git add * && git commit -m "Ansible is WORKING" && git push origin

- debug: var=output.stdout_lines


0 comments on commit 2b1b895

Please sign in to comment.