25 lines
446 B
Markdown
25 lines
446 B
Markdown
- cat /etc/os-release on both systems
|
|
```sh
|
|
ansible all --inventory "139.59.129.145, 134.122.91.44" -a 'cat /etc/os-release'
|
|
```
|
|
|
|
- vytvoreni ansible configu
|
|
```sh
|
|
ansible-config init --disabled > ansible.cfg
|
|
```
|
|
- upravit v configu inventory=./hosts
|
|
|
|
- popis inventory
|
|
```sh
|
|
ansible-inventory --list
|
|
```
|
|
|
|
- ping skupiny/jednotlivce z inventory
|
|
```sh
|
|
ansible vm -m ping
|
|
```
|
|
|
|
- pusteni konkretniho playbooku
|
|
```sh
|
|
ansible-playbook play-1.yml
|
|
``` |