0
안녕하세요 저는 전에 일한 이전 IT 직원으로부터받은 다음 작업 구조를 가지고 있습니다.수행 할 수있는 작업이 실행됩니까?
- hosts: "{{env}}"
vars:
workspace: "{{ hostvars[localhost]['workspace'] }}"
post_build: false
tasks:
- name: Delete log module folder on remote
file: blabla
state=absent
when: post_build
- name: Copy login folder to remote
copy:src='blabla'
when: post_build
작업이 실행 되나요, 실행되지 않을까요? post_build
변수가 시작될 때 false
으로 설정되기 때문입니다. 그러나 작업은 post_build
이 참인 경우에만 실행됩니다. 이 경우 우리는 왜 그 일들이 필요한가?
지우기. 고맙습니다. – GergA