7
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

CentOS5へAnsibleを実行するときの注意

Last updated at Posted at 2014-06-17

Ansibleの実行には対象に python-simplejson が入っている必要がある。

run.sh
ansible all -i hosts -m raw \
  -a "(rpm -qa | grep python-simplejson) || yum -y install python-simplejson" -s
ansible-playbook -i hosts "ranger/book.yml"
ansible-playbook -i hosts "account/book.yml"
ansible-playbook -i hosts "packages/book.yml"
ansible-playbook -i hosts "customize/book.yml"

こんな感じで最初にインストールさせればよい。

  • debian5も入っていなかったのでpython-simplejsonを入れた
7
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?