mirror of
https://github.com/roles-ansible/ansible_role_dotfiles.git
synced 2024-08-16 16:09:49 +02:00
enable non-admin users
This commit is contained in:
parent
20256e4153
commit
a75c553f54
2 changed files with 26 additions and 0 deletions
|
@ -16,6 +16,10 @@ Affected files:
|
|||
# list all admins
|
||||
admins:
|
||||
- l3d
|
||||
|
||||
# list of non-admins:
|
||||
user:
|
||||
- ottojo
|
||||
```
|
||||
|
||||
Optional config:
|
||||
|
|
|
@ -28,6 +28,17 @@
|
|||
with_items: '{{ admins }}'
|
||||
when: admins is defined
|
||||
|
||||
- name: Copy bashrc configuration to non admin users
|
||||
become: yes
|
||||
template:
|
||||
src: 'templates/bashrc'
|
||||
dest: '/home/{{ item }}/.bashrc'
|
||||
owner: '{{ item }}'
|
||||
group: '{{ item }}'
|
||||
mode: 'u=rw,g=r,o='
|
||||
with_items: '{{ user }}'
|
||||
when: user is defined
|
||||
|
||||
- name: Copy vimrc configuration to root
|
||||
become: yes
|
||||
copy:
|
||||
|
@ -37,6 +48,17 @@
|
|||
group: root
|
||||
mode: 'u=rw,g=r,o='
|
||||
|
||||
- name: Copy vimrc configuration to non admin users
|
||||
become: yes
|
||||
copy:
|
||||
src: 'templates/vimrc'
|
||||
dest: '/home/{{ item }}/.vimrc'
|
||||
owner: '{{ item }}'
|
||||
group: '{{ item }}'
|
||||
mode: 'u=rw,g=r,o='
|
||||
with_items: "{{ user }}"
|
||||
when: user is defined
|
||||
|
||||
- name: Copy vimrc configuration to admin users
|
||||
become: yes
|
||||
copy:
|
||||
|
|
Loading…
Reference in a new issue