Evolution of deployment

This commit is contained in:
2023-11-30 02:47:16 -06:00
parent 8392a3fe46
commit 69e2bcc966
21 changed files with 196 additions and 28 deletions

View File

@@ -94,16 +94,12 @@
mode: 0644
when: ansible_os_family == "Archlinux"
- name: Generate mirrorlist
delegate_to: localhost
run_once: yes
command: "bash ../bin/generate-mirrorlist"
- name: Copy mirrorlist
- name: Set mirror
become: yes
when: ansible_os_family == "Archlinux"
copy:
src: mirrorlist
content: |
Server = {{ mirroruri }}
dest: /etc/pacman.d/mirrorlist.shadowarch
owner: root
group: root
@@ -160,7 +156,7 @@
become: yes
command:
chdir: '/opt/aninix/ShadowArch'
cmd: '/bin/bash -c "make install; /usr/local/sbin/shadowarch-sync"'
cmd: '/bin/bash -c "make install"'
when: ansible_os_family != "Archlinux"
- name: Set up hostname

View File

@@ -41,3 +41,7 @@
owner: root
group: root
mode: 0600
- name: Ensure keys
become: yes
command: /bin/bash -c 'chmod go-rwx /etc/ssh/*key'