added user

This commit is contained in:
2021-10-18 13:58:21 +02:00
parent a0868a1940
commit b1d3703f1a

View File

@@ -5,4 +5,25 @@
- name: test - name: test
copy: copy:
content: Hello World content: Hello World
dest: ./tmp.txt dest: ./tmp.txt
- name: Run the equivalent of "pacman -Syu" as a separate step
community.general.pacman:
update_cache: yes
upgrade: yes
- name: Install package sudo from repo
community.general.pacman:
name: sudo
state: present
- name: Ensure group "sudo" exists
ansible.builtin.group:
name: sudo
state: present
- name: Add the user tobi
ansible.builtin.user:
name: tobi
comment: Tobias Maier
group: sudo