rearrange things, automate ansible inventory
This commit is contained in:
parent
299b142adc
commit
e2423e7e92
11 changed files with 32 additions and 33 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue