소스 검색

fix linting issues

Signed-off-by: Abdelaziz Raji <abdelaziz.raji@gmail.com>
Abdelaziz Raji 4 년 전
부모
커밋
8541a0b370
3개의 변경된 파일10개의 추가작업 그리고 11개의 파일을 삭제
  1. 2 6
      slurm/roles/ntp/handlers/main.yml
  2. 7 3
      slurm/roles/ntp/tasks/main.yml
  3. 1 2
      slurm/roles/ntp/vars/main.yml

+ 2 - 6
slurm/roles/ntp/handlers/main.yml

@@ -3,12 +3,8 @@
   service: name=ntpd state=restarted enabled=yes
 
 - name: sync clocks
-  shell: ntpdc -np
+  command: ntpdc -np
   register: ntp_clock
   until:  ntp_clock.stdout.find('*') > -1
   retries: 10
-  delay: 60
- 
-
-
-
+  delay: 60

+ 7 - 3
slurm/roles/ntp/tasks/main.yml

@@ -1,9 +1,13 @@
 ---
 - name: deploy ntpd
-  yum: name=ntp state=present
+  yum:
+    name: ntp
+    state: present
 
 - name: deploy ntpdate
-  yum: name=ntpdate state=present
+  yum:
+    name: ntpdate
+    state: present
 
 # ntp server
 - name: update ntp servers
@@ -16,4 +20,4 @@
     backup: yes
   notify:
     - restart ntpd
-    - sync clocks
+    - sync clocks

+ 1 - 2
slurm/roles/ntp/vars/main.yml

@@ -1,5 +1,4 @@
 ntp_servers: 
   - 0.centos.pool.ntp.org
   - 1.centos.pool.ntp.org
-  - 2.centos.pool.ntp.org
-
+  - 2.centos.pool.ntp.org