Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ansible_basic_inventory_group_hosts [2020/03/11 14:49] – created andonovj | ansible_basic_inventory_group_hosts [2020/03/11 15:11] (current) – andonovj | ||
---|---|---|---|
Line 57: | Line 57: | ||
+ | =====Check===== | ||
+ | So we can create that file: | ||
+ | <sxh bash> | ||
+ | root@DESKTOP-N65RKDP:/ | ||
+ | [kerberos_master] | ||
+ | 192.168.50.10 | ||
+ | [kerberos_nodes] | ||
+ | 192.168.50.11 | ||
+ | 192.168.50.12 | ||
+ | |||
+ | [kerberos: | ||
+ | kerberos_master | ||
+ | kerberos_nodes | ||
+ | |||
+ | [kerberos: | ||
+ | ansible_user=vagrant | ||
+ | ansible_password=vagrant | ||
+ | ansible_connection=ssh | ||
+ | </ | ||
+ | |||
+ | We can also execute a module against a certain group or server: | ||
+ | |||
+ | <sxh bash> | ||
+ | root@DESKTOP-N65RKDP:/ | ||
+ | 192.168.50.10 | SUCCESS => { | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | 192.168.50.11 | SUCCESS => { | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | 192.168.50.12 | SUCCESS => { | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | root@DESKTOP-N65RKDP:/ | ||
+ | </ | ||