User Tools

Site Tools


wiki:ostatni:ansible:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
wiki:ostatni:ansible:start [2019/12/10 10:40]
root [Skoleni cz.nic]
wiki:ostatni:ansible:start [2019/12/10 11:07] (current)
root [Skoleni cz.nic]
Line 127: Line 127:
 </code> </code>
  
 +
 +<code>
 +root@ubuntu:/vagrant_data# ansible all --inventory "172.29.29.14" -m user -a 'name=bob shell=/bin/bash'
 + [WARNING]: Unable to parse /vagrant_data/172.29.29.14 as an inventory source
 +
 + [WARNING]: No inventory was parsed, only implicit localhost is available
 +
 + [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost
 +does not match 'all'
 +</code>
 +<code>
 +root@ubuntu:/vagrant_data# ansible all --inventory "172.29.29.14," -m user -a 'name=bob shell=/bin/bash'
 +172.29.29.14 | SUCCESS => {
 +    "append": false, 
 +    "changed": false, 
 +    "comment": "", 
 +    "group": 1002, 
 +    "home": "/home/bob", 
 +    "move_home": false, 
 +    "name": "bob", 
 +    "shell": "/bin/bash", 
 +    "state": "present", 
 +    "uid": 1002
 +}
 +
 +</code>
wiki/ostatni/ansible/start.1575970838.txt.gz · Last modified: 2019/12/10 10:40 by root