mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-02-03 09:48:38 +08:00
Update main.yml
This commit is contained in:
parent
c3511dcf05
commit
eb49981336
@ -8,6 +8,26 @@
|
||||
ln -sf /snap/bin/certbot /usr/bin/certbot
|
||||
when: nginx_certbot
|
||||
|
||||
- name: Configure Nginx
|
||||
copy:
|
||||
src: nginx.conf
|
||||
dest: /etc/nginx/
|
||||
|
||||
- name: Check system architecture
|
||||
shell: uname -m
|
||||
register: system_architecture
|
||||
|
||||
- name: Print system architecture
|
||||
debug:
|
||||
var: system_architecture.stdout
|
||||
|
||||
- name: Change user on ubuntu arm
|
||||
lineinfile:
|
||||
dest: /etc/nginx/nginx.conf
|
||||
regexp: "user nginx;"
|
||||
line: "user www-data;"
|
||||
when: system_architecture.stdout == "aarch64" and ansible_os_family == "Debian"
|
||||
|
||||
- name: Create a Nginx Log symbolic link
|
||||
file:
|
||||
src: '{{item.src}}'
|
||||
|
Loading…
Reference in New Issue
Block a user