1
0
Fork 0
This commit is contained in:
Von Random 2025-04-18 20:48:27 +03:00
parent a3482c92a6
commit 871d1f6ae1
4 changed files with 26 additions and 14 deletions

View file

@ -3,27 +3,30 @@
gather_facts: false
hosts: all
tasks:
- name: check 22/tcp
- name: Check port
ansible.builtin.wait_for:
port: 22
connect_timeout: 30
- name: Configure nginx
become: true
hosts: all
tasks:
- name: install nginx
- name: Install
ansible.builtin.apt:
name: nginx
state: present
update_cache: true
- name: copy config
- name: Config
ansible.builtin.template:
src: nginx.conf.j2
dest: /etc/nginx/nginx.conf
mode: '0644'
user: root
group: root
- name: restart service
- name: Restart
ansible.builtin.service:
name: nginx
state: restarted