ceph: set NTP servers
This commit is contained in:
		
							parent
							
								
									29598ef4bb
								
							
						
					
					
						commit
						4b34370d5d
					
				
					 2 changed files with 13 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -3,3 +3,9 @@
 | 
			
		|||
    name: nftables
 | 
			
		||||
    state: reloaded
 | 
			
		||||
  when: "'handler' not in ansible_skip_tags"
 | 
			
		||||
 | 
			
		||||
- name: restart systemd-timesyncd
 | 
			
		||||
  service:
 | 
			
		||||
    name: systemd-timesyncd
 | 
			
		||||
    state: restarted
 | 
			
		||||
  when: "'handler' not in ansible_skip_tags"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3,6 +3,13 @@
 | 
			
		|||
    dest: /etc/hosts
 | 
			
		||||
    src: hosts.j2
 | 
			
		||||
 | 
			
		||||
- name: Set up NTP servers
 | 
			
		||||
  lineinfile:
 | 
			
		||||
    path: /etc/systemd/timesyncd.conf
 | 
			
		||||
    regexp: '^#?NTP='
 | 
			
		||||
    line: 'NTP={{ ntp | join(" ") }}'
 | 
			
		||||
  notify: restart systemd-timesyncd
 | 
			
		||||
 | 
			
		||||
- name: Generate my SSH key
 | 
			
		||||
  openssh_keypair:
 | 
			
		||||
    path: /root/.ssh/id_ed25519
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue