bootstrap_config.yml 625 B

1234567891011121314151617181920
  1. ---
  2. - name: Ensure required directories are present
  3. file:
  4. path: "{{ item }}"
  5. owner: root
  6. group: root
  7. mode: 0755
  8. state: directory
  9. with_items:
  10. - /etc/origin/node/pods
  11. - /etc/origin/node/certificates
  12. - name: Update the sysconfig to group "{{ r_node_bootstrap_config_name }}"
  13. lineinfile:
  14. dest: "/etc/sysconfig/{{ openshift_service_type }}-node"
  15. line: "{{ item.line | default(omit) }}"
  16. regexp: "{{ item.regexp }}"
  17. state: "{{ item.state | default('present') }}"
  18. with_items:
  19. - line: "BOOTSTRAP_CONFIG_NAME={{ r_node_bootstrap_config_name }}"
  20. regexp: "^BOOTSTRAP_CONFIG_NAME=.*"