Skip to content

Commit

Permalink
Merge pull request #297 from ksimon1/replace-include-in-playbooks
Browse files Browse the repository at this point in the history
fix: replace include with include_tasks
  • Loading branch information
ksimon1 authored Dec 21, 2023
2 parents 5cbcd9f + d46e464 commit 7ea4795
Show file tree
Hide file tree
Showing 12 changed files with 33 additions and 33 deletions.
6 changes: 3 additions & 3 deletions templates/cleanup-vm/generate-task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
ssh_secret_name: "ssh-secret"
tasks:
- name: Init
include: "{{ repo_dir }}/scripts/ansible/init-task-generation.yaml"
include_tasks: "{{ repo_dir }}/scripts/ansible/init-task-generation.yaml"
- name: "Generate {{ task_name }} task"
template:
src: "{{ execute_in_vm_manifest_templates_dir }}/{{ task_category }}.yaml"
Expand All @@ -23,7 +23,7 @@
vars:
is_cleanup: true
- name: Generate roles
include: "{{ repo_dir }}/scripts/ansible/generate-roles.yaml"
include_tasks: "{{ repo_dir }}/scripts/ansible/generate-roles.yaml"
with_items:
- { role_type: ClusterRole, prefix: zz- }
vars:
Expand Down Expand Up @@ -62,4 +62,4 @@
task_path: "{{ manifests_output_dir_tmp }}/{{ task_name }}.yaml"
task_yaml: "{{ lookup('file', task_path) | from_yaml }}"
- name: Assemble task
include: "{{ repo_dir }}/scripts/ansible/assemble-task.yaml"
include_tasks: "{{ repo_dir }}/scripts/ansible/assemble-task.yaml"
6 changes: 3 additions & 3 deletions templates/copy-template/generate-task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
- ../../scripts/ansible/common.yaml
tasks:
- name: Init
include: "{{ repo_dir }}/scripts/ansible/init-task-generation.yaml"
include_tasks: "{{ repo_dir }}/scripts/ansible/init-task-generation.yaml"
- name: "Generate {{ task_name }} task"
template:
src: "{{ manifest_templates_dir }}/{{ task_name }}.yaml"
dest: "{{ manifests_output_dir_tmp }}/{{ task_name }}.yaml"
mode: "{{ default_file_mode }}"
- name: Generate roles
include: "{{ repo_dir }}/scripts/ansible/generate-roles.yaml"
include_tasks: "{{ repo_dir }}/scripts/ansible/generate-roles.yaml"
with_items:
- { role_type: ClusterRole, prefix: zz- }
vars:
Expand Down Expand Up @@ -43,4 +43,4 @@
task_path: "{{ manifests_output_dir_tmp }}/{{ task_name }}.yaml"
task_yaml: "{{ lookup('file', task_path) | from_yaml }}"
- name: Assemble task
include: "{{ repo_dir }}/scripts/ansible/assemble-task.yaml"
include_tasks: "{{ repo_dir }}/scripts/ansible/assemble-task.yaml"
6 changes: 3 additions & 3 deletions templates/create-vm-from-manifest/generate-task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
- ../../scripts/ansible/common.yaml
tasks:
- name: Init
include: "{{ repo_dir }}/scripts/ansible/init-task-generation.yaml"
include_tasks: "{{ repo_dir }}/scripts/ansible/init-task-generation.yaml"
- name: "Generate {{ task_name }} task"
template:
src: "{{ manifest_templates_dir }}/{{ task_category }}.yaml"
dest: "{{ manifests_output_dir_tmp }}/{{ task_name }}.yaml"
mode: "{{ default_file_mode }}"
- name: Generate roles
include: "{{ repo_dir }}/scripts/ansible/generate-roles.yaml"
include_tasks: "{{ repo_dir }}/scripts/ansible/generate-roles.yaml"
with_items:
- { role_type: ClusterRole, prefix: zz- }
vars:
Expand Down Expand Up @@ -43,4 +43,4 @@
task_path: "{{ manifests_output_dir_tmp }}/{{ task_name }}.yaml"
task_yaml: "{{ lookup('file', task_path) | from_yaml }}"
- name: Assemble task
include: "{{ repo_dir }}/scripts/ansible/assemble-task.yaml"
include_tasks: "{{ repo_dir }}/scripts/ansible/assemble-task.yaml"
6 changes: 3 additions & 3 deletions templates/create-vm-from-template/generate-task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
create_vm_from_manifest_manifest_templates_dir: ../create-vm-from-manifest/manifests
tasks:
- name: Init
include: "{{ repo_dir }}/scripts/ansible/init-task-generation.yaml"
include_tasks: "{{ repo_dir }}/scripts/ansible/init-task-generation.yaml"
- name: "Generate {{ task_name }} task"
template:
src: "{{ create_vm_from_manifest_manifest_templates_dir }}/{{ task_category }}.yaml"
dest: "{{ manifests_output_dir_tmp }}/{{ task_name }}.yaml"
mode: "{{ default_file_mode }}"
- name: Generate roles
include: "{{ repo_dir }}/scripts/ansible/generate-roles.yaml"
include_tasks: "{{ repo_dir }}/scripts/ansible/generate-roles.yaml"
with_items:
- { role_type: ClusterRole, prefix: zz- }
vars:
Expand Down Expand Up @@ -45,4 +45,4 @@
task_path: "{{ manifests_output_dir_tmp }}/{{ task_name }}.yaml"
task_yaml: "{{ lookup('file', task_path) | from_yaml }}"
- name: Assemble task
include: "{{ repo_dir }}/scripts/ansible/assemble-task.yaml"
include_tasks: "{{ repo_dir }}/scripts/ansible/assemble-task.yaml"
4 changes: 2 additions & 2 deletions templates/disk-virt-customize/generate-task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
- ../../scripts/ansible/common.yaml
tasks:
- name: Init
include: "{{ repo_dir }}/scripts/ansible/init-task-generation.yaml"
include_tasks: "{{ repo_dir }}/scripts/ansible/init-task-generation.yaml"
- name: "Generate {{ task_name }} task"
template:
src: "{{ manifest_templates_dir }}/{{ task_name }}.yaml"
Expand Down Expand Up @@ -38,4 +38,4 @@
task_path: "{{ manifests_output_dir_tmp }}/{{ task_name }}.yaml"
task_yaml: "{{ lookup('file', task_path) | from_yaml }}"
- name: Assemble task
include: "{{ repo_dir }}/scripts/ansible/assemble-task.yaml"
include_tasks: "{{ repo_dir }}/scripts/ansible/assemble-task.yaml"
4 changes: 2 additions & 2 deletions templates/disk-virt-sysprep/generate-task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
- ../../scripts/ansible/common.yaml
tasks:
- name: Init
include: "{{ repo_dir }}/scripts/ansible/init-task-generation.yaml"
include_tasks: "{{ repo_dir }}/scripts/ansible/init-task-generation.yaml"
- name: "Generate {{ task_name }} task"
template:
src: "{{ manifest_templates_dir }}/{{ task_name }}.yaml"
Expand Down Expand Up @@ -38,4 +38,4 @@
task_path: "{{ manifests_output_dir_tmp }}/{{ task_name }}.yaml"
task_yaml: "{{ lookup('file', task_path) | from_yaml }}"
- name: Assemble task
include: "{{ repo_dir }}/scripts/ansible/assemble-task.yaml"
include_tasks: "{{ repo_dir }}/scripts/ansible/assemble-task.yaml"
6 changes: 3 additions & 3 deletions templates/execute-in-vm/generate-task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
ssh_secret_name: "ssh-secret"
tasks:
- name: Init
include: "{{ repo_dir }}/scripts/ansible/init-task-generation.yaml"
include_tasks: "{{ repo_dir }}/scripts/ansible/init-task-generation.yaml"
- name: "Generate {{ task_name }} task"
template:
src: "{{ manifest_templates_dir }}/{{ task_name }}.yaml"
Expand All @@ -20,7 +20,7 @@
vars:
is_cleanup: false
- name: Generate roles
include: "{{ repo_dir }}/scripts/ansible/generate-roles.yaml"
include_tasks: "{{ repo_dir }}/scripts/ansible/generate-roles.yaml"
with_items:
- { role_type: ClusterRole, prefix: zz- }
vars:
Expand Down Expand Up @@ -58,4 +58,4 @@
task_path: "{{ manifests_output_dir_tmp }}/{{ task_name }}.yaml"
task_yaml: "{{ lookup('file', task_path) | from_yaml }}"
- name: Assemble task
include: "{{ repo_dir }}/scripts/ansible/assemble-task.yaml"
include_tasks: "{{ repo_dir }}/scripts/ansible/assemble-task.yaml"
6 changes: 3 additions & 3 deletions templates/generate-ssh-keys/generate-task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
- ../../scripts/ansible/common.yaml
tasks:
- name: Init
include: "{{ repo_dir }}/scripts/ansible/init-task-generation.yaml"
include_tasks: "{{ repo_dir }}/scripts/ansible/init-task-generation.yaml"
- name: "Generate {{ task_name }} task"
template:
src: "{{ manifest_templates_dir }}/{{ task_name }}.yaml"
Expand All @@ -17,7 +17,7 @@
with_items:
- { task_type: Default, task_with_flavor_name: "{{ task_name }}" }
- name: Generate roles
include: "{{ repo_dir }}/scripts/ansible/generate-roles.yaml"
include_tasks: "{{ repo_dir }}/scripts/ansible/generate-roles.yaml"
with_items:
- { role_type: ClusterRole, prefix: zz- }
vars:
Expand Down Expand Up @@ -46,4 +46,4 @@
task_path: "{{ manifests_output_dir_tmp }}/{{ task_name }}.yaml"
task_yaml: "{{ lookup('file', task_path) | from_yaml }}"
- name: Assemble task
include: "{{ repo_dir }}/scripts/ansible/assemble-task.yaml"
include_tasks: "{{ repo_dir }}/scripts/ansible/assemble-task.yaml"
6 changes: 3 additions & 3 deletions templates/modify-data-object/generate-task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
- ../../scripts/ansible/common.yaml
tasks:
- name: Init
include: "{{ repo_dir }}/scripts/ansible/init-task-generation.yaml"
include_tasks: "{{ repo_dir }}/scripts/ansible/init-task-generation.yaml"
- name: "Generate {{ task_name }} task"
template:
src: "{{ manifest_templates_dir }}/{{ task_category }}.yaml"
dest: "{{ manifests_output_dir_tmp }}/{{ task_name }}.yaml"
mode: "{{ default_file_mode }}"
- name: Generate roles
include: "{{ repo_dir }}/scripts/ansible/generate-roles.yaml"
include_tasks: "{{ repo_dir }}/scripts/ansible/generate-roles.yaml"
with_items:
- { role_type: ClusterRole, prefix: zz- }
vars:
Expand Down Expand Up @@ -43,4 +43,4 @@
task_path: "{{ manifests_output_dir_tmp }}/{{ task_name }}.yaml"
task_yaml: "{{ lookup('file', task_path) | from_yaml }}"
- name: Assemble task
include: "{{ repo_dir }}/scripts/ansible/assemble-task.yaml"
include_tasks: "{{ repo_dir }}/scripts/ansible/assemble-task.yaml"
6 changes: 3 additions & 3 deletions templates/modify-vm-template/generate-task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
- ../../scripts/ansible/common.yaml
tasks:
- name: Init
include: "{{ repo_dir }}/scripts/ansible/init-task-generation.yaml"
include_tasks: "{{ repo_dir }}/scripts/ansible/init-task-generation.yaml"
- name: "Generate {{ task_name }} task"
template:
src: "{{ manifest_templates_dir }}/{{ task_category }}.yaml"
dest: "{{ manifests_output_dir_tmp }}/{{ task_name }}.yaml"
mode: "{{ default_file_mode }}"
- name: Generate roles
include: "{{ repo_dir }}/scripts/ansible/generate-roles.yaml"
include_tasks: "{{ repo_dir }}/scripts/ansible/generate-roles.yaml"
with_items:
- { role_type: ClusterRole, prefix: zz- }
vars:
Expand Down Expand Up @@ -43,4 +43,4 @@
task_path: "{{ manifests_output_dir_tmp }}/{{ task_name }}.yaml"
task_yaml: "{{ lookup('file', task_path) | from_yaml }}"
- name: Assemble task
include: "{{ repo_dir }}/scripts/ansible/assemble-task.yaml"
include_tasks: "{{ repo_dir }}/scripts/ansible/assemble-task.yaml"
4 changes: 2 additions & 2 deletions templates/modify-windows-iso-file/generate-task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
- ../../scripts/ansible/common.yaml
tasks:
- name: Init
include: "{{ repo_dir }}/scripts/ansible/init-task-generation.yaml"
include_tasks: "{{ repo_dir }}/scripts/ansible/init-task-generation.yaml"
- name: "Generate {{ task_name }} task"
template:
src: "{{ manifest_templates_dir }}/{{ task_category }}.yaml"
Expand Down Expand Up @@ -37,4 +37,4 @@
task_path: "{{ manifests_output_dir_tmp }}/{{ task_name }}.yaml"
task_yaml: "{{ lookup('file', task_path) | from_yaml }}"
- name: Assemble task
include: "{{ repo_dir }}/scripts/ansible/assemble-task.yaml"
include_tasks: "{{ repo_dir }}/scripts/ansible/assemble-task.yaml"
6 changes: 3 additions & 3 deletions templates/wait-for-vmi-status/generate-task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
- ../../scripts/ansible/common.yaml
tasks:
- name: Init
include: "{{ repo_dir }}/scripts/ansible/init-task-generation.yaml"
include_tasks: "{{ repo_dir }}/scripts/ansible/init-task-generation.yaml"
- name: "Generate {{ task_name }} task"
template:
src: "{{ manifest_templates_dir }}/{{ task_name }}.yaml"
Expand All @@ -17,7 +17,7 @@
with_items:
- { task_type: Default, task_with_flavor_name: "{{ task_name }}" }
- name: Generate roles
include: "{{ repo_dir }}/scripts/ansible/generate-roles.yaml"
include_tasks: "{{ repo_dir }}/scripts/ansible/generate-roles.yaml"
with_items:
- { role_type: ClusterRole, prefix: zz- }
vars:
Expand Down Expand Up @@ -45,4 +45,4 @@
task_path: "{{ manifests_output_dir_tmp }}/{{ task_name }}.yaml"
task_yaml: "{{ lookup('file', task_path) | from_yaml }}"
- name: Assemble task
include: "{{ repo_dir }}/scripts/ansible/assemble-task.yaml"
include_tasks: "{{ repo_dir }}/scripts/ansible/assemble-task.yaml"

0 comments on commit 7ea4795

Please sign in to comment.