Old ansible configuration for servers
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

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/*