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
+3 -34
View File
@@ -1,40 +1,9 @@
---
- name: Update packeges
- name: Update packages
hosts: node
become: yes
tasks:
- name: Update all packages Ubuntu
when: ansible_os_family == 'Debian'
apt:
update_cache: yes
upgrade: yes
- name: Update all packages CentOS
when: ansible_os_family == 'RedHat'
yum:
name: '*'
state: latest
- name: Install nginx 'Ubuntu'
when: ansible_os_family == 'Debian'
ansible.builtin.apt:
package:
- nginx
state: present
update_cache: yes
- name: Install nginx 'RedHat'
when: ansible_os_family == 'RedHat'
ansible.builtin.yum:
name:
- nginx
state: present
- name: Copy config nginx
ansible.builtin.template:
src: nginx.conf.j2
dest: /etc/nginx/nginx.conf
roles:
- role: ./tsm_labs