This commit is contained in:
2024-04-16 00:27:07 +03:00
parent f0ee952d8f
commit e68a1406ba
4 changed files with 10 additions and 45 deletions
+4 -4
View File
@@ -1,12 +1,12 @@
---
# handlers file for itt_labs
- name: Enable nginx service
ansible.builtin.systemd_service:
name: "nginx.service"
ansible.builtin.systemd:
name: nginx.service
state: restarted
enabled: true
- name: Reload nginx service
ansible.builtin.systemd_service:
name: "nginx.service"
ansible.builtin.systemd:
name: nginx.service
state: restarted
+1 -5
View File
@@ -1,8 +1,4 @@
---
- name: Update packeges
hosts: node
become: yes
tasks:
- name: Update all packages Ubuntu
when: ansible_os_family == 'Debian'
apt:
@@ -36,7 +32,7 @@
dest: /etc/nginx/nginx.conf
owner: root
group: root
made: '0644'
mode: '0644'
notify: Reload nginx service