Fix to support new network

This commit is contained in:
Benjamin Hays 2024-08-13 01:46:34 +00:00
parent 6c2ae0444b
commit 0fa715d136
3 changed files with 8 additions and 86 deletions

View File

@ -1,69 +0,0 @@
- hosts: arch
remote_user: bhays
become: true
become_user: root
tasks:
- name: Add 'bhays' user
user:
name: bhays
groups: sudo,adm
append: yes
shell: /bin/bash
comment: Benjamin Hays
- name: Ensure .ssh user folder exists
file:
path: "/home/bhays/.ssh/"
state: directory
- name: Copy public key
copy:
src: ~/.ssh/authorized_keys
dest: /home/bhays/.ssh/authorized_keys
- name: Install i3
pacman:
name: i3
state: present
- name: Install polybar
pacman:
name: polybar
state: present
- name: Install xorg
pacman:
name: xorg
state: present
- name: Install lightdm
pacman:
name: lightdm
state: present
- name: Install lightdm-gtk-greeter
pacman:
name: lightdm-gtk-greeter
state: present
- name: Copy polybar config.ini
copy:
src: ../Configs/archlinux/polybar-config.ini
dest: /home/bhays/.config/polybar/config.ini
- name: Copy polybar launch.sh
copy:
src: ../Configs/archlinux/launch.sh
dest: /home/bhays/.config/polybar/launch.sh
- name: Copy i3 config
copy:
src: ../Configs/archlinux/i3-config
dest: /home/bhays/.config/i3/config
- name: Copy Alacritty config
copy:
src: ../Configs/archlinux/alacritty.toml
dest: /home/bhays/.config/alacritty/alacritty.toml
- name: Add BlackArch repository
shell: |
curl -O https://blackarch.org/strap.sh
chmod +x strap.sh
sudo ./strap.sh
- name: Enable multilib repository
lineinfile:
path: /etc/pacman.conf
regexp: '^#\[multilib\]'
line: '[multilib]'
- name: Update system
pacman:
upgrade: yes

View File

@ -1,20 +1,9 @@
[proxmox] [proxmox]
10.0.1.0 proxmox.benhays.cloud
[linux] [linux]
10.0.1.2 devops.benhays.cloud
10.0.1.3 web.benhays.cloud
10.0.1.12 tailscale.benhays.cloud
10.0.1.13 wiki.benhays.cloud
10.0.1.14
10.0.1.15
[webservers]
10.0.1.15
10.0.1.2
[grafana]
10.0.1.3
[elasticsearch]
10.0.1.3

View File

@ -31,7 +31,9 @@
copy: copy:
src: ../Configs/sshd_config src: ../Configs/sshd_config
dest: /etc/ssh/sshd_config dest: /etc/ssh/sshd_config
- name: Restart OpenSSH - name: Restart OpenSSH
systemd_service: systemd:
name: sshd name: sshd
state: restarted state: restarted