Small fix on ntp

certbot_on_virtu
Alexandre Iooss 2020-11-29 17:49:02 +01:00
parent 46677d5921
commit 460e2995bf
3 changed files with 3 additions and 8 deletions

View File

@ -1,15 +1,12 @@
#!/usr/bin/env ansible-playbook
---
# Set variable adm_iface for all servers
- import_playbook: plays/get_adm_iface.yml
# Core playboot to have minimal configuration
- import_playbook: plays/root.yml
- import_playbook: plays/mail.yml
- import_playbook: plays/nfs.yml
#- import_playbook: plays/logs.yml
- import_playbook: plays/backup.yml
#- import_playbook: plays/backup.yml
- import_playbook: plays/network-interfaces.yml
- import_playbook: plays/monitoring.yml

View File

@ -3,8 +3,6 @@
# zephir backups virtual machines.
# omnomnom backups home dirs.
- import_playbook: get_adm_iface.yml
# Rsync client on all server to allow backup
#- hosts: server
# vars:

View File

@ -7,7 +7,7 @@
register: apt_result
retries: 3
until: apt_result is succeeded
when: inventory_hostname in ntp_servers
when: inventory_hostname not in ntp_servers
- name: Configure NTP
lineinfile:
@ -15,4 +15,4 @@
regexp: '^NTP='
line: "NTP={{ ntp_servers | join(' ') }}"
notify: Restart systemd-timesyncd
when: inventory_hostname in ntp_servers
when: inventory_hostname not in ntp_servers