Old ansible configuration for servers
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

ssh-keys 461B

123456789101112131415
  1. ---
  2. # Maintains a set of SSH keys
  3. - name: add authorized keys
  4. authorized_key: user={{ user }}
  5. key="{{ lookup('file', item) }}"
  6. with_fileglob:
  7. - /etc/ansible/data/keys/{{ key_dir }}/{{ type | default(active) }}/*
  8. - name: revoke old authorized keys
  9. authorized_key: user={{ user }}
  10. key="{{ lookup('file', item) }}"
  11. state=absent
  12. with_fileglob:
  13. - /etc/ansible/data/keys/{{ key_dir }}/revoked/*