Authored by chunhua.zhang

add new playbook

  1 +# add auth key from local file to remote user
  2 +---
  3 +- hosts: search-service
  4 + remote_user: root
  5 + tasks:
  6 + - name: deliver authorized_keys
  7 + authorized_key:
  8 + user: root
  9 + key: "{{ lookup('file', '/home/ansible/yoho-ansible-roles/search.pub') }}"
  10 + state: present
  11 + exclusive: no
  12 +