Ansible: Unterschied zwischen den Versionen
Stefan (Diskussion | Beiträge) |
Stefan (Diskussion | Beiträge) (→Installationen) |
||
Zeile 13: | Zeile 13: | ||
apt-get install openssh-server | apt-get install openssh-server | ||
apt-get install python | apt-get install python | ||
+ | |||
+ | === Latest Releases via Apt (Debian) === | ||
+ | |||
+ | Debian users may leverage the same source as the Ubuntu PPA. | ||
+ | Add the following line to /etc/apt/sources.list: | ||
+ | deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main | ||
+ | Then run these commands: | ||
+ | $ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367 | ||
+ | $ sudo apt update | ||
+ | $ sudo apt install ansible | ||
+ | |||
+ | === Latest Releases via Apt (Ubuntu) === | ||
+ | |||
+ | Ubuntu builds are available in a PPA here. | ||
+ | To configure the PPA on your machine and install ansible run these commands: | ||
+ | $ sudo apt update | ||
+ | $ sudo apt install software-properties-common | ||
+ | $ sudo apt-add-repository --yes --update ppa:ansible/ansible | ||
+ | $ sudo apt install ansible | ||
== Parameter == | == Parameter == |
Version vom 10. Juli 2019, 23:19 Uhr
Inhaltsverzeichnis
Webseite
https://www.ansible.com
Ansible - A Beginner's Tutorial
https://www.youtube.com/watch?v=icR-df2Olm8
Ansible Tutorial Dt
https://www.biteno.com/tutorial/ansible-tutorial-einfuehrung/
Installationen
Client
apt-get install openssh-server apt-get install python
Latest Releases via Apt (Debian)
Debian users may leverage the same source as the Ubuntu PPA. Add the following line to /etc/apt/sources.list: deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main Then run these commands: $ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367 $ sudo apt update $ sudo apt install ansible
Latest Releases via Apt (Ubuntu)
Ubuntu builds are available in a PPA here. To configure the PPA on your machine and install ansible run these commands: $ sudo apt update $ sudo apt install software-properties-common $ sudo apt-add-repository --yes --update ppa:ansible/ansible $ sudo apt install ansible
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