https://github.com/artcom/ansible-role-win-authorized-keys
Ansible role for setting authorized_keys on a Windows machine
https://github.com/artcom/ansible-role-win-authorized-keys
Last synced: 3 months ago
JSON representation
Ansible role for setting authorized_keys on a Windows machine
- Host: GitHub
- URL: https://github.com/artcom/ansible-role-win-authorized-keys
- Owner: artcom
- License: mit
- Created: 2020-09-30T10:20:26.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-04-27T12:21:47.000Z (about 4 years ago)
- Last Synced: 2025-05-17T19:37:59.578Z (about 1 year ago)
- Size: 6.84 KB
- Stars: 0
- Watchers: 14
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Win authorized_keys
Ansible role for setting authorized_keys on a Windows machine
## Requirements
None
## Role Variables
Available variables are listed below, along with default values `(see defaults/main.yml)`:
```yaml
ssh_user: null
ssh_user_dir: null
public_keys: null
```
Required variables (role will fail if the variables are not set):
```yaml
ssh_user: "string"
ssh_user_dir: "string"
public_keys:
user_name_key: "string"
```
## Dependencies
* [check-required-variables](https://github.com/artcom/ansible-role-check-required-variables)
## Example Playbook
```yaml
- hosts: all
tasks:
- import_role:
name: win-authorized-keys
vars:
ssh_user: "{{ ansible_user }}"
ssh_user_dir: "{{ ansible_user_dir }}"
public_keys:
operator: "{{ lookup('file', '~/.ssh/id_rsa.pub') }}"
```
## License
MIT