Archived
1
0
Fork 0
This repository has been archived on 2024-10-31. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/sysconfig_arch/server.yaml

54 lines
1.1 KiB
YAML
Raw Normal View History

2024-03-04 17:05:10 +01:00
- name: "Server Setup"
hosts: localhost
connection: local
tasks:
- name: "Install base packages"
package:
name:
- openssh
state: present
update_cache: true
- name: "Run SSH Server"
service:
name: sshd
state: started
enabled: yes
- name: "Sudo: config file"
copy:
dest: /etc/sudoers
src: ./lib/etc/sudoers
owner: root
group: root
mode: 0440
- name: "Sudo: Create groups"
group:
name: '{{ item }}'
state: present
system: true
with_items:
- wheel
- sudo
- name: "Pacman configuration"
when: "'arm' not in ansible_machine"
copy:
dest: /etc/pacman.conf
src: ./lib/etc/pacman.conf
owner: root
group: root
mode: 0644
- name: "Pacman configuration (ARM)"
when: "'arm' in ansible_machine"
copy:
dest: /etc/pacman.conf
src: ./lib/etc/pacman.conf.arm
owner: root
group: root
mode: 0644