Refs #8141: Time Server Deploy - Rol services structure

This commit is contained in:
Xavi Lleó 2024-10-28 15:51:58 +01:00
parent e96ace76e9
commit 7af67caade
5 changed files with 29 additions and 0 deletions

9
playbooks/services.yml Normal file
View File

@ -0,0 +1,9 @@
- name: Configure Directory, Time, and Database Services
hosts: all
tasks:
- import_role:
name: ldap_samba
- import_role:
name: timeserver
- import_role:
name: database

View File

@ -0,0 +1,2 @@
variable1: false
variable2_checked: false

View File

@ -0,0 +1,6 @@
- name: restart service
systemd:
name: service
state: restarted
- name: update example_command configuration
command: /usr/sbin/example_command

View File

@ -0,0 +1,5 @@
- import_tasks: witness.yml
tags: witness
- import_tasks: task.yml
tags: task

View File

@ -0,0 +1,7 @@
domain {{ host_domain }}
search {{ host_domain }}
{% if resolvers is defined %}
{% for resolver in resolvers %}
nameserver {{resolver}}
{% endfor %}
{% endif %}