Files
ansible_playbooks/modules/userstuff.yml
2022-06-13 22:18:13 +02:00

36 lines
837 B
YAML

- name: Make sure we have a 'wheel' group
group:
name: wheel
state: present
- name: Make sure we have a 'docker' group
group:
name: docker
state: present
- name: Allow 'wheel' to be sudo
lineinfile:
dest: /etc/sudoers
state: present
regexp: '^%wheel'
line: '%wheel ALL=(ALL) ALL'
- name: Add the user tobi
ansible.builtin.user:
name: tobi
password: $6$9OnvBMN6Sxc.muW1$afASAJdoPZL/WxTp6.lh/SurRRiClaru2Pl19fEo6j1aDEQw99kdkfls6.DB8OBacBDnT3bpsLYD3JqrvXlE9/
comment: Tobias Maier
groups: wheel,docker
shell: /bin/zsh
- name: Add name to git config
community.general.git_config:
name: user.name
scope: system
value: Tobias Maier
- name: Add email to git config
community.general.git_config:
name: user.email
scope: system
value: admin@maiertobi.de