77 lines
1.2 KiB
YAML
77 lines
1.2 KiB
YAML
---
|
|
- name: remove acpid
|
|
apk:
|
|
name: busybox-acpid
|
|
state: absent
|
|
tags:
|
|
- pkg
|
|
|
|
- name: set alpine repositories
|
|
template:
|
|
src: apk-repositories
|
|
dest: /etc/apk/repositories
|
|
register: change_release
|
|
tags:
|
|
- pkg
|
|
|
|
- command: apk fix
|
|
when: firsttime is changed
|
|
tags:
|
|
- pkg
|
|
|
|
- name: Upgrade system
|
|
apk:
|
|
update_cache: yes
|
|
upgrade: yes
|
|
available: "{{ change_release.changed }}"
|
|
when: firsttime is not changed
|
|
tags:
|
|
- pkg
|
|
|
|
- name: install common packages (alpine)
|
|
apk:
|
|
name:
|
|
- acl
|
|
- chrony
|
|
- coreutils
|
|
- docker
|
|
- docker-py
|
|
- haveged
|
|
- htop
|
|
- iptables
|
|
- ip6tables
|
|
- nginx
|
|
- openssh
|
|
- openssl
|
|
- py3-openssl
|
|
- rng-tools
|
|
# - ssmtp
|
|
state: present
|
|
update_cache: yes
|
|
tags:
|
|
- pkg
|
|
|
|
- name: install ssmtp (alpine)
|
|
apk:
|
|
name:
|
|
- ssmtp
|
|
state: present
|
|
when: "'scouts' not in group_names"
|
|
tags:
|
|
- pkg
|
|
|
|
- name: configure ssmtp
|
|
template:
|
|
src: ssmtp.conf.j2
|
|
dest: /etc/ssmtp/ssmtp.conf
|
|
when: "'scouts' not in group_names"
|
|
tags:
|
|
- pkg
|
|
|
|
- name: make Docker depends on netmount
|
|
lineinfile:
|
|
path: /etc/conf.d/docker
|
|
line: 'rc_need="netmount"'
|
|
tags:
|
|
- pkg
|