Ansible-tutorial
ansible-playbook -i hosts.yml ping.yml
--> Was ist los?
Für mehr Information:
ansible-playbook -i hosts.yml -vvv ping.yml
Ich mage keine Magie!
ansible-config init --disabled > ansible.cfg
- Inventar festlegen
- SSH login user festlegen (hier mein username)
- rollen default folder festlegen (Default
/roleshöchste Präzedenz)
Copy a text file containing the words "I love ansible" to your remote host.
Warte wie gebe ich den Pfad zu meinen Text file an?
Den ganzen Pfad?? Der wird sich doch ändern :(
--> Rolle erstellen
cd roles
ansible-galaxy init copy-files
Option um superuser password auf der Kommandozeile zu verwenden.
--ask-become-pass
Copy a text file containing the the "I love ansible from " to your remote host.
Print ansible_fact
- name: Print all available facts
ansible.builtin.debug:
var: ansible_factsWhat is {{ hallo }}?