---
- name: make sure we have some important directories
  file: path={{ item }} state=directory
  with_items:
    - "~/managed-bin"
    - "~/src"
    - "~/code"

- include: "Darwin_reqs.yml"
  when: os_family == "Darwin"

- include: "RedHat_reqs.yml"
  when: os_family == "RedHat"

- include: "Debian_reqs.yml"
  when: os_family == "Debian"


---
- name: make sure we have some important directories
  file: path={{ item }} state=directory
  with_items:
    - "~/managed-bin"
    - "~/src"
    - "~/code"

- include: "Darwin_reqs.yml"
  when: os_family == "Darwin"

- include: "RedHat_reqs.yml"
  when: os_family == "RedHat"

- include: "Debian_reqs.yml"
  when: os_family == "Debian"

- name: find various ssh keys
  shell: ssh-keyscan {{ item }}
  register: source_control_host_keys
  with_items:
    - github.com
    - bitbucket.org
    - code.google.com

- name: SSH | Add Git repo host key to known_hosts file
  lineinfile: >
    create=yes
    dest=~{{ ansible_user_id }}/.ssh/known_hosts
    state=present
    line='{{ item.stdout }}'
  with_items: source_control_host_keys.results

Add SSH keys in common
Add SSH keys in common
