You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
507 B

  1. ---
  2. - name: Kubeadm | Create directory to store kubeadm patches
  3. file:
  4. path: "{{ kubeadm_patches_dir }}"
  5. state: directory
  6. mode: "0640"
  7. when: kubeadm_patches | length > 0
  8. - name: Kubeadm | Copy kubeadm patches from inventory files
  9. copy:
  10. content: "{{ item.patch | to_yaml }}"
  11. dest: "{{ kubeadm_patches_dir }}/{{ item.target }}{{ suffix }}+{{ item.type | d('strategic') }}.yaml"
  12. owner: "root"
  13. mode: "0644"
  14. loop: "{{ kubeadm_patches }}"
  15. loop_control:
  16. index_var: suffix