Demo
This code has 3 different yaml files each failing with the same error for ansible-lint.unknown
yaml
23 days ago
3.6 kB
25
Indexable
Never
--- - 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' environment: LIBGUESTFS_DEBUG: 1 LIBGUESTFS_TRACE: 1 become: true changed_when: false --- - 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' environment: LIBGUESTFS_DEBUG: 1 LIBGUESTFS_TRACE: 1 become: true changed_when: false --- - 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' environment: LIBGUESTFS_DEBUG: 1 LIBGUESTFS_TRACE: 1 become: true changed_when: false
Leave a Comment