Ansible: Unterschied zwischen den Versionen
Stefan (Diskussion | Beiträge) (→Hostname) |
Stefan (Diskussion | Beiträge) (→Hostname) |
||
Zeile 39: | Zeile 39: | ||
93.255.105.6 pi_49 | 93.255.105.6 pi_49 | ||
93.255.105.6 pi_66 | 93.255.105.6 pi_66 | ||
− | + | 93.255.105.6 pi_53 | |
#Dokker Debian | #Dokker Debian | ||
Zeile 55: | Zeile 55: | ||
pi_49 ansible_ssh_port=9722 | pi_49 ansible_ssh_port=9722 | ||
pi_15 ansible_ssh_port=9822 | pi_15 ansible_ssh_port=9822 | ||
+ | pi_53 ansible_ssh_port=9922 | ||
#pi_xx ansible_ssh_port=9922 | #pi_xx ansible_ssh_port=9922 |
Version vom 31. März 2018, 22:22 Uhr
Inhaltsverzeichnis
Webseite
https://www.ansible.com
Ansible - A Beginner's Tutorial
https://www.youtube.com/watch?v=icR-df2Olm8
Installationen
Client
apt-get install opnessh-server apt-get install python
Parameter
-v debug
Beispiele
ansible -m shell -a 'ping -c 3 172.17.0.1' all ansible -m ping all ansible -m shell -a 'hostname' all ansible -m shell -a 'apt-get update' all ansible -m shell -a 'cat /etc/issue' all ansible -m shell -a 'cat /proc/version' all ansible -m shell -a 'cat /etc/debian_version' all
Hostname
172.17.0.9 e45ba8fe0606 172.17.0.14 debian_1 172.17.0.11 debian_2 172.17.0.13 debian_3 172.17.0.15 debian_4
93.255.105.6 pi_15 93.255.105.6 pi_44 93.255.105.6 pi_34 93.255.105.6 pi_60 93.255.105.6 pi_91 93.255.105.6 pi_40 93.255.105.6 pi_46 93.255.105.6 pi_49 93.255.105.6 pi_66 93.255.105.6 pi_53
#Dokker Debian debian_1 debian_2 debian_3
#RaspBerryPi pi_91 ansible_ssh_port=9122 pi_44 ansible_ssh_port=9222 pi_40 ansible_ssh_port=9422 pi_66 ansible_ssh_port=9322 pi_34 ansible_ssh_port=9522 pi_46 ansible_ssh_port=9622 pi_49 ansible_ssh_port=9722 pi_15 ansible_ssh_port=9822 pi_53 ansible_ssh_port=9922 #pi_xx ansible_ssh_port=9922