]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
docker-common: remove legacy tasks for ntp configuration
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 19 Oct 2018 13:57:18 +0000 (15:57 +0200)
committerSébastien Han <seb@redhat.com>
Mon, 12 Nov 2018 09:51:48 +0000 (10:51 +0100)
Those tasks aren't needed in docker-common since the introduction of
`ceph-infra` role. They are duplicated tasks.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
roles/ceph-docker-common/tasks/checks/check_ntp_atomic.yml [deleted file]
roles/ceph-docker-common/tasks/checks/check_ntp_debian.yml [deleted file]
roles/ceph-docker-common/tasks/checks/check_ntp_rpm.yml [deleted file]
roles/ceph-docker-common/tasks/main.yml
roles/ceph-docker-common/tasks/misc/ntp_atomic.yml [deleted file]
roles/ceph-docker-common/tasks/misc/ntp_debian.yml [deleted file]
roles/ceph-docker-common/tasks/misc/ntp_rpm.yml [deleted file]

diff --git a/roles/ceph-docker-common/tasks/checks/check_ntp_atomic.yml b/roles/ceph-docker-common/tasks/checks/check_ntp_atomic.yml
deleted file mode 100644 (file)
index 668655b..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
----
-- name: check ntp installation on atomic
-  command: rpm -q chrony
-  args:
-    warn: no
-  register: ntp_pkg_query
-  ignore_errors: true
-  check_mode: no
-  changed_when: false
diff --git a/roles/ceph-docker-common/tasks/checks/check_ntp_debian.yml b/roles/ceph-docker-common/tasks/checks/check_ntp_debian.yml
deleted file mode 100644 (file)
index 6cdc07d..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
----
-- name: check ntp installation on debian
-  command: dpkg -s ntp
-  register: ntp_pkg_query
-  ignore_errors: true
-  check_mode: no
-  changed_when: false
-  when:
-    - ansible_os_family == 'Debian'
-
-- name: install ntp on debian
-  package:
-    name: ntp
-    state: present
diff --git a/roles/ceph-docker-common/tasks/checks/check_ntp_rpm.yml b/roles/ceph-docker-common/tasks/checks/check_ntp_rpm.yml
deleted file mode 100644 (file)
index 59f6f8c..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
----
-- name: check ntp installation on redhat or suse
-  command: rpm -q ntp
-  args:
-    warn: no
-  register: ntp_pkg_query
-  ignore_errors: true
-  check_mode: no
-  changed_when: false
-  when:
-    - ansible_os_family in ['RedHat', 'Suse']
-
-- name: install ntp on redhat or suse
-  package:
-    name: ntp
-    state: present
index f2e621a32ea77aa9919fd7a58d0318de7d6ed4be..093d56d6d68471053f1db97af3a80bd4c98b6b09 100644 (file)
     - not ceph_current_status.get('rc', 1) == 0
     - not rolling_update | default(false)
 
-- name: include misc/ntp_atomic.yml
-  include_tasks: misc/ntp_atomic.yml
-  when:
-    - is_atomic
-    - ansible_os_family == 'RedHat'
-    - ntp_service_enabled
-
-- name: include misc/ntp_rpm.yml
-  include_tasks: misc/ntp_rpm.yml
-  when:
-    - not is_atomic
-    - ansible_os_family in ['RedHat', 'Suse']
-    - ntp_service_enabled
-
-- name: include misc/ntp_debian.yml
-  include_tasks: misc/ntp_debian.yml
-  when:
-    - ansible_os_family == 'Debian'
-    - ntp_service_enabled
-
 - name: include fetch_image.yml
   include_tasks: fetch_image.yml
   tags:
diff --git a/roles/ceph-docker-common/tasks/misc/ntp_atomic.yml b/roles/ceph-docker-common/tasks/misc/ntp_atomic.yml
deleted file mode 100644 (file)
index fe6e268..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
----
-- name: include ../checks/check_ntp_atomic.yml
-  include_tasks: ../checks/check_ntp_atomic.yml
-  when: is_atomic
-
-- name: start the ntp service
-  service:
-    name: chronyd
-    enabled: yes
-    state: started
-  when:
-    - ntp_pkg_query.rc == 0
diff --git a/roles/ceph-docker-common/tasks/misc/ntp_debian.yml b/roles/ceph-docker-common/tasks/misc/ntp_debian.yml
deleted file mode 100644 (file)
index 6441daa..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
----
-- name: include ../checks/check_ntp_debian.yml
-  include_tasks: ../checks/check_ntp_debian.yml
-  when:
-    - ansible_os_family == 'Debian'
-
-- name: start the ntp service
-  service:
-    name: ntp
-    enabled: yes
-    state: started
-  when:
-    - ntp_pkg_query.rc == 0
diff --git a/roles/ceph-docker-common/tasks/misc/ntp_rpm.yml b/roles/ceph-docker-common/tasks/misc/ntp_rpm.yml
deleted file mode 100644 (file)
index 6f2a58a..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
----
-- name: include ../checks/check_ntp_rpm.yml
-  include_tasks: ../checks/check_ntp_rpm.yml
-  when:
-    - ansible_os_family in ['RedHat', 'Suse']
-
-- name: start the ntp service
-  service:
-    name: ntpd
-    enabled: yes
-    state: started
-  when:
-    - ntp_pkg_query.rc == 0