We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fapolicyd blocks ansibles method of deploying multiple files. work around identified as:
`- name: Find yaml files ansible.builtin.find: paths: "{{ cluster_manifest_config_file_path }}" file_type: file recurse: No patterns: "*yaml" register: files_matched delegate_to: localhost when: - inventory_hostname in groups['rke2_servers'][0] - cluster_manifest_config_file_path is defined - cluster_manifest_config_file_path | length > 0
name: Set manifest_file_list for other hosts ansible.builtin.set_fact: manifest_file_list: "{{files_matched}}" delegate_to: localhost
name: Print manifest_file_list ansible.builtin.debug: msg: "{{ manifest_file_list }}"
name: Add cluster manifest addons files ansible.builtin.copy: src: "{{ item.path }}" dest: "/var/lib/rancher/rke2/server/manifests/cluster_templates/" mode: '0640' owner: root group: root with_items: "{{manifest_file_list.files}}" when:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
fapolicyd blocks ansibles method of deploying multiple files. work around identified as:
`- name: Find yaml files
ansible.builtin.find:
paths: "{{ cluster_manifest_config_file_path }}"
file_type: file
recurse: No
patterns: "*yaml"
register: files_matched
delegate_to: localhost
when:
- inventory_hostname in groups['rke2_servers'][0]
- cluster_manifest_config_file_path is defined
- cluster_manifest_config_file_path | length > 0
name: Set manifest_file_list for other hosts
ansible.builtin.set_fact:
manifest_file_list: "{{files_matched}}"
delegate_to: localhost
name: Print manifest_file_list
ansible.builtin.debug:
msg: "{{ manifest_file_list }}"
name: Add cluster manifest addons files
ansible.builtin.copy:
src: "{{ item.path }}"
dest: "/var/lib/rancher/rke2/server/manifests/cluster_templates/"
mode: '0640'
owner: root
group: root
with_items: "{{manifest_file_list.files}}"
when:
The text was updated successfully, but these errors were encountered: