2023-06-18 13:36:48 +02:00
|
|
|
# Ansible Semaphore
|
2023-06-12 19:12:29 +02:00
|
|
|
|
2023-06-18 13:42:30 +02:00
|
|
|
Ansible mit pip installiert. pip hat neuere Version von ansible.<br />
|
2023-06-18 13:36:48 +02:00
|
|
|
`~/.ssh/config` muß Windows einträge enthalten.
|
|
|
|
keyauth in Windows:
|
2023-06-18 13:39:47 +02:00
|
|
|
[Anleitung](https://woshub.com/using-ssh-key-based-authentication-on-windows/)
|
2023-06-18 13:37:28 +02:00
|
|
|
## Semaphore:
|
2023-06-18 13:43:16 +02:00
|
|
|
Im Environment nichts angegeben. Hier wäre evtl ansible_ssh_user=Administrator denkbar.
|
2023-06-18 13:38:17 +02:00
|
|
|
Im Keysore login mit passwort angegeben. aber alles leer gelassen. hier ginge bestimm auch "ohne"
|
2023-06-18 13:33:14 +02:00
|
|
|
|
|
|
|
|
|
|
|
meine `/etc/ansible/hosts` Datei
|
|
|
|
```
|
|
|
|
[lokal_2019]
|
|
|
|
192.168.252.15
|
|
|
|
[lokal_2019:vars]
|
|
|
|
ansible_ssh_user=Administrator
|
|
|
|
ansible_connection=ssh
|
|
|
|
ansible_shell_type=cmd
|
|
|
|
ansible_ssh_common_args=-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null
|
|
|
|
ansible_ssh_retries=3
|
|
|
|
ansible_become_methode=runas
|
|
|
|
[mws_win]
|
|
|
|
mws-mail
|
|
|
|
mws-server-core
|
|
|
|
mws-wawi
|
|
|
|
mws-terminal
|
|
|
|
mws-terminal2
|
|
|
|
mws-dc2
|
|
|
|
mws-mailstore
|
|
|
|
[mws_win:vars]
|
|
|
|
ansible_ssh_user=Administrator
|
|
|
|
ansible_connection=ssh
|
|
|
|
ansible_shell_type=cmd
|
|
|
|
ansible_ssh_common_args=-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null
|
|
|
|
ansible_ssh_retries=3
|
|
|
|
ansible_become_methode=runas
|
|
|
|
```
|