rirl / devops-practices Goto Github PK
View Code? Open in Web Editor NEWDevOps practices by Rick Landon -- ansible, docker, jenkins, nexus, gitlab IaC.
DevOps practices by Rick Landon -- ansible, docker, jenkins, nexus, gitlab IaC.
Describe the bug
Need to install python-apt on vm-test-01 and vm-test-02 (debian)
Appears to be installed on atreides, hagal, fenring, ecaz (etc)
Extend the playbook setup to install using apt (or etc).
Describe the bug
Using ansible user on test VM to execute ansible script encounter permission issue on remote hosts
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Should not get permission issues as ansible is sudo enabled.
Additional context
The full traceback is:
WARNING: The below traceback may not be related to the actual failure.
File "/tmp/ansible_apt_payload_q8cRIu/main.py", line 1026, in main
cache.update()
File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 442, in update
raise LockFailedException("Failed to lock %s" % lockfile)
[WARNING]: Could not find aptitude. Using apt-get instead.
fatal: [ansible-02]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"allow_unauthenticated": false,
"autoclean": false,
"autoremove": false,
"cache_valid_time": 0,
"deb": null,
"default_release": null,
"dpkg_options": "force-confdef,force-confold",
"force": false,
"force_apt_get": false,
"install_recommends": null,
"only_upgrade": false,
"package": null,
"purge": false,
"state": "present",
"update_cache": true,
"upgrade": "yes"
}
},
"msg": "Failed to lock apt for exclusive operation"
}
Set and install docker on hosts using ansible.
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.