Skip to content

Instantly share code, notes, and snippets.

@holms
Forked from maxim/task.yml
Last active December 13, 2016 12:49
Show Gist options
  • Select an option

  • Save holms/b5a6bdcbe35d067d6f5b to your computer and use it in GitHub Desktop.

Select an option

Save holms/b5a6bdcbe35d067d6f5b to your computer and use it in GitHub Desktop.

Revisions

  1. @maxim maxim created this gist Jun 12, 2014.
    7 changes: 7 additions & 0 deletions task.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    - name: ensure github.com is a known host
    lineinfile:
    dest: /root/.ssh/known_hosts
    create: yes
    state: present
    line: "{{ lookup('pipe', 'ssh-keyscan -t rsa github.com') }}"
    regexp: "^github\\.com"