Diabled Cows, Added full inventory, Added update playbook, Refactoring for Conformity
This commit is contained in:
+12
-12
@@ -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
|
||||
...
|
||||
|
||||
Reference in New Issue
Block a user