Compare commits

...

2 commits

3 changed files with 22 additions and 5 deletions

View file

@ -10,4 +10,5 @@ x11_keymap: de
users:
- vagrant
sudoers:
- vagrant
- vagrant
ensure_ansible_version: 2.10.3

View file

@ -4,6 +4,7 @@
become: true
hostname:
name: '{{ hostname }}'
use: systemd
when: hostname and update_hostname == True
- name: Firewall
@ -23,10 +24,20 @@
become: true
when: ansible_facts['os_family'] == 'Debian'
- include: ansible-debian.yml
become: true
- name: Install basic packages (on Archlinux)
pacman:
name: "{{ packages }}"
state: present
#update_cache: yes
vars:
packages:
- python-pip
- htop
- tmux
become: yes
when: ansible_facts['os_family'] == 'Archlinux'
- name: Install basic packages
- name: Install basic packages (on Debian)
apt:
name: "{{ packages }}"
state: present
@ -38,3 +49,7 @@
- tmux
become: yes
when: ansible_facts['os_family'] == 'Debian'
- name: Install Ansible
pip:
name: ansible=={{ ensure_ansible_version }}

View file

@ -21,7 +21,8 @@
regexp: '^%wheel'
line: '%wheel ALL=(ALL) NOPASSWD:ALL'
validate: visudo -cf %s
when: ansible_facts['os_family'] == 'Debian'
when:
- ansible_facts['os_family'] in ['Debian', 'Archlinux']
- name: 'Create users with corresponding groups'
user: