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
|
# list all admins
|
||||||
admins:
|
admins:
|
||||||
- l3d
|
- l3d
|
||||||
|
|
||||||
|
# list of non-admins:
|
||||||
|
user:
|
||||||
|
- ottojo
|
||||||
```
|
```
|
||||||
|
|
||||||
Optional config:
|
Optional config:
|
||||||
|
|
|
@ -28,6 +28,17 @@
|
||||||
with_items: '{{ admins }}'
|
with_items: '{{ admins }}'
|
||||||
when: admins is defined
|
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
|
- name: Copy vimrc configuration to root
|
||||||
become: yes
|
become: yes
|
||||||
copy:
|
copy:
|
||||||
|
@ -37,6 +48,17 @@
|
||||||
group: root
|
group: root
|
||||||
mode: 'u=rw,g=r,o='
|
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
|
- name: Copy vimrc configuration to admin users
|
||||||
become: yes
|
become: yes
|
||||||
copy:
|
copy:
|
||||||
|
|
Loading…
Reference in a new issue