Git Product home page Git Product logo

0711_playbook's Introduction

0711_playbook

ansible version

1.9.4 で動作確認中 
2.0系で動くかどうかは不明。sudo yum install epel-release; sudo yum install ansible でインストールしたもの。

playbookを流す前にやるべきこと

実際には、ちゃんとこの部分もかけばいけるものもある。それについては★マークを付ける。

  • sudoer wheel 設定  ★
  • sudo yum install libselinux-python (どこかで入れればよい? selinux 設定まえ) ★
  • 手元のansible control 環境の公開鍵をadminユーザのadmin.pubのリストに追加しておく

コマンド

adminユーザの作成

ansible-playbook -u vagrant -k -c paramiko -i inventories/front_vagrant user-playbook.yml

いろいろセッティング

adminユーザを作成した上で用いる。現在のところ ansible 2.1.0の問題か分からないが、adminユーザに直接入って流そうとすると問題が起こるので-u vagrantでユーザ指定。 ansible-playbook -u vagrant -k -c paramiko -i inventories/front_vagrant front-playbook.yml

userの役割

  • admin: install とかサーバ管理のためにinfra全権を持っているユーザ
  • common: アプリケーションを動かすためのユーザ。sudo権限なし。rubyなどはこのユーザにのみインストールされる

0711_playbook's People

Contributors

yamotuki avatar

Watchers

James Cloos avatar  avatar

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.