31 lines
785 B
YAML
31 lines
785 B
YAML
---
|
|
- name: Initial installation of WSL arch
|
|
hosts: localhost
|
|
tasks:
|
|
- name: test
|
|
copy:
|
|
content: Hello World
|
|
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
|
|
password: $6$9OnvBMN6Sxc.muW1$afASAJdoPZL/WxTp6.lh/SurRRiClaru2Pl19fEo6j1aDEQw99kdkfls6.DB8OBacBDnT3bpsLYD3JqrvXlE9/
|
|
comment: Tobias Maier
|
|
group: sudo
|