Ansible: Unterschied zwischen den Versionen
Stefan (Diskussion | Beiträge) |
Stefan (Diskussion | Beiträge) |
||
(15 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
== Webseite == | == Webseite == | ||
https://www.ansible.com | https://www.ansible.com | ||
+ | |||
+ | == Dokumentation == | ||
+ | https://docs.ansible.com/ | ||
+ | |||
+ | === Working With Playbooks === | ||
+ | https://docs.ansible.com/ansible/latest/user_guide/playbooks.html | ||
+ | |||
+ | === Getting started with ansible === | ||
+ | https://riptutorial.com/ansible | ||
+ | |||
+ | == Unixwitch Ansible Spickzettel == | ||
+ | https://www.unixwitch.de/de/sysadmin/tools/ansible | ||
== Ansible - A Beginner's Tutorial == | == Ansible - A Beginner's Tutorial == | ||
https://www.youtube.com/watch?v=icR-df2Olm8 | https://www.youtube.com/watch?v=icR-df2Olm8 | ||
+ | |||
+ | == Ansible Tutorial Dt == | ||
+ | https://www.biteno.com/tutorial/ansible-tutorial-einfuehrung/ | ||
== Installationen == | == Installationen == | ||
+ | |||
+ | === RaspberryPi === | ||
+ | ==== Ansible auf und für den Raspberry Pi einrichten! Tutorial ==== | ||
+ | https://steemit.com/raspberrypi/@haaku/ansible-auf-und-fuer-den-raspberry-pi-einrichten-tutorial | ||
+ | |||
+ | ==== Raspberry-Pi-Farm mit Ansible automatisieren ==== | ||
+ | |||
+ | https://www.raspberry-pi-geek.de/ausgaben/rpg/2018/04/raspberry-pi-farm-mit-ansible-automatisieren/ | ||
+ | https://www.raspberry-pi-geek.de/ausgaben/rpg/2018/04/raspberry-pi-farm-mit-ansible-automatisieren/2/ | ||
+ | |||
+ | === Install === | ||
+ | https://dev.to/project42/starting-with-ansible-in-raspberry-pi-2mhm | ||
=== Client === | === Client === | ||
− | apt-get install | + | 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 == | ||
+ | -v debug | ||
+ | |||
== Beispiele == | == Beispiele == | ||
ansible -m shell -a 'ping -c 3 172.17.0.1' all | ansible -m shell -a 'ping -c 3 172.17.0.1' all | ||
Zeile 26: | Zeile 74: | ||
172.17.0.11 debian_2 | 172.17.0.11 debian_2 | ||
172.17.0.13 debian_3 | 172.17.0.13 debian_3 | ||
+ | 172.17.0.15 debian_4 | ||
+ | |||
93.255.105.6 pi_15 | 93.255.105.6 pi_15 | ||
93.255.105.6 pi_44 | 93.255.105.6 pi_44 | ||
Zeile 35: | Zeile 85: | ||
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 51: | Zeile 101: | ||
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 | ||
+ | |||
+ | |||
+ | == SSH Config == | ||
+ | |||
+ | == Installation von Ansible auf einem Windows System == | ||
+ | https://www.purrucker.de/2019/01/14/installation-von-ansible-auf-einem-windows-system/ | ||
+ | |||
+ | == Connecting to a Windows Host == | ||
+ | https://www.ansible.com/blog/connecting-to-a-windows-host | ||
+ | |||
+ | == HappyCoders == | ||
+ | https://www.happycoders.eu/de/devops/ansible-tutorial-setup-users-ssh-firewall/ | ||
+ | https://www.happycoders.eu/de/devops/ansible-tutorial-setup-root-server/ | ||
+ | https://www.happycoders.eu/de/devops/ansible-tutorial-setup-docker-mysql-wordpress/ | ||
+ | https://www.happycoders.eu/de/devops/ansible-tutorial-setup-haproxy-https-lets-encrypt/ |
Aktuelle Version vom 3. Februar 2022, 23:18 Uhr
Inhaltsverzeichnis
Webseite
https://www.ansible.com
Dokumentation
https://docs.ansible.com/
Working With Playbooks
https://docs.ansible.com/ansible/latest/user_guide/playbooks.html
Getting started with ansible
https://riptutorial.com/ansible
Unixwitch Ansible Spickzettel
https://www.unixwitch.de/de/sysadmin/tools/ansible
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
RaspberryPi
Ansible auf und für den Raspberry Pi einrichten! Tutorial
https://steemit.com/raspberrypi/@haaku/ansible-auf-und-fuer-den-raspberry-pi-einrichten-tutorial
Raspberry-Pi-Farm mit Ansible automatisieren
https://www.raspberry-pi-geek.de/ausgaben/rpg/2018/04/raspberry-pi-farm-mit-ansible-automatisieren/ https://www.raspberry-pi-geek.de/ausgaben/rpg/2018/04/raspberry-pi-farm-mit-ansible-automatisieren/2/
Install
https://dev.to/project42/starting-with-ansible-in-raspberry-pi-2mhm
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
SSH Config
Installation von Ansible auf einem Windows System
https://www.purrucker.de/2019/01/14/installation-von-ansible-auf-einem-windows-system/
Connecting to a Windows Host
https://www.ansible.com/blog/connecting-to-a-windows-host
HappyCoders
https://www.happycoders.eu/de/devops/ansible-tutorial-setup-users-ssh-firewall/ https://www.happycoders.eu/de/devops/ansible-tutorial-setup-root-server/ https://www.happycoders.eu/de/devops/ansible-tutorial-setup-docker-mysql-wordpress/ https://www.happycoders.eu/de/devops/ansible-tutorial-setup-haproxy-https-lets-encrypt/