Files
setup_ansible_playbooks/playbook.yml
Tobias Maier 95ba74bcf1 update
2021-10-21 09:30:50 +02:00

70 lines
1.9 KiB
YAML

---
- name: Initial installation of WSL arch
hosts: localhost
pre_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 packages
community.general.pacman:
name: sudo,zsh,htop
state: present
- name: Make sure we have a 'wheel' group
group:
name: wheel
state: present
- name: Allow 'wheel' group to have passwordless sudo
lineinfile:
dest: /etc/sudoers
state: present
regexp: '^%wheel'
line: '%wheel ALL=(ALL) NOPASSWD: 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
- name: Add name to git config
community.general.git_config:
name: user.name
scope: global
value: Tobias Maier
- name: Add email to git config
community.general.git_config:
name: user.email
scope: global
value: git@maiertobi.de
roles:
- role: gantsign.antigen
users:
- username: tobi
antigen_libraries:
- name: oh-my-zsh
antigen_theme:
name: romkatv/powerlevel10k
antigen_bundles:
# Bundles from the default repo (robbyrussell's oh-my-zsh).
- name: git
- name: heroku
- name: pip
- name: lein
- name: command-not-found
# Syntax highlighting bundle.
- name: zsh-syntax-highlighting # `name` is required (any valid file name will do so long as it's unique for the bundles)
url: zsh-users/zsh-syntax-highlighting