Untitled
unknown
plain_text
22 days ago
6.2 kB
15
Indexable
Never
ansible-lint demo1.yml WARNING Listing 1 violation(s) that are fatal schema[tasks]: {'name': 'Configure the image', 'ansible.builtin.command': 'virt-customize -a {{ vm_disk }} \\\n--hostname {{ vm_name }} \\\n--timezone \'America/New_York\' \\\n--run-command \'sed -i "s/SELINUX=enforcing/SELINUX=permissive/g" /etc/selinux/config\' \\\n--run-command \'sed -i "s/enabled=1/enabled=0/g" /etc/yum.repos.d/*.repo\' \\\n--run-command \'sed -i "s/PermitRootLogin.*/PermitRootLogin Yes/g" /etc/ssh/sshd_config\' \\\n--run-command \'sed -i "s/RemoveIPC.*/RemoveIPC=no/g" /etc/ssh/sshd_config\' \\\n--copy-in {{ workdir }}/local.repo:/etc/yum.repos.d/ \\\n--copy-in {{ workdir }}/firstboot.sh:/tmp/ \\\n--copy-in {{ workdir }}/chrony.conf:/etc/ \\\n--copy-in {{ workdir }}/tmp.conf:/usr/lib/tmpfiles.d/ \\\n--copy-in {{ workdir }}/99-kernel-panic.conf:/etc/sysctl.d/ \\\n--uninstall cloud-init \\\n--update \\\n--install {{ install_packages | join(\',\') }} \\\n--root-password password:{{ vm_root_pass }} \\\n--ssh-inject \'root:file:{{ workdir }}/ssh_pub_key\' \\\n--ssh-inject \'oracle:file:{{ workdir }}/ssh_pub_key\' \\\n--firstboot-command \'sudo bash /tmp/firstboot.sh\'\n', 'environment': {'LIBGUESTFS_DEBUG': 1, 'LIBGUESTFS_TRACE': 1}, 'become': True, 'changed_when': False} is not valid under any of the given schemas demo1.yml:1 Returned errors will not include exact line numbers, but they will mention the schema name being used as a tag, like ``schema[playbook]``, ``schema[tasks]``. This rule is not skippable and stops further processing of the file. If incorrect schema was picked, you might want to either: * move the file to standard location, so its file is detected correctly. * use ``kinds:`` option in linter config to help it pick correct file type. Read documentation for instructions on how to ignore specific rule violations. Rule Violation Summary count tag profile rule associated tags 1 schema[tasks] basic core Failed: 1 failure(s), 0 warning(s) on 1 files. Last profile that met the validation criteria was 'min'. ansible-lint demo2.yml WARNING Listing 1 violation(s) that are fatal schema[tasks]: {'name': 'Configure the image', 'ansible.builtin.command': 'virt-customize -a {{ vm_disk }} --hostname {{ vm_name }} --timezone \'America/New_York\' --run-command \'sed -i "s/SELINUX=enforcing/SELINUX=permissive/g" /etc/selinux/config\' --run-command \'sed -i "s/enabled=1/enabled=0/g" /etc/yum.repos.d/*.repo\' --run-command \'sed -i "s/PermitRootLogin.*/PermitRootLogin Yes/g" /etc/ssh/sshd_config\' --run-command \'sed -i "s/RemoveIPC.*/RemoveIPC=no/g" /etc/ssh/sshd_config\' --copy-in {{ workdir }}/local.repo:/etc/yum.repos.d/ --copy-in {{ workdir }}/firstboot.sh:/tmp/ --copy-in {{ workdir }}/chrony.conf:/etc/ --copy-in {{ workdir }}/tmp.conf:/usr/lib/tmpfiles.d/ --copy-in {{ workdir }}/99-kernel-panic.conf:/etc/sysctl.d/ --uninstall cloud-init --update --install {{ install_packages | join(\',\') }} --root-password password:{{ vm_root_pass }} --ssh-inject \'root:file:{{ workdir }}/ssh_pub_key\' --ssh-inject \'oracle:file:{{ workdir }}/ssh_pub_key\' --firstboot-command \'sudo bash /tmp/firstboot.sh\'\n', 'environment': {'LIBGUESTFS_DEBUG': 1, 'LIBGUESTFS_TRACE': 1}, 'become': True, 'changed_when': False} is not valid under any of the given schemas demo2.yml:1 Returned errors will not include exact line numbers, but they will mention the schema name being used as a tag, like ``schema[playbook]``, ``schema[tasks]``. This rule is not skippable and stops further processing of the file. If incorrect schema was picked, you might want to either: * move the file to standard location, so its file is detected correctly. * use ``kinds:`` option in linter config to help it pick correct file type. Read documentation for instructions on how to ignore specific rule violations. Rule Violation Summary count tag profile rule associated tags 1 schema[tasks] basic core Failed: 1 failure(s), 0 warning(s) on 1 files. Last profile that met the validation criteria was 'min'. ansible-lint demo3.yml WARNING Listing 1 violation(s) that are fatal schema[tasks]: {'name': 'Configure the image', 'ansible.builtin.command': 'virt-customize -a "{{ vm_disk }}" --hostname "{{ vm_name }}" --timezone \'America/New_York\' --run-command \'sed -i "s/SELINUX=enforcing/SELINUX=permissive/g" /etc/selinux/config\' --run-command \'sed -i "s/enabled=1/enabled=0/g" /etc/yum.repos.d/*.repo\' --run-command \'sed -i "s/PermitRootLogin.*/PermitRootLogin Yes/g" /etc/ssh/sshd_config\' --run-command \'sed -i "s/RemoveIPC.*/RemoveIPC=no/g" /etc/ssh/sshd_config\' --copy-in "{{ workdir }}/local.repo":/etc/yum.repos.d/ --copy-in "{{ workdir }}/firstboot.sh":/tmp/ --copy-in "{{ workdir }}/chrony.conf":/etc/ --copy-in "{{ workdir }}/tmp.conf":/usr/lib/tmpfiles.d/ --copy-in "{{ workdir }}/99-kernel-panic.conf":/etc/sysctl.d/ --uninstall cloud-init --update --install "{{ install_packages | join(\',\') }}" --root-password password:"{{ vm_root_pass }}" --ssh-inject \'root:file:"{{ workdir }}/ssh_pub_key"\' --ssh-inject \'oracle:file:"{{ workdir }}/ssh_pub_key"\' --firstboot-command \'sudo bash /tmp/firstboot.sh\'\n', 'environment': {'LIBGUESTFS_DEBUG': 1, 'LIBGUESTFS_TRACE': 1}, 'become': True, 'changed_when': False} is not valid under any of the given schemas demo3.yml:1 Returned errors will not include exact line numbers, but they will mention the schema name being used as a tag, like ``schema[playbook]``, ``schema[tasks]``. This rule is not skippable and stops further processing of the file. If incorrect schema was picked, you might want to either: * move the file to standard location, so its file is detected correctly. * use ``kinds:`` option in linter config to help it pick correct file type. Read documentation for instructions on how to ignore specific rule violations. Rule Violation Summary count tag profile rule associated tags 1 schema[tasks] basic core Failed: 1 failure(s), 0 warning(s) on 1 files. Last profile that met the validation criteria was 'min'.
Leave a Comment