configure-node-settings.yml 509 B

12345678910111213141516
  1. ---
  2. - name: Configure Node settings
  3. lineinfile:
  4. dest: /etc/sysconfig/{{ openshift.common.service_type }}-node
  5. regexp: "{{ item.regex }}"
  6. line: "{{ item.line }}"
  7. create: true
  8. with_items:
  9. - regex: '^OPTIONS='
  10. line: "OPTIONS=--loglevel={{ openshift_node_debug_level }}"
  11. - regex: '^CONFIG_FILE='
  12. line: "CONFIG_FILE={{ openshift.common.config_base }}/node/node-config.yaml"
  13. - regex: '^IMAGE_VERSION='
  14. line: "IMAGE_VERSION={{ openshift_image_tag }}"
  15. notify:
  16. - restart node