diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d80264e..36394bc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,12 +1,12 @@ --- -name: Linter and test the project - +name: Linter and test the project + env: ANSIBLE_INVENTORY_UNPARSED_WARNING: 'False' ANSIBLE_LOCALHOST_WARNING: 'False' -on: [push] +on: ['push'] jobs: lint: @@ -17,8 +17,10 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v3 - - name: YAML check - run: yamllint tests/terraform_tfs_generator.yml + - name: Markdown files check + run: mdl $(find . -name *.md) + - name: YAML files check + run: yamllint $(find . -name *.yml -or -name *.yaml) - name: Ansible Linter check run: ansible-lint tests/terraform_tfs_generator.yml - name: Ansible syntax check diff --git a/tasks/azure-vms.yml b/tasks/azure-vms.yml index 0440d3a..bbbd1d0 100644 --- a/tasks/azure-vms.yml +++ b/tasks/azure-vms.yml @@ -6,6 +6,6 @@ dest: "{{ item.dest }}" mode: '0640' with_items: - - { src: "azure/vms.tf.j2", dest: "{{ terraform_config_dir }}/azure/{{ group_name }}.vms.tf" } - - { src: "azure/disks.tf.j2", dest: "{{ terraform_config_dir }}/azure/{{ group_name }}.disks.tf" } - - { src: "azure/nics.tf.j2", dest: "{{ terraform_config_dir }}/azure/{{ group_name }}.nics.tf" } + - {src: "azure/vms.tf.j2", dest: "{{ terraform_config_dir }}/azure/{{ group_name }}.vms.tf"} + - {src: "azure/disks.tf.j2", dest: "{{ terraform_config_dir }}/azure/{{ group_name }}.disks.tf"} + - {src: "azure/nics.tf.j2", dest: "{{ terraform_config_dir }}/azure/{{ group_name }}.nics.tf"} diff --git a/tasks/libvirt-vms.yml b/tasks/libvirt-vms.yml index 25a7f2e..87db50e 100644 --- a/tasks/libvirt-vms.yml +++ b/tasks/libvirt-vms.yml @@ -6,4 +6,4 @@ dest: "{{ item.dest }}" mode: '0640' with_items: - - { src: "libvirt/vms.tf.j2", dest: "{{ terraform_config_dir }}/{{ terraform_group_name }}.vms.tf" } + - {src: "libvirt/vms.tf.j2", dest: "{{ terraform_config_dir }}/{{ terraform_group_name }}.vms.tf"}