Skip to content

Packer cannot find 01.update-iptables-common.sh #1

@JnMik

Description

@JnMik

Running packer build aws.json end up with this error ?

    amazon-ebs: changed: [localhost] => (item=[u'curl', u'zip', u'unzip', u'gzip', u'ethtool', u'iptables-persistent', u'inetutils-traceroute', u'jq'])
==> amazon-ebs: [DEPRECATION WARNING]: State 'installed' is deprecated. Using state 'present'
==> amazon-ebs: instead.. This feature will be removed in version 2.9. Deprecation warnings can
==> amazon-ebs:  be disabled by setting deprecation_warnings=False in ansible.cfg.
    amazon-ebs: TASK [os : copy] ***************************************************************
    amazon-ebs: changed: [localhost]
    amazon-ebs: TASK [os : copy] ***************************************************************
    amazon-ebs: changed: [localhost]
    amazon-ebs: TASK [os : copy] ***************************************************************
    amazon-ebs: changed: [localhost]
    amazon-ebs: TASK [os : copy] ***************************************************************
    amazon-ebs: An exception occurred during task execution. To see the full traceback, use -vvv. The error was: If you are using a module and expect the file to exist on the remote, see the remote_src option
    amazon-ebs: fatal: [localhost]: FAILED! => {"changed": false, "msg": "Could not find or access '01.update-iptables-common.sh'\nSearched in:\n\t/var/tmp/ansible/roles/os/files/01.update-iptables-common.sh\n\t/var/tmp/ansible/roles/os/01.update-iptables-common.sh\n\t/var/tmp/ansible/roles/os/tasks/files/01.update-iptables-common.sh\n\t/var/tmp/ansible/roles/os/tasks/01.update-iptables-common.sh\n\t/var/tmp/ansible/files/01.update-iptables-common.sh\n\t/var/tmp/ansible/01.update-iptables-common.sh on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option"}
    amazon-ebs: PLAY RECAP *********************************************************************
    amazon-ebs: localhost                  : ok=7    changed=6    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0
==> amazon-ebs: Terminating the source AWS instance...
==> amazon-ebs: Cleaning up any extra volumes...
==> amazon-ebs: No volumes to clean up, skipping
==> amazon-ebs: Deleting temporary security group...
==> amazon-ebs: Deleting temporary keypair...
Build 'amazon-ebs' errored: Script exited with non-zero exit status: 2.Allowed exit codes are: [0]

I see there is a common-iptables.sh script in the files but no 01.update-iptables-common.sh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions