-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes the way of adding keys to a more generic one and also adds gi…
…tlab.com to the known hosts
- Loading branch information
Tobias Lückel
committed
Jun 14, 2019
1 parent
35decc5
commit 7ead516
Showing
2 changed files
with
12 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,9 @@ | ||
--- | ||
- name: Add bitbucket.org to global known_hosts | ||
- name: Add keys to global known_hosts | ||
lineinfile: | ||
path: "{{ deployment_global_ssh_known_hosts_file }}" | ||
line: "{{ deployment_bitbucket_public_host_key }}" | ||
create: yes | ||
mode: 0644 | ||
state: present | ||
|
||
- name: Add packagist.org to global known_hosts | ||
lineinfile: | ||
path: "{{ deployment_global_ssh_known_hosts_file }}" | ||
line: "{{ deployment_packagist_public_host_key }}" | ||
create: yes | ||
mode: 0644 | ||
state: present | ||
|
||
- name: Add github.com to global known_hosts | ||
lineinfile: | ||
path: "{{ deployment_global_ssh_known_hosts_file }}" | ||
line: "{{ deployment_github_public_host_key }}" | ||
line: "{{ item }}" | ||
create: yes | ||
mode: 0644 | ||
state: present | ||
with_items: "{{ deployment_public_host_keys }}" |