べにやまぶろぐ

技術寄りの話を書くつもり

2014-05-28から1日間の記事一覧

Ansible でファイル内に変数を使う場合は copy ではなく template で。

バージョン : Ansible 1.5.5 小ネタ3連投で恐縮ですが、例えば Ansible で Nginx 入れるよってとき nginx.conf を下記のように配置していたわけです。 - copy: src="templates/nginx/nginx.conf" dest="/etc/nginx/nginx.conf" owner=nginx group=nginx で…

Ansible error fatal: must be stored as a dictionary/hash とかいって Ansible さんに怒られる

バージョン : Ansible 1.5.5 表題の通りなのですが jenkins_ip:"192.168.33.10" とか書くと Ansible error fatal: must be stored as a dictionary/hash とか言ってコケるわけです。 調べてみると Ansible error fatal: must be stored as a dictionary/hash…

サブディレクトリを切って Jenkins さんを走らせるときは JENKINS_ARGS の確認を忘れずに。

バージョン : Jenkins 1.564 Jenkins さんだけ xxx.xxx.xxx.xxx:8080 とか野ざらしで可哀想…と思って Nginx のリバースプロキシ傘下に加えて http://hoge.hage.jp/jenkins とかでアクセスさせようと試みたのですがうまくいかない。何度やっても file not fou…