호스트가 그룹에 속하지 않는 경우에만 작업 실행 현재 플레이 북의 호스트가 특정 그룹에 속하지 않는 경우에만 ansible 작업을 실행하고 싶습니다 . 반 의사 코드에서 : - name: my command command: echo stuff when: "if {{ ansible_hostname }} not in {{ ansible_current_groups }}" 어떻게해야합니까? 이를 수행하는 또 다른 방법은 다음과 같습니다. - name: my command command: echo stuff when: "'groupname' not in group_names" group_nameshttp://docs.ansible.com/playbooks_variables.html#magic-variables-a..