일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- archlinux
- terraform
- Docker
- pacman
- Linux
- Kubernetes
- OpenStack
- k8s
- nfs-provisioner
- i3
- ubuntu
- repository
- awx
- golang
- ceph-ansible
- port open
- kolla
- KVM
- Octavia
- Arch
- cloud-init
- ceph
- yum
- libvirt
- Ansible
- Kubeflow
- grafana-loki
- kolla-ansible
- HTML
- cephadm
Archives
- Today
- Total
YJWANG
유용한 Ansible vars(cfg value) 본문
- ansible_port
The ssh port number, if not 22 - ansible_user
The default ssh user name to use. - ansible_ssh_pass
The ssh password to use (never store this variable in plain text; always use a vault. See Variables and Vaults) - ansible_ssh_private_key_file
Private key file used by ssh. Useful if using multiple keys and you don’t want to use SSH agent. - ansible_become
Equivalent to ansible_sudo or ansible_su, allows to force privilege escalation - ansible_become_method
Allows to set privilege escalation method - ansible_become_user
Equivalent to ansible_sudo_user or ansible_su_user, allows to set the user you become through privilege escalation
inventory vars tip
자주 쓰는 것들
[all:vars]
ansible_connection=ssh
ansible_user=root
ansible_ssh_pass=test123
ansible_become_pass=test123
ansible_ssh_common_args='-o StrictHostKeyChecking=no'
Ansible config tip
# cat ansible.cfg
[defaults]
host_key_checking = False
반응형