collection of ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

21 lines
466 B

---
- name: create admin users
user:
name: '{{ item }}'
groups: wheel
state: present
with_items: "{{ admin_users }}"
when: ansible_distribution|lower == 'openbsd'
- name: deploy authorized_keys
authorized_key:
user: "{{ item }}"
key: "{{ lookup('file', item + '.pub') }}"
state: present
with_items: "{{ admin_users }}"
- name: deploy vimrc
copy:
src: vimrc
dest: /home/mw/.vimrc
owner: mw
group: mw
mode: 0644