| 12345678910111213141516171819202122232425262728293031323334 |
- ---
- - name: Add lansweeper user
- hosts: all
- gather_facts: false
- become: true
- tasks:
- - name: "import user data from userinfo file"
- include_vars:
- dir: "include/DataDog-TEST"
- #files_matching: "*.userinfo.yaml"
- ignore_unknown_extensions: True
- extensions: [ 'datatogtest', 'yaml' ]
- - name: "Add the lansweeper user with a specific uid, unusable password & public key. Also create home directory."
- user:
- name: "lansweeper"
- comment: "lansweeper user (added 10-16-2025)"
- shell: "/bin/bash"
- uid: "10810"
- update_password: always
- password_expire_min: -1
- state: present
- system: false
- - name: "Set ssh public RSA key for lansweeper user"
- authorized_key:
- user: "lansweeper"
- state: present
- key: 'ssh-rsa 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 RSA 2048-bit keypair for the lansweeper user (10-16-2025)'
- # with_file:
- # - include/DataDog-TEST/Ansible-id_ecdsa.pub
- # - include/DataDog-TEST/Ansible-id_ed25519.pub
- # - include/DataDog-TEST/Ansible-id_rsa.pub
|