Ansible実践ガイド第2版 #1
はじめに
雰囲気で使っていた(こらこら)Ansibleをちゃんと理解せねばということで、こちらのガイドの写経をはじめたいと思います。今まで章ごとに記事を書いていたのですが、勉強回数ごとに変えます。そのほうが楽にブログアップできると気が付きました。楽に多くのアウトプットをしていきたいです。
2-2 Ansibleのインストール
実行したら、amazon-linux-extrasでansible落とせるよと教えてもらえました。
$ sudo yum install -y ansible Loaded plugins: extras_suggestions, langpacks, priorities, update-motd No package ansible available. Error: Nothing to do ansible is available in Amazon Linux Extra topic "ansible2" To use, run # sudo amazon-linux-extras install ansible2 Learn more at https://aws.amazon.com/amazon-linux-2/faqs/#Amazon_Linux_Extras
amazon-linux-extrasはについては以下。特定のソフトウェアに限って、最新の安定板を試せるコマンドでExtra Packages for Enterprise Linux (EPEL) のような位置づけみたいです。
$ amazon-linux-extras help help See list of commands. info See details of a specific package. install Enables specified topics and installs their packages. list Lists topics in the catalog. Some may be enabled. Amazon Linux Extras software topics give you access to the most-recent stable software you specifically choose, without the uncertainty of a wholly new environment. Best practice is to enable only one or two topics. More than that, and you lose the benefits of working in a stable environment.
再度実行。とりあえずインスコだんw
$ sudo amazon-linux-extras install ansible2 Installing ansible Loaded plugins: extras_suggestions, langpacks, priorities, update-motd Cleaning repos: amzn2-core amzn2extra-ansible2 amzn2extra-docker 10 metadata files removed 4 sqlite files removed 0 metadata files removed
ansibleバージョン確認
$ ansible --version
ansible 2.4.6.0
次から設定などやってきますーゆるゆると行きます。