The Ansible is written in python tool to make the admin things more clear and comfortable.
We dont need any app server any client only python and ssh. Looks great - well .... we will see
[root@centos ansible]# ansible fedora -m shell -a "dnf install python-pip -y"
192.168.1.11 | SUCCESS | rc=0 >>
Ostatnio sprawdzono ważność metadanych: 1:25:40 temu w dniu Tue Jun 21 21:11:10 2016.
Rozwiązano zależności.
Nie ma niczego do zrobienia.
Ukończono.Pakiet python-pip-8.0.2-1.fc24.noarch jest już zainstalowany, pomijanie.
192.168.1.14 | SUCCESS | rc=0 >>
Ostatnio sprawdzono ważność metadanych: 0:34:44 temu w dniu Tue Jun 21 22:02:03 2016.
Rozwiązano zależności.
Nie ma niczego do zrobienia.
Ukończono.Pakiet python-pip-7.1.0-1.fc23.noarch jest już zainstalowany, pomijanie.
description:
Usage: ansible <host-pattern> [options]
fedora / [all] - group that we will check / all for all groups to change it or just check you need to find file:
hosts in ansible /etc/ dir
[root@centos ansible]# cat hosts
[fedora]
192.168.1.14
192.168.1.11
[ubuntu]
192.168.1.19
-m MODULE_NAME, --module-name=MODULE_NAME
module name to execute (default=command)
-a MODULE_ARGS, --args=MODULE_ARGS
module arguments
Brak komentarzy:
Prześlij komentarz