1
我正在嘗試在Ansible模塊docker_container
中編寫條件屬性。例如,設置var時添加log_options
。任何想法? Ansible在這項任務中似乎並不富有彈性。在Ansible模塊中寫入條件碼頭屬性
name: vault
become: yes
docker_container:
name: vault
image: vault
state: started
restart: yes
network_mode: host
command: server
capabilities:
- IPC_LOCK