rudd-o / ansible-samples Goto Github PK
View Code? Open in Web Editor NEWSample Ansible playbooks
Sample Ansible playbooks
At bottom of README:
.. domain2.com: '{{ lookup("file", "secrets/dkim/domain1 ..
should that be 2 ?
It seems that the scripts are not running python3, which is the default on Fedora 30.
Neither they're compatible with it.
Having in mind that 01-01-2020 the Python2 support it's ended, I think it's worth the effort to update it.
Trace bellow:
0m10.71 II Building project: grub-zfs-fixer
Ejecutando(%prep): /bin/sh -e /var/tmp/rpm-tmp.P5MwvY
+ umask 022
+ cd /usr/src/grub-zfs-fixer/BUILD
+ cd /usr/src/grub-zfs-fixer/BUILD
+ rm -rf grub-zfs-fixer
+ /usr/bin/gzip -dc /usr/src/grub-zfs-fixer/grub-zfs-fixer.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd grub-zfs-fixer
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Ejecutando(%install): /bin/sh -e /var/tmp/rpm-tmp.U59Dbm
+ umask 022
+ cd /usr/src/grub-zfs-fixer/BUILD
+ '[' /usr/src/grub-zfs-fixer/BUILDROOT/grub-zfs-fixer-0.0.3-1.x86_64 '!=' / ']'
+ rm -rf /usr/src/grub-zfs-fixer/BUILDROOT/grub-zfs-fixer-0.0.3-1.x86_64
++ dirname /usr/src/grub-zfs-fixer/BUILDROOT/grub-zfs-fixer-0.0.3-1.x86_64
+ mkdir -p /usr/src/grub-zfs-fixer/BUILDROOT
+ mkdir /usr/src/grub-zfs-fixer/BUILDROOT/grub-zfs-fixer-0.0.3-1.x86_64
+ cd grub-zfs-fixer
+ /usr/bin/rm -rf /usr/src/grub-zfs-fixer/BUILDROOT/grub-zfs-fixer-0.0.3-1.x86_64
+ mkdir -p /usr/src/grub-zfs-fixer/BUILDROOT/grub-zfs-fixer-0.0.3-1.x86_64//usr/sbin
+ install fix-grub-mkconfig /usr/src/grub-zfs-fixer/BUILDROOT/grub-zfs-fixer-0.0.3-1.x86_64//usr/sbin
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-ldconfig
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip /usr/bin/strip
+ /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
+ /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 0
+ /usr/lib/rpm/brp-python-hardlink
+ /usr/lib/rpm/redhat/brp-mangle-shebangs
*** ERROR: ambiguous python shebang in /usr/sbin/fix-grub-mkconfig: #!/usr/bin/env python. Change it to python3 (or python2) explicitly.
error: Estado de salida erróneo de /var/tmp/rpm-tmp.U59Dbm (%install)
Errores de construcción RPM:
Estado de salida erróneo de /var/tmp/rpm-tmp.U59Dbm (%install)
0m10.82 II Rewinding stack of actions.
0m10.82 II Rewind complete.
0m10.82 EE Unexpected error
Traceback (most recent call last):
File "/usr/src/zfs-fedora-installer/src/installfedoraonzfs/__init__.py", line 1454, in deploy_zfs
break_before=None,)
File "/usr/src/zfs-fedora-installer/src/installfedoraonzfs/__init__.py", line 1345, in deploy_zfs_in_machine
check_call(in_chroot(["rpmbuild", "--define", "_topdir %s"%(project_dir_in_chroot,), "-ta", j(project_dir_in_chroot,"%s.tar.gz" % project)]))
File "/usr/src/zfs-fedora-installer/src/installfedoraonzfs/cmd.py", line 30, in check_call
return subprocess.check_call(*args,**kwargs)
File "/usr/lib64/python2.7/subprocess.py", line 190, in check_call
raise CalledProcessError(retcode, cmd)
CalledProcessError: Command '['rpmbuild', '--define', '_topdir /usr/src/grub-zfs-fixer', '-ta', '/usr/src/grub-zfs-fixer/grub-zfs-fixer.tar.gz']' returned non-zero exit status 1
Traceback (most recent call last):
File "/usr/src/zfs-fedora-installer/deploy-zfs", line 10, in <module>
sys.exit(installfedoraonzfs.deploy_zfs())
File "/usr/src/zfs-fedora-installer/src/installfedoraonzfs/__init__.py", line 1454, in deploy_zfs
break_before=None,)
File "/usr/src/zfs-fedora-installer/src/installfedoraonzfs/__init__.py", line 1345, in deploy_zfs_in_machine
check_call(in_chroot(["rpmbuild", "--define", "_topdir %s"%(project_dir_in_chroot,), "-ta", j(project_dir_in_chroot,"%s.tar.gz" % project)]))
File "/usr/src/zfs-fedora-installer/src/installfedoraonzfs/cmd.py", line 30, in check_call
return subprocess.check_call(*args,**kwargs)
File "/usr/lib64/python2.7/subprocess.py", line 190, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['rpmbuild', '--define', '_topdir /usr/src/grub-zfs-fixer', '-ta', '/usr/src/grub-zfs-fixer/grub-zfs-fixer.tar.gz']' returned non-zero exit status 1
failed: [192.168.XXX.XXX] (item=policycoreutils-python-utils) => {"ansible_loop_var": "item", "changed": false, "item": "policycoreutils-python-utils", "msg": "No package matching 'policycoreutils-python-utils' found available, installed or updated", "rc": 126, "results": ["No package matching 'policycoreutils-python-utils' found available, installed or updated"]}
I have fixed it by replacing policycoreutils-python-utils on policycoreutils-python.
I think you should do the same or add this info to read.me
Anyway, thank you for this role!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.