Comments (3)
Wasn't much in that deleted repo. A script similar to this one:
#!/bin/sh
PKG=$1
DEBIAN_FRONTEND="noninteractive"
export DEBIAN_FRONTEND
if dpkg --status $PKG > /dev/null 2>&1 ; then
exit 0
fi
echo "Installing $PKG..."
(apt-get --yes update && apt-get --yes install $PKG) > /dev/null 2>&1
exit $?
And a small action like so:
- name: Install minimal Ansible requirements
script: install_missing_package.sh {{item}}
register: res
changed_when: "res.stdout.startswith('Install')"
with_items:
- python
- python-apt
- python-pycurl
- aptitude
Better to copy this into your own project if you need it. Or push something upstream. Kind of sad that Ansible cannot bootstrap a host into management...
from ansible-role-unattended-upgrades.
Ah, I thought it was something fairly straightforward like that but obviously couldn't check - thanks @cederberg!
I'll leave this open for @jnv to decide what to do w.r.t. the reference in the readme.
from ansible-role-unattended-upgrades.
Thanks for heads up. FWIW Ansible's apt module should install python-apt
automatically when it is missing, so I think I will just remove the recommendation from README.
from ansible-role-unattended-upgrades.
Related Issues (20)
- Add support for Allowed-Origins (used by default in Ubuntu 18.04) HOT 10
- conffile prompt and needs to be upgraded manually HOT 2
- Extend functionality to apt-listchanges HOT 2
- Deprecation Warning for install update-notifier-common task
- Missing Unattended-Upgrade::Sender parameter HOT 2
- [Feature Request] Use force_apt_get HOT 2
- Add support for automatically installing `bsd-mailx` if mail is to be sent HOT 2
- Upgrade conflict in /etc/apt/apt.conf.d/50unattended-upgrades HOT 4
- Add 'managed by ansible' header
- How to deal with the 10Periodic file in /etc/apt/apt.conf.d/ HOT 2
- APT::Periodic::Enable not set HOT 2
- Add support for syslog options
- Default configuration should use AllowedOrigins in Ubuntu HOT 3
- New versions missing on ansible galaxy HOT 4
- Cron not triggering for Ubuntu 20, anyone? HOT 1
- [Feature Request] role variables: unattended_dev_release, unattended_remove_unused_kernel_packages HOT 1
- shellcheck errors in test.sh HOT 2
- [DEPRECATION WARNING]: "include" is deprecated, use include_tasks/import_tasks instead HOT 1
- Ability to Specify Patch Install Time with Systemd HOT 2
- THIS ROLE IS DEPRECATED: Rationale & Alternatives HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-role-unattended-upgrades.