DevOps/Ansible2022. 4. 19. 23:48[Ansible] 조건문(Conditionals)

✔️ 조건문 Conditionals — Ansible Documentation In a playbook, you may want to execute different tasks, or have different goals, depending on the value of a fact (data about the remote system), a variable, or the result of a previous task. You may want the value of some variables to depend on the value docs.ansible.com 조건문은 Jinja(템플릿에 사용하는 포맷) 구문이다. 작업에서 when 키워드를 사용하며 조건을 정의하고 test, filter 키워드를 사용한..

image