Commit 756c9473 authored by Va4o4o's avatar Va4o4o
Browse files

Added systemd start & enable

parent 7370ed3c
...@@ -84,6 +84,7 @@ resource "aws_route53_record" "dns_records_DO" { ...@@ -84,6 +84,7 @@ resource "aws_route53_record" "dns_records_DO" {
type = "A" type = "A"
ttl = 300 ttl = 300
records = ["${element(digitalocean_droplet.VPS.*.ipv4_address, count.index)}"] records = ["${element(digitalocean_droplet.VPS.*.ipv4_address, count.index)}"]
allow_overwrite = true
} }
......
...@@ -2,5 +2,17 @@ ...@@ -2,5 +2,17 @@
- hosts: - hosts:
- all - all
tasks: tasks:
- name: Install nginx - name: Install NGINX
apt: name=nginx state=present apt:
name: nginx
state: present
handlers:
- name: NGINX start
service:
name: nginx
stme: started
- name: NGINX enable
ansible.builtin.service:
name: nginx
enabled: yes
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment