main.yml 364 B

12345678910111213141516
  1. ---
  2. - name: Add tbb-team users
  3. user:
  4. name: "{{ item }}"
  5. state: present
  6. groups: tbb-build
  7. shell: /bin/bash
  8. with_items: "{{ tbb_team_members }}"
  9. - name: Add ssh keys to authorized_keys
  10. authorized_key:
  11. user: "{{ item }}"
  12. state: present
  13. key: "{{ lookup('file', item + '.pub') }}"
  14. with_items: "{{ tbb_team_members }}"