diff --git a/all.yml b/all.yml index 83d22b72..709ba117 100755 --- a/all.yml +++ b/all.yml @@ -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 diff --git a/plays/backup.yml b/plays/backup.yml index b39bb870..7d468100 100755 --- a/plays/backup.yml +++ b/plays/backup.yml @@ -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: diff --git a/roles/ntp-client/tasks/main.yml b/roles/ntp-client/tasks/main.yml index 2dac6728..8d2c04d1 100644 --- a/roles/ntp-client/tasks/main.yml +++ b/roles/ntp-client/tasks/main.yml @@ -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