diff --git a/Ansible/arch-custom.yml b/Ansible/arch-custom.yml deleted file mode 100644 index d980e76..0000000 --- a/Ansible/arch-custom.yml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/Ansible/inventory.ini b/Ansible/inventory.ini index 6181be3..9b1247b 100644 --- a/Ansible/inventory.ini +++ b/Ansible/inventory.ini @@ -1,20 +1,9 @@ [proxmox] -10.0.1.0 +proxmox.benhays.cloud [linux] -10.0.1.2 -10.0.1.3 -10.0.1.12 -10.0.1.13 -10.0.1.14 -10.0.1.15 +devops.benhays.cloud +web.benhays.cloud +tailscale.benhays.cloud +wiki.benhays.cloud -[webservers] -10.0.1.15 -10.0.1.2 - -[grafana] -10.0.1.3 - -[elasticsearch] -10.0.1.3 diff --git a/Ansible/openssh.yml b/Ansible/openssh.yml index 9926179..5964045 100644 --- a/Ansible/openssh.yml +++ b/Ansible/openssh.yml @@ -31,7 +31,9 @@ copy: src: ../Configs/sshd_config dest: /etc/ssh/sshd_config + - name: Restart OpenSSH - systemd_service: + systemd: name: sshd state: restarted +