티스토리 뷰
Changed how to use after version 2.5.
Ansible Version: 2.5 or later
Create a vault password file and encrypt using Openssl
# Create a plain text password file and input password
$ vi .vault_pass_org
# Encrypt a password file using OpenSSL
$ sudo openssl aes-256-cbc -salt -in .vault_pass_org -out .vault_pass
enter aes-256-cbc encryption password:
Verifying - enter aes-256-cbc encryption password:
Add option to ansible.cfg
[defaults]
vault_identity_list = files@./.vault_pass
Encrypt a variable file
$ ansible-vault encrypt secrets.yml
Ansible Version: Before 2.5
Create a vault password file
$ ansible-vault create .vault_pass
Add option to ansible.cfg
[defaults]
vault_password_file = ./.vault_pass
Encrypt a variable file
$ ansible-vault encrypt secrets.yml
'DevOps > Ansible' 카테고리의 다른 글
Ansible: 특정 패턴의 파일들을 찾아서 삭제하기 (0) | 2022.10.05 |
---|---|
Ansible: When Variable Is – Defined | Exists | Empty | True (0) | 2021.06.22 |
Ansible Vault 사용법 (0) | 2019.09.11 |
Ansible: UNREACHABLE!: Failed to connect to the host via ssh: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password,keyboard-interactive) (0) | 2019.04.26 |
Ansible: Yaml 데이터 출력 시 앞에 u 붙을 경우 제거하는 방법 (0) | 2019.01.25 |
Include Playbook (Playbook 에서 Playbook 인클루드) (0) | 2018.08.27 |
[Ansible/엔시블/엔서블] Ansible 교육 자료 - 02. Playbooks (1) | 2018.08.23 |
[Ansible/엔시블/엔서블] Ansible 교육 자료 - 01. Introduction (2) | 2018.08.23 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- Password manager
- Linux
- Nexus
- 쓰레드덤프
- JVM
- Jenkins
- nginx
- iTerm2
- openssl
- 리눅스
- Thread Dump
- PostgreSQL
- 데브옵스
- vagrant
- 플레이북
- Config History
- 파이프라인
- groovy
- Docker
- 엔서블
- rsync
- DevOps
- 젠킨스
- Ansible
- Playbook
- ssl
- URL Encoding
- rundeck
- Shell Script
- 엔시블
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
글 보관함