Skip to content

Instantly share code, notes, and snippets.

@winny-
Created July 26, 2020 01:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save winny-/079d6f202d297e5188d2bbc5d2323507 to your computer and use it in GitHub Desktop.
Save winny-/079d6f202d297e5188d2bbc5d2323507 to your computer and use it in GitHub Desktop.
- 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