Skip to content
Snippets Groups Projects
Commit e894ae12 authored by me5na7qbjqbrp's avatar me5na7qbjqbrp
Browse files

Merge branch 'fix_ntp_role' into 'newinfra'

Small fix on ntp

See merge request !117
parents 46677d59 460e2995
No related branches found
No related tags found
1 merge request!117Small fix on ntp
#!/usr/bin/env ansible-playbook #!/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 # Core playboot to have minimal configuration
- import_playbook: plays/root.yml - import_playbook: plays/root.yml
- import_playbook: plays/mail.yml - import_playbook: plays/mail.yml
- import_playbook: plays/nfs.yml - import_playbook: plays/nfs.yml
#- import_playbook: plays/logs.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/network-interfaces.yml
- import_playbook: plays/monitoring.yml - import_playbook: plays/monitoring.yml
......
...@@ -3,8 +3,6 @@ ...@@ -3,8 +3,6 @@
# zephir backups virtual machines. # zephir backups virtual machines.
# omnomnom backups home dirs. # omnomnom backups home dirs.
- import_playbook: get_adm_iface.yml
# Rsync client on all server to allow backup # Rsync client on all server to allow backup
#- hosts: server #- hosts: server
# vars: # vars:
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
register: apt_result register: apt_result
retries: 3 retries: 3
until: apt_result is succeeded until: apt_result is succeeded
when: inventory_hostname in ntp_servers when: inventory_hostname not in ntp_servers
- name: Configure NTP - name: Configure NTP
lineinfile: lineinfile:
...@@ -15,4 +15,4 @@ ...@@ -15,4 +15,4 @@
regexp: '^NTP=' regexp: '^NTP='
line: "NTP={{ ntp_servers | join(' ') }}" line: "NTP={{ ntp_servers | join(' ') }}"
notify: Restart systemd-timesyncd notify: Restart systemd-timesyncd
when: inventory_hostname in ntp_servers when: inventory_hostname not in ntp_servers
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment