0
1

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.

PhpStormで楽チンansible-vault

Posted at

はじめに

PhpStorm使ってるともう全部PhpStormでやりたくなりますよね?
ってことで下みたいに今回はansible-vaultのencryptとdecryptをコンテキストメニューでdecrypt、encryptできるよう設定してやりましょう。
使用

設定方法

PhpStormの設定を下記のようにやります。
設定

key value
Name (encryptの場合) encrypt
(decryptの場合) decrypt
Group ansible-vault
Program /usr/local/bin/ansible-vault
Arguments (encryptの場合)
--vault-password-file=/etc/ansible-vault-password encrypt $FilePath$
(decryptの場合)
--vault-password-file=/etc/ansible-vault-password decrypt $FilePath$
Working directory $FileDir$

/etc/ansible-vault-passwordにansible-vaultのパスワードを記載します。

これでOKです!

0
1
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?