Andy Bavier | 4ae79c9 | 2017-07-27 13:02:11 -0700 | [diff] [blame^] | 1 | --- |
2 | # roles/maas-user-pubkey/tasks/main.yml | ||||
3 | |||||
4 | - name: Create maas user | ||||
5 | user: | ||||
6 | name: maas | ||||
7 | groups: "{{ maas_groups }}" | ||||
8 | state: present | ||||
9 | |||||
10 | - name: Authorize generated key for maas user | ||||
11 | authorized_key: | ||||
12 | user: maas | ||||
13 | key: "{{ lookup('file', pub_ssh_key_file_location+'/cord_rsa.pub') }}" | ||||
14 | state: present |