Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Administrator
Ansible_public
Commits
756c9473
Commit
756c9473
authored
Sep 29, 2021
by
Va4o4o
Browse files
Added systemd start & enable
parent
7370ed3c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
main.tf
main.tf
+1
-0
playbook1.yml
playbook1.yml
+14
-2
No files found.
main.tf
View file @
756c9473
...
...
@@ -84,6 +84,7 @@ resource "aws_route53_record" "dns_records_DO" {
type
=
"A"
ttl
=
300
records
=
[
"
${
element
(
digitalocean_droplet
.
VPS
.
*
.
ipv4_address
,
count
.
index
)
}
"
]
allow_overwrite
=
true
}
...
...
playbook1.yml
View file @
756c9473
...
...
@@ -2,5 +2,17 @@
-
hosts
:
-
all
tasks
:
-
name
:
Install nginx
apt
:
name=nginx state=present
-
name
:
Install NGINX
apt
:
name
:
nginx
state
:
present
handlers
:
-
name
:
NGINX start
service
:
name
:
nginx
stme
:
started
-
name
:
NGINX enable
ansible.builtin.service
:
name
:
nginx
enabled
:
yes
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment