Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
- name: set up a better cron
hosts: alpine
become: yes
tasks:
- name: Install fcron
apk:
name: fcron
state: present
- name: Stop and disable crond
service:
name: crond
state: stopped
enabled: no
- name: Start and enable fcron
service:
name: fcron
state: started
enabled: yes
- name: set up iperf servers
hosts: iperf
become: yes
tasks:
- name: Install iperf and iperf3
apk:
name: iperf,iperf3
state: present
- name: Start and enable iperf
service:
name: iperf
state: started
enabled: yes
- name: Start and enable iperf3
service:
name: iperf3
state: started
enabled: yes
- name: set up a proper logging
hosts: alpine
become: yes
tasks:
- name: Install rsyslog
apk:
name: rsyslog
state: present
- name: Stop and disable busybox syslog
service:
name: syslog
args: --nodeps
state: stopped
enabled: no
runlevel: boot
- name: Start and enable rsyslog
service:
name: rsyslog
state: started
enabled: yes
runlevel: boot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment