Update main.yml

This commit is contained in:
qiaofeng1227 2023-05-08 14:50:23 +08:00 committed by GitHub
parent c3511dcf05
commit eb49981336
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}}'