Update the system
This commit is contained in:
parent
7c66739691
commit
b32e1c2e79
2 changed files with 22 additions and 1 deletions
|
@ -5,6 +5,7 @@
|
||||||
vars_files:
|
vars_files:
|
||||||
- "config.yml"
|
- "config.yml"
|
||||||
tasks:
|
tasks:
|
||||||
|
- include_tasks: "tasks/update.yml"
|
||||||
|
- include_tasks: "tasks/ekumen.yml"
|
||||||
- include_tasks: "tasks/encrypt.yml"
|
- include_tasks: "tasks/encrypt.yml"
|
||||||
- include_tasks: "tasks/docker.yml"
|
- include_tasks: "tasks/docker.yml"
|
||||||
- include_tasks: "tasks/ekumen.yml"
|
|
||||||
|
|
20
tasks/update.yml
Normal file
20
tasks/update.yml
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
---
|
||||||
|
- name: "Upgrade system."
|
||||||
|
shell: "mount -o remount,rw /boot && apk update && apk upgrade && mount -o remount,ro /boot"
|
||||||
|
- name: "Upgrade configuration files if needed."
|
||||||
|
template:
|
||||||
|
src: "templates{{ item }}.j2"
|
||||||
|
dest: "{{ item }}"
|
||||||
|
mode: "640"
|
||||||
|
loop: "{{ templates }}"
|
||||||
|
- name: "And services."
|
||||||
|
template:
|
||||||
|
src: "templates{{ item }}.j2"
|
||||||
|
dest: "{{ item }}"
|
||||||
|
mode: "750"
|
||||||
|
loop: "{{ custom_services }}"
|
||||||
|
- name: "Enable services."
|
||||||
|
shell: "rc-update add {{ item.service }} {{ item.runlevel }}"
|
||||||
|
args:
|
||||||
|
creates: "/etc/runlevels/{{ item.runlevel }}/{{ item.service }}"
|
||||||
|
loop: "{{ services }}"
|
Loading…
Reference in a new issue