Difference between revisions of "Ansible user"

From wikieduonline
Jump to navigation Jump to search
(Created page with " == Example == Defining specific user for some group of hosts: [my_new_group] myhost1 myhost1 myhost3 myhost4 ansible_user=OTHER_USENAME [my_new_group:vars] a...")
Tags: Mobile web edit, Mobile edit
 
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{lc}}
  
 +
[[ansible-playbook]] -u REMOTE_USER
  
 
== Example ==
 
== Example ==
Line 13: Line 15:
  
  
 +
[my_new_group2]
 +
myhost5
 +
myhost6
 +
myhost7  [[ansible_user]]=OTHER_USENAME
 +
 +
[my_new_group2:vars]
 +
[[ansible_ssh_private_key_file]]=~/.ssh/path_to_private_key
 +
 +
== Related ==
 +
[[ansible_ssh_private_key_file]]
  
 
== See also ==
 
== See also ==

Latest revision as of 18:31, 16 January 2023

Advertising: