5 changed files with 32 additions and 1 deletions
@ -0,0 +1,6 @@ |
|||
- hosts: "{{ target }}" |
|||
gather_facts: false |
|||
remote_user: pi |
|||
roles: |
|||
- retries |
|||
|
@ -0,0 +1,8 @@ |
|||
- name: Warte bis Container läuft |
|||
docker_container_info: |
|||
name: homeassistant |
|||
register: container_info |
|||
until: container_info.container.State.Status == "running" |
|||
retries: 20 |
|||
delay: 3 |
|||
# Wartet bis Container vollständig gestartet ist |
@ -0,0 +1,11 @@ |
|||
- 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 }}" |
|||
|
@ -0,0 +1,6 @@ |
|||
- hosts: "{{ target }}" |
|||
gather_facts: false |
|||
remote_user: pi |
|||
roles: |
|||
- with_dict |
|||
|
Loading…
Reference in new issue