buluma.apt_autostart
Ansible Role apt_autostart
This role allows you to turn on or off the automatic starting of services when you install packages.
GitHub | Version | Issues | Pull Requests | Downloads |
---|---|---|---|---|
Example Playbook
Here’s a simple example taken from molecule/default/converge.yml
that runs when new code is pushed or pulled.
---
- name: Converge
hosts: all
become: true
gather_facts: true
roles:
- role: buluma.apt_autostart
Before running this, the system needs to be prepared. In Continuous Integration (CI), this preparation is done using molecule/default/prepare.yml
:
---
- name: Prepare
hosts: all
gather_facts: false
become: true
roles:
- role: buluma.bootstrap
For more detailed instructions on how to use these roles, check out the full explanation and example.
Role Variables
The default settings for the variables can be found in defaults/main.yml
:
---
# Default settings for apt_autostart
# Should services start automatically when installing software with apt?
apt_autostart_state: disabled
Requirements
- It requires pip packages listed in requirements.txt.
State of Used Roles
The following roles are used to set up the system, but you can choose a different setup method.
Requirement | GitHub | Version |
---|---|---|
buluma.bootstrap |
Context
This role works with many other compatible roles. For more details, see the documentation of these roles.
Here’s an overview of related roles:
Compatibility
This role is tested on the following container images:
Container | Tags |
---|---|
Debian | all |
Ubuntu | all |
You need at least Ansible version 2.12, and tests have been carried out on:
- The previous version
- The current version
- The development version
If you find any problems, please report them on GitHub.
Changelog
You can find the Role History here.
License
This role is licensed under the Apache-2.0.
Author Information
Created by Shadow Walker.
Enable or disable automatic starting of services upon installation of packages.
ansible-galaxy install buluma.apt_autostart