From 7dab5d4ac25ca0dcb1540504dbdcb9455d6a8449 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Tue, 30 Oct 2018 15:51:03 +0100 Subject: [PATCH] lint: name tasks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tasks must have names. Signed-off-by: Sébastien Han --- roles/ceph-infra/tasks/ntp_debian.yml | 21 ++++++++++++++------- roles/ceph-infra/tasks/ntp_rpm.yml | 21 ++++++++++++++------- 2 files changed, 28 insertions(+), 14 deletions(-) diff --git a/roles/ceph-infra/tasks/ntp_debian.yml b/roles/ceph-infra/tasks/ntp_debian.yml index f1da045f1..80c8fac82 100644 --- a/roles/ceph-infra/tasks/ntp_debian.yml +++ b/roles/ceph-infra/tasks/ntp_debian.yml @@ -1,11 +1,14 @@ --- - name: setup ntpd block: - - command: timedatectl set-ntp no - - package: + - name: timedatectl set-ntp no + command: timedatectl set-ntp no + - name: install ntp + package: name: ntp state: present - - service: + - name: start ntp + service: name: ntp enabled: yes state: started @@ -13,11 +16,14 @@ - name: setup chrony block: - - command: timedatectl set-ntp no - - package: + - name: timedatectl set-ntp no + command: timedatectl set-ntp no + - name: install chrony + package: name: chrony state: present - - service: + - name: start chronyd + service: name: chronyd enabled: yes state: started @@ -25,5 +31,6 @@ - name: setup timesyncd block: - - command: timedatectl set-ntp on + - name: timedatectl set-ntp on + command: timedatectl set-ntp on when: ntp_daemon_type == "timesyncd" diff --git a/roles/ceph-infra/tasks/ntp_rpm.yml b/roles/ceph-infra/tasks/ntp_rpm.yml index 866667c2b..9e4d38cd2 100644 --- a/roles/ceph-infra/tasks/ntp_rpm.yml +++ b/roles/ceph-infra/tasks/ntp_rpm.yml @@ -1,11 +1,14 @@ --- - name: setup ntpd block: - - command: timedatectl set-ntp no - - package: + - name: timedatectl set-ntp no + command: timedatectl set-ntp no + - name: install ntp + package: name: ntp state: present - - service: + - name: start ntp + service: name: ntpd enabled: yes state: started @@ -13,11 +16,14 @@ - name: setup chrony block: - - command: timedatectl set-ntp no - - package: + - name: timedatectl set-ntp no + command: timedatectl set-ntp no + - name: install chrony + package: name: chrony state: present - - service: + - name: start chrony + service: name: chronyd enabled: yes state: started @@ -25,5 +31,6 @@ - name: setup timesyncd block: - - command: timedatectl set-ntp on + - name: timedatectl set-ntp on + command: timedatectl set-ntp on when: ntp_daemon_type == "timesyncd"