1
0
Fork 0

rearrange things, automate ansible inventory

This commit is contained in:
Von Random 2025-01-19 23:57:00 +02:00
parent 299b142adc
commit e2423e7e92
11 changed files with 32 additions and 33 deletions

View file

@ -1,22 +0,0 @@
---
- name: Configure nginx
become: true
hosts: all
vars:
ansible_python_interpreter: /usr/bin/python3
tasks:
- name: install nginx
ansible.builtin.apt:
name: nginx
state: present
update_cache: true
- name: copy config
ansible.builtin.template:
src: nginx.conf.j2
dest: /etc/nginx/nginx.conf
- name: restart service
ansible.builtin.service:
name: nginx
state: restarted