2017-02-02から1日間の記事一覧

ansibleのlineinfile での落とし穴

bindの社内DNSのゾーン設定をansibleで自動化しようとしていたところ、 下記の記述だと、resolver 1のタスク しかincludeステートメントが追加されていなかった。 - name: resolver 1 lineinfile: dest={{namedconf}} insertafter="^###localhost_resolver" …