<commit_before>---
# handlers file for setup

#
#	Set hostname when /etc/hostsname is updated
#
- name: Set hostname
  shell: "hostname -F /etc/hostname"

#
#	Run update-ca-certificates
#
- name: update-ca-certificates
  shell: "update-ca-certificates"

#
#	Make sure init script is run
#
- name: update rc
  shell: "update-rc.d -f ttn-pkt-forwarder remove; update-rc.d ttn-pkt-forwarder defaults 95 30"
  
#
#	Restart the packet forwarder
#
- name: restart ttn-pkt-forwarder
  service: name=ttn-pkt-forwarder state=restarted

#
#	Remind to
- name: register gateway
  debug:
    msg: "Please go to https://console.thethingsnetwork.org/gateways
 and update the antenna Altitude and Placement for this gateway.  The
 API does not allow these parameters to be set" 

#
#       Restart ntpd
#
- name: restart ntpd
  service: name=ntpd state=restarted

#
#       Restart ssh_tunnel
#
- name: restart ssh_tunnel
  service: name=ssh_tunnel state=restarted

#<commit_msg>Claify register warning and only print once<commit_after>---
# handlers file for setup

#
#	Set hostname when /etc/hostsname is updated
#
- name: Set hostname
  shell: "hostname -F /etc/hostname"

#
#	Run update-ca-certificates
#
- name: update-ca-certificates
  shell: "update-ca-certificates"

#
#	Make sure init script is run
#
- name: update rc
  shell: "update-rc.d -f ttn-pkt-forwarder remove; update-rc.d ttn-pkt-forwarder defaults 95 30"
  
#
#	Restart the packet forwarder
#
- name: restart ttn-pkt-forwarder
  service: name=ttn-pkt-forwarder state=restarted

#
#	Remind to
- name: register gateway
  debug:
    msg: "Please go to https://console.thethingsnetwork.org/gateways
 and update the antenna Altitude and Placement your gateways.  The
 API does not allow these parameters to be set" 
  run_once: true

#
#       Restart ntpd
#
- name: restart ntpd
  service: name=ntpd state=restarted

#
#       Restart ssh_tunnel
#
- name: restart ssh_tunnel
  service: name=ssh_tunnel state=restarted

#
{'fraction_non_alphanumeric': 0.09796954314720813, 'fraction_numerical': 0.0040609137055837565, 'mean_word_length': 3.5414746543778803, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4204969', 'n_tokens_mistral': 711, 'n_tokens_neox': 694, 'n_words': 207}