Ansible: Unterschied zwischen den Versionen

Aus
Wechseln zu: Navigation, Suche
Zeile 1: Zeile 1:
 
== Webseite ==
 
== Webseite ==
 
  https://www.ansible.com
 
  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
 +
  
 
== Beispiele ==
 
== Beispiele ==

Version vom 18. Februar 2018, 23:32 Uhr

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


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