Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JnMik opened this issue Jul 18, 2019 · 2 comments
Open

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

JnMik opened this issue Jul 18, 2019 · 2 comments

Comments

@JnMik
Copy link

JnMik commented Jul 18, 2019

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

@crizstian
Copy link
Owner

Hey @JnMik I had some typos so pleas feel free to check and fix it, make a pull request if you desired or once I get chance for fixing it I will upload the changes

@Sankara98
Copy link

same issue here, any solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants