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, 2019 in Ansible by Lopez
107 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, 2019 by Charlie

Related Questions In Ansible

0 votes
1 answer

How do I add apt key by id from a keyserver? - Ansible

Hey @Altis, you can use the module ...READ MORE

answered Feb 11, 2019 in Ansible by Kyra
893 views
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, 2019 in Ansible by Kyra
309 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,400 points
424 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, 2019 in Ansible by Haider
49 views
0 votes
1 answer

How do I wget a file from web server using shell in the ansible playbook

Hey Ayaan, you could probably use this ...READ MORE

answered Jan 24, 2019 in Ansible by Anushri
969 views