blob: 591e19584eefbdc2fb9c978e8d036138491eff40 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
- name: Install nginx
community.general.apk:
name: nginx
- name: Remove default nginx site config
register: default_nginx_site
ansible.builtin.file:
path: /etc/nginx/http.d/default.conf
state: absent
- name: Start nginx service and configure to restart on boot
ansible.builtin.service:
name: nginx
enabled: true
state: started
- name: Install script to update nginx
ansible.builtin.template:
src: update_nginx
dest: /usr/bin/update_nginx
mode: "755"
- name: Install daily crontab to update nginx
ansible.builtin.cron:
special_time: daily
name: Update nginx
job: /usr/bin/update_nginx
|