diff --git a/site.yaml b/site.yaml index 7cdaf6c..0f89754 100644 --- a/site.yaml +++ b/site.yaml @@ -15,7 +15,11 @@ register: pythoncheck - name: install debian python ansible.builtin.raw: apt-get update && apt-get install python3 -y - when: pythoncheck.rc == 127 + when: not ansible_check_mode and pythoncheck.rc == 127 + - name: pretend installing debian python for check mode + ansible.builtin.debug: + msg: Pretending to install python... + when: ansible_check_mode - name: Prepare incus server host hosts: host_system