Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/ToolBox' into ToolBox
Browse files Browse the repository at this point in the history
# Conflicts:
#	.github/workflows/maven.yml
  • Loading branch information
TheGhostRoot committed Oct 19, 2023
2 parents f5c4ab3 + 2b1b895 commit f6da793
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions AnsiblePlayBook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
- name: "Playing with Ansible and Git"
hosts: localhost
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 --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


Binary file not shown.
Binary file not shown.

0 comments on commit f6da793

Please sign in to comment.