Files
ansible-tutorial/roles/with_dict/tasks/main.yml
2025-07-26 08:52:35 +02:00

12 lines
243 B
YAML

- name: Benutzer mit bestimmten Shells anlegen
vars:
users:
alice: /bin/bash
bob: /bin/zsh
carol: /bin/sh
debug:
msg: "Lege neuen User an Name: {{ item.key }} Shell: {{ item.value }}"
with_dict: "{{ users }}"