Saya ingin menjalankan tugas yang mungkin hanya jika host dari pedoman saat ini bukan milik grup tertentu. Dalam kode semi pseudo:
- name: my command
command: echo stuff
when: "if {{ ansible_hostname }} not in {{ ansible_current_groups }}"
Bagaimana saya harus melakukan ini?
This one looks easy to fix. It seems that there is a value started with a quote, and the YAML parser is expecting to see the line ended with the same kind of quote.