Difference between revisions of "User (Ansible)"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
* https://docs.ansible.com/ansible/latest/collections/ansible/builtin/user_module.html#ansible-collections-ansible-builtin-user-module
  
 +
user:
  
  user:
+
  ansible.builtin.user:
 +
  name: YOUR_USERNAME
  
 +
ansible.builtin.user:
 +
  name: YOUR_USERNAME
 +
  [[state: present]]
  
 +
<code>[[journalctl]]</code>
 +
Apr 05 07:08:53 YOUR_SERVER python3[1258066]: ansible-user Invoked with name=YOUR_USERNAME group=devops shell=/bin/bash state=present non_unique=False force=False remove=False create_home=True system=False move_home=False append=False ssh_key_bits=0 ssh_key_type=rsa ssh_key_comment=ansible-generated on confluence.bt.internal update_password=always uid=None groups=None comment=None home=None password=NOT_LOGGING_PARAMETER login_class=None hidden=None seuser=None skeleton=None generate_ssh_key=None ssh_key_file=None ssh_key_passphrase=NOT_LOGGING_PARAMETER expires=None password_lock=None local=None profile=None authorization=None role=None
  
 
== See also ==
 
== See also ==
 
* {{Ansible modules}}
 
* {{Ansible modules}}
 +
* {{Ansible}}
  
  
 
[[Category:User]]
 
[[Category:User]]

Latest revision as of 07:12, 5 April 2021

user:
ansible.builtin.user:
  name: YOUR_USERNAME
ansible.builtin.user:
  name: YOUR_USERNAME
  state: present

journalctl

Apr 05 07:08:53 YOUR_SERVER python3[1258066]: ansible-user Invoked with name=YOUR_USERNAME group=devops shell=/bin/bash state=present non_unique=False force=False remove=False create_home=True system=False move_home=False append=False ssh_key_bits=0 ssh_key_type=rsa ssh_key_comment=ansible-generated on confluence.bt.internal update_password=always uid=None groups=None comment=None home=None password=NOT_LOGGING_PARAMETER login_class=None hidden=None seuser=None skeleton=None generate_ssh_key=None ssh_key_file=None ssh_key_passphrase=NOT_LOGGING_PARAMETER expires=None password_lock=None local=None profile=None authorization=None role=None

See also[edit]

Advertising: