robertdebock.apt_autostart
Ansible Role Apt Autostart
This role allows you to enable or disable the automatic starting of services when installing packages.
GitHub | GitLab | Downloads | Version |
---|---|---|---|
Example Playbook
Here’s a simple example of how to use this role. This example is from the file molecule/default/converge.yml
. It is tested whenever changes are made.
---
- name: Converge
hosts: all
become: true
gather_facts: true
roles:
- role: robertdebock.apt_autostart
Before you run this, prepare the machine using the file molecule/default/prepare.yml
:
---
- name: Prepare
hosts: all
gather_facts: false
become: true
roles:
- role: robertdebock.bootstrap
You can find more detailed explanations and examples here.
Role Variables
Default values for the role variables are defined in defaults/main.yml
:
---
# defaults file for apt_autostart
# Should services automatically start when using apt to install software?
apt_autostart_state: disabled
Requirements
- The necessary pip packages can be found in requirements.txt.
State of Used Roles
The following roles are needed to prepare the system. You can use other methods to prepare.
Requirement | GitHub | GitLab |
---|---|---|
robertdebock.bootstrap |
Context
This role is part of a set of related roles. You can find more information in the documentation of these roles.
Here’s a graphic showing related roles:
Compatibility
This role has been tested with the following container images:
Container | Tags |
---|---|
Debian | All |
Ubuntu | All |
You need at least Ansible version 2.12. Testing has also been done on the previous, current, and development versions.
If you encounter any issues, please report them on GitHub.
License
This role is licensed under the Apache-2.0 license.
Author Information
Created by robertdebock.
If you would like to support my work, please consider sponsoring me.
Enable or disable automatic starting of services upon installation of packages.
ansible-galaxy install robertdebock.apt_autostart