Skip to content

Instantly share code, notes, and snippets.

View hatsari's full-sized avatar

HatSAri-KIM_YONGKI hatsari

  • Red Hat, Previously
  • Seoul
View GitHub Profile
@hatsari
hatsari / ansible_replace_the_value_of_dic_variable.yaml
Last active December 23, 2024 18:40
ansible replace the value of dictionary variable
---
### ref: https://stackoverflow.com/questions/48825583/in-ansible-how-do-you-change-a-existing-dictionary-hash-values-using-a-variable
- name: replace the value of dictionary variable
hosts: localhost
gather_facts: no
vars:
fact_process:
cmd_check: ok
cmd_name: node1
cmd_status: error
@hatsari
hatsari / gist:541de415cb75c52a36e883361915dd26
Created August 29, 2018 00:27
ansible-vault to encrypt private secret
$ vi private_secrets.txt
$ cat private_secrets.txt
#사이트 접속 비밀번호
#update: 2020.08.08
#
#gmail.com: 비밀번호
#naver.com: n비밀번호
#clien.com: c비밀번호
#### make it encrypt