Files
cloud/press/playbooks/user_ssh_certificate.yml
d2ba85c7b2 feat(UserSSHCertificate): Log employee logins to FC servers (#235)
* feat(UserSSHCertificate): Copy doctype as is from central

* feat: add ssh_public_key, ssh_fingerprint fields in team

* feat: add server type, user -> team User SSH Certificate

* feat(Team): Generate ssh fingerprint on validate

* refactor: remove unwanted code blocks

* refactor: improve string formating

* style: black + flake8 + isort

* fix(UserSSHCertificate): Remove return statement used for debugging

* refactor(UserSSHCertificate): Remove unnecessary return statement

* refactor(UserSSHCertificate): Use variables for tmp files paths

* refactor(Team): Move user ssh key to its own doctype

* fix(UserSSHCertificate): Use user ssh key link for public key

- Remove code related to self hosted servers

* style: Prettier

- Filter user ssh key by user
- Remove self hosting related code

* chore(UserSSHCertificate): Add __init__ file

* style: black + flake8 + isort

* feat(UserSSHCertificate): Add playbook for user ssh certificate

- Use inventory_hostname ansible variable to set auth principal

Co-authored-by: kamaljohnson <[email protected]>
2021-10-12 16:16:20 +05:30

7 lines
145 B
YAML

- name: Configure server for login with ssh certificate
hosts: all
become: yes
become_user: root
roles:
- role: user_ssh_certificate