Giter Site home page Giter Site logo

ansible-pyenv's Introduction

Ansible Role: ansible-pyenv

Build Status wercker status

要求

none

Role Variables

pyenvをインストールするユーザ

ANSIBLE_PYENV_PYENV_USER

pyenvをインストールするロケーション

ANSIBLE_PYENV_PYTENV_USER_HOME

pyenvでインストールするPython Version

ANSIBLE_PYENV_PYTHON_VERSION

Example Playbook

- hosts: all
  vars:
    ANSIBLE_PYENV_PYENV_USER: root
    ANSIBLE_PYENV_PYENV_USER_HOME: /root
    ANSIBLE_PYENV_PYTHON_VERSION: 3.4.3
  roles:
    - { role: shogito.pyenv, sudo: true }

License

MIT / BSD

Author Information

ansible-pyenv's People

Contributors

blueyed avatar shogito avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

blueyed

ansible-pyenv's Issues

SSH接続時のテスト

現行のテストではDockerコンテナへ直接接続し、ansibleのローカル実行での検証しかできていない。

ansible-playbook -c local -i inventory site.yml

SSH接続可能なコンテナを準備し、リモート環境へのplaybook実行テストも行う。

チェック対象環境について

CentOS7とUbuntu 14.04についてはAnbileがDockerリポジトリを提供している。
CentOS6及びUbuntu 12.04については自前で用意する必要がある。作ろう。

werckerでDocker環境でのplaybookテストが通らない

wercker.ymlの実行ログ

TASK: [ansible-pyenv | python version check] ********************************** 
failed: [localhost] => {"changed": false, "cmd": "su - root -c 'tty -s && mesg n ; python -V 2>&1' | grep -F 2.7.9", "delta": "0:00:00.022938", "end": "2015-02-23 05:10:24.321363", "rc": 1, "start": "2015-02-23 05:10:24.298425", "warnings": []}
stderr: stdin: is not a tty

処理自体は通ってるようだけどrcが0じゃないのでコケる

role格納先

$WERCKER_ROOT(pipleline/build)に入っちゃうので$WERCKER_SRC(pipeline/build/ansible-pyenv)に格納する。pipeline/buildだとplaybookからroleが探せない。

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.