Created
July 26, 2020 01:10
-
-
Save winny-/079d6f202d297e5188d2bbc5d2323507 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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