Ansible: Unterschied zwischen den Versionen
Stefan (Diskussion | Beiträge) (→Beispiele) |
Stefan (Diskussion | Beiträge) |
||
Zeile 10: | Zeile 10: | ||
ansible -m shell -a 'cat /proc/version' all | ansible -m shell -a 'cat /proc/version' all | ||
ansible -m shell -a 'cat /etc/debian_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 | ||
+ | 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 | ||
+ | |||
+ | |||
+ | #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_xx ansible_ssh_port=9922 |
Version vom 18. Februar 2018, 20:46 Uhr
Webseite
https://www.ansible.com
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 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
#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_xx ansible_ssh_port=9922