Diabled Cows, Added full inventory, Added update playbook, Refactoring for Conformity

This commit is contained in:
Tim Schilling
2024-11-19 15:38:18 +01:00
parent 85c4ebba71
commit 34a7651d08
4 changed files with 39 additions and 18 deletions
+12 -12
View File
@@ -6,27 +6,27 @@
tasks:
- name: Ensure nginx is installed
package:
name: nginx
update_cache: true
name: nginx
update_cache: true
- name: Copy nginx config file
copy:
src: nginx.conf
dest: /etc/nginx/sites-available/default
src: nginx.conf
dest: /etc/nginx/sites-available/default
- name: Enable Configuration
file:
src: /etc/nginx/sites-available/default
dest: /etc/nginx/sites-enabled/default
state: link
src: /etc/nginx/sites-available/default
dest: /etc/nginx/sites-enabled/default
state: link
- name: Copy index.html
template:
src: index.html.j2
dest: /usr/share/nginx/html/index.html
src: index.html.j2
dest: /usr/share/nginx/html/index.html
- name: Restart nginx
service:
name: nginx
state: restarted
...
name: nginx
state: restarted
...