Fix: Add groups to me and deploy_users

This commit is contained in:
Bertrand Benjamin 2019-05-11 18:30:41 +02:00
parent 2762748bd0
commit 6d572a178d
3 changed files with 17 additions and 16 deletions

View File

@ -15,18 +15,19 @@
with_items: "{{ me }}" with_items: "{{ me }}"
- name: Install tmuxinator (Archlinux) - name: Install tmuxinator (Archlinux)
aur: # aur:
# name: tmuxinator
# use: makepkg
# skip_installed: true
# become: yes
# become_user: aur_builder
# when: ansible_distribution != 'Debian'
gem:
name: tmuxinator name: tmuxinator
use: makepkg state: latest
skip_installed: true
become: yes become: yes
become_user: aur_builder become_user: "{{ me }}"
when: ansible_distribution != 'Debian' when: not minimal and not server
# gem:
# name: tmuxinator
# state: latest
# when: not minimal and not server
- name: Copy .tmuxinator/ - name: Copy .tmuxinator/
copy: copy:
@ -43,7 +44,7 @@
state: present state: present
when: ansible_distribution != 'Debian' when: ansible_distribution != 'Debian'
- name: mocp configfiles - name: mocp configfile
copy: copy:
src: files/dotfiles/moc/ src: files/dotfiles/moc/
dest: /home/{{ item.username }}/.moc/ dest: /home/{{ item.username }}/.moc/

View File

@ -7,22 +7,19 @@
user: user:
name: "{{ item.username }}" name: "{{ item.username }}"
password: "{{ item.password }}" password: "{{ item.password }}"
group: "{{ item.group }}"
uid: "{{ item.uid }}" uid: "{{ item.uid }}"
shell: "{{ prompt_place['stdout'] }}" shell: "{{ prompt_place['stdout'] }}"
state: present state: present
with_items: "{{ deploy_users }}" with_items: "{{ deploy_users }}"
tags:
- first_deployement
- name: Add me - name: Add me
user: user:
name: "{{ item.username }}" name: "{{ item.username }}"
password: "{{ item.password }}" password: "{{ item.password }}"
group: "{{ item.group }}"
uid: "{{ item.uid }}" uid: "{{ item.uid }}"
shell: "{{ prompt_place['stdout'] }}" shell: "{{ prompt_place['stdout'] }}"
state: present state: present
with_items: "{{ me }}" with_items: "{{ me }}"
when: not minimal or not server when: not minimal or not server
tags:
- first_deployement

View File

@ -4,11 +4,14 @@ me:
- username: 'lafrite' - username: 'lafrite'
password: '$6$OnPrZgotbSWZlh0T$VSyF8lUhD/N881d1GsggE7jDFt0uAzls2r.pqgDV6XQKbTqZWfv0X4QWd/3wivUDyzaSjP4LQWVfne7KYR6Vv1' password: '$6$OnPrZgotbSWZlh0T$VSyF8lUhD/N881d1GsggE7jDFt0uAzls2r.pqgDV6XQKbTqZWfv0X4QWd/3wivUDyzaSjP4LQWVfne7KYR6Vv1'
uid: '1000' uid: '1000'
group: users
deploy_users: deploy_users:
- username: 'waha' - username: 'waha'
password: '$6$tQLlZ3lI/NDcT3.C$VCBzrpNxDgOK7b2que2/BnAYWl.zKVugZrQEPxtsq3iWcskEzQ1NvytZRXkB4GCDa/xEohxiodyCaZyFnhxby1' password: '$6$tQLlZ3lI/NDcT3.C$VCBzrpNxDgOK7b2que2/BnAYWl.zKVugZrQEPxtsq3iWcskEzQ1NvytZRXkB4GCDa/xEohxiodyCaZyFnhxby1'
uid: '999' uid: '999'
group: wheel
groups: sudo, adm
prompt: 'fish' prompt: 'fish'