Giter VIP home page Giter VIP logo

ansible-maven's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m @tecris
  • ๐Ÿ‘€ Just playing with GitHub README

ansible-maven's People

Contributors

aksharpanchal avatar dewthefifth avatar tecris avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ansible-maven's Issues

Downloads Maven Every Time

I'm using this role as a dependency of a different role I've written and every time ansible runs it will redownload the maven installation. I think it would be preferable if it checked whether maven was already installed before downloading.

Please update the minimum ansible version

The file download from a remote url was introduced in Ansible 2.0. I tried running this role with ansible 1.9 and it fails. Can you please update the minimum ansible version accordingly ?

Cheers,
karthikcru

interactive, not login shell support

Task

  • name: Maven path configuration

will not work for not login shells (e.g. when role is used with docker containers), where /etc/profile is not used.
Modifying ~/.bashrc solves the issue:

- name: Maven path configuration
  blockinfile:
    path: /root/.bashrc
    block: |
      M2_HOME={{maven_home_parent_directory}}/apache-maven-{{maven_version}}
      PATH=$PATH:$M2_HOME/bin
    state: present

Support for Ansible running Python3 on a Mac

Macbook
System Version: macOS 10.12.6 (16G29)
Kernel Version: Darwin 16.7.0

brew install python3
python3 --version
Python 3.6.3
  • pip3 installed ansible
sudo -H pip3 install ansible
  • Install tecris.maven
ansible-galaxy install tecris.maven -vvv

Error reported:

ansible-galaxy 2.4.0.0
  config file = None
  configured module search path = ['/Users/bob/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.6/site-packages/ansible
  executable location = /usr/local/bin/ansible-galaxy
  python version = 3.6.3 (default, Oct 13 2017, 15:50:37) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.37)]
No config file found; using defaults
Opened /Users/bob/.ansible_galaxy
Processing role tecris.maven
Opened /Users/bob/.ansible_galaxy
- downloading role 'maven', owned by tecris
https://galaxy.ansible.com/api/v1/roles/?owner__username=tecris&name=maven
https://galaxy.ansible.com/api/v1/roles/7576/versions/?page_size=50
ERROR! Unexpected Exception, this is probably a bug: '<' not supported between instances of 'int' and 'str'
the full traceback was:

Traceback (most recent call last):
  File "/usr/local/bin/ansible-galaxy", line 106, in <module>
    exit_code = cli.run()
  File "/usr/local/lib/python3.6/site-packages/ansible/cli/galaxy.py", line 150, in run
    self.execute()
  File "/usr/local/lib/python3.6/site-packages/ansible/cli/__init__.py", line 154, in execute
    fn()
  File "/usr/local/lib/python3.6/site-packages/ansible/cli/galaxy.py", line 392, in execute_install
    installed = role.install()
  File "/usr/local/lib/python3.6/site-packages/ansible/galaxy/role.py", line 236, in install
    loose_versions.sort()
  File "/usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/version.py", line 52, in __lt__
    c = self._cmp(other)
  File "/usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/version.py", line 337, in _cmp
    if self.version < other.version:
TypeError: '<' not supported between instances of 'int' and 'str'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.