Add authorized key taken from a URL - Ansible

0 votes
I have an authorized key which has been picked up from a URL, is there any chance I can add that key in my playbook?
Feb 11 in Ansible by Lopez
43 views

1 answer to this question.

0 votes

Hey @Lopez, you can use the authorized_key plugin provided by ansible. Something like this:

- name: Set authorized keys taken from url
  authorized_key:
    user: charlie
    state: present
    key: https://github.com/charlie.keys
answered Feb 11 by Charlie

Related Questions In Ansible

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How do I add ssh authorized keys in ansible playbook?

Hey @kailash use the authorized_key plugin that ...READ MORE

answered Feb 11 in Ansible by Kyra
139 views
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
177 views
0 votes
1 answer
0 votes
1 answer

Add a node in Ansible

Follow these steps @Ruth: Generate ssh key ssh-keygen Check the ...READ MORE

answered Jan 8 in Ansible by Haider
30 views
0 votes
1 answer