mirror of
https://github.com/trailofbits/algo
synced 2024-11-04 06:00:21 +00:00
Add the algo ssh key to any server (prevent fails when a user wants to update-users on a server deployed by algo but not with the algo ssh key)
This commit is contained in:
parent
38914fb827
commit
d23c952a4e
@ -7,7 +7,7 @@
|
|||||||
pre_tasks:
|
pre_tasks:
|
||||||
- name: Local pre-tasks
|
- name: Local pre-tasks
|
||||||
include: playbooks/local.yml
|
include: playbooks/local.yml
|
||||||
tags: [ 'cloud' ]
|
tags: [ 'always' ]
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- { role: cloud-digitalocean, tags: ['digitalocean'] }
|
- { role: cloud-digitalocean, tags: ['digitalocean'] }
|
||||||
|
@ -5,3 +5,10 @@
|
|||||||
raw: sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
|
raw: sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
|
||||||
tags:
|
tags:
|
||||||
- update-alternatives
|
- update-alternatives
|
||||||
|
|
||||||
|
- name: Ensure the algo ssh key exist on the server
|
||||||
|
authorized_key:
|
||||||
|
user: "{{ ansible_ssh_user }}"
|
||||||
|
state: present
|
||||||
|
key: "{{ lookup('file', '{{ SSH_keys.public }}') }}"
|
||||||
|
tags: [ 'always' ]
|
||||||
|
Loading…
Reference in New Issue
Block a user