Evolution of deployment
This commit is contained in:
@@ -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
|
||||
|
@@ -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'
|
||||
|
Reference in New Issue
Block a user